Java EE SDK :: Any Way To Find How Many Users Are Logging On To Site
Dec 25, 2011Is there a way to find how many users are logging on to my site at a specific time?
View RepliesIs there a way to find how many users are logging on to my site at a specific time?
View RepliesWhenever i see online ticket booking site one question arise, How ticket booked in one site reflect in other site.
If i book 2 ticket from PVR online portal that two ticket will be showed as booked in bookmyshow.com, which technology is used for this and how.
I am trying to find geo-location of a user after logging in... I referred [URL] but its too complicated for a java beginner like me.
View Replies View RelatedI have tried running the java application without adding the site to site list in java security tab. But I get a sand box message as APPLICATION BLOCKED BY SECURITY SETTINGS. How to run the java application without adding the site to site list in java security tab.
View Replies View RelatedI am running a page that launches a Java Webstart app and a Java Applet. I don't have problem launching this page in Firefox, but I have to run it in IE11. The thing is IE11 keep redirecting me to oracle java download site. I have install Java RE like 3 times from IE already. What am I missing?
View Replies View RelatedIf some one add script in my URL, I want the script not pop up, we have tomcat 6 [URL] .....
View Replies View RelatedWhen I am watching scjp mock test, I am getting error about security.
I am trying to add www.javaranch.com to site exception list in java control panel. I can see security tab in java control panel, there I find field for Site Exception List. When I am add [URL] .... to this site exception list, list is not getting populated.
Why is that ? Why am I unable to add this site to list ?
I am using 64-bit system and have downloaded and installed 64 bit update patch 51.
I'm using this methodology for Java connection between client and server, the server allows the user to stay connected while it is sending messages, but if you stay an average time of 5 minutes without send anything it is disconnected, I need to increase that time to about 30 minutes or disable this disconnection for inactivity.
Settings:
Netbeans 8.0
Windows Seven 64 Bits Ultimante
The following code:
package redes;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
[Code] .....
I'm using this methodology for Java connection between client and server, I copied it from the internet, but the server allows the user to stay connected while it is sending messages, but if you stay an average time of 5 minutes without send anything it is disconnected, I need to increase that time to about 30 minutes or disable this disconnection for inactivity.
Settings:
Netbeans 8.0
Windows Seven 64 Bits Ultimante
The following code:
package redes;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintWriter;
import java.net.Socket;
[Code] ....
Coding a web application using Java 6. Try to implement the session timeout for users.
In the web.xml, I added:
<session-config>
<session-timeout>480</session-timeout> <!-- jsp will expire in 8 hours -->
</session-config>
Now, during the runtime, if a user does not touch the jsp page for 8 hours (after the user has signed in), the session timeout mechanism will kick in. At that point, the server side will automatically execute:
rd = req.getRequestDispatcher("/signin.jsp");
So that the user will have to re-sign in, before continue the work.
How can I achieve this goal?
in log4j,in a web aplication i need loging in separate file,logging for action package in one file and dao in another file in action package log a class if this is possible in a class then a level in a file another level in another file.
View Replies View Related
I've been working on a lesson in logging in Java, formatting in XML. I'm trying to add an appender to e-mail the error log, but can't seem to get it to work. Is there a piece I'm missing? The rest of my appenders are working fine. The error I get is that it cannot create an appender of this type. The console also seems to think that I defined the appender after I call for it, but it is above. Here is what I put together:
<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender" >
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
[Code] ....
And then call it within the logger:
<appender-ref ref="EMAIL" />
I have created a SOAP client and initiate the transaction using proxy objects.Need to log the raw SOAP request/response XML message.
PaymentsAppServiceProxy proxy=new PaymentsAppServiceProxy();
QueryTransactionRequest request=new QueryTransactionRequest();
//Need to print the actual XML from the request
try {
QueryTransactionResponse response=proxy.queryTransaction(request);
[code]....
I've been trying to create a tool that extracts emails from inbox using Apache HttpClient, however I'm stuck at the logging in part itself.This is the code. (I've written it all in a main class and removed exception handling for brevity). More in code comments.
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.CookieHandler;
import java.net.CookieManager;
import java.util.ArrayList;
import java.util.List;
[code]....
Now the thing is, after execution I am returned the login-page again instead of the inbox, which leads me to believe that login did not take place at all.Also the response to the post method in the browser has two cookies "cdata"; "sessionid" populated with values however I get them as empty. I believe that I am losing my session between the first get request and the subsequent post.
So the user is on a website and I want them to go to another site using the same browser and tab.Can this be done in java? And yes the java program is running on the browser .
View Replies View RelatedI have an ecommerce site that has about 100000 SKUs. What is the best practice for handling all the product images as far as where to store them and how to display them on the pages? Should I have a separate HTTP server to serve the images?
View Replies View RelatedI need fixing an issue in the search textbox in one of the jsp's. I was informed that cross site scripting can be done in the textbox and I kept the below code in my jsp to fix the issue:
Java Code:
searchTerm = request.getParameter("search");
searchTerm = searchTerm.replaceAll("<", "<").replaceAll(">", ">");
searchTerm = searchTerm.replaceAll("[^A-Za-z0-9 ]", "");
searchTerm = searchTerm.replaceAll("eval((.*))", "");
searchTerm = searchTerm.replaceAll("["'][s]*((?i)javascript):(.*)["']", """");
[Code] ....
Now, after applying the above code, the cross site scripting can be done and the problem is that the search can't be done using the textbox and all the time will display none results.
I'm looking for a way to gather data from a site page. all data is shown in the same page... I am trying to get the content and parse it is a bit crazy as data seems to be not organized. Itried to get it as a document but still looks crazy.
As all data is shown very clearly in the page (I would like every row to be an object) I'm sure there is some way to collect this data easily. (the data is from this page: [URL] ....)
I'll attach a snapshot and the content I got from the website.
in-play.jpgall_in-play_page.txtin-play.jpgall_in-play_page.txt
fixing an issue in the search textbox in one of the jsp's. I was informed that cross site scripting can be done in the textbox and I kept the below code in my jsp to fix the issue:
searchTerm = request.getParameter("search");
searchTerm = searchTerm.replaceAll("<", "<").replaceAll(">", ">");
searchTerm = searchTerm.replaceAll("[^A-Za-z0-9 ]", "");
searchTerm = searchTerm.replaceAll("eval((.*))", "");
searchTerm = searchTerm.replaceAll("["'][s]*((?i)javascript):(.*)["']", """");
[code]...
Now, after applying the above code, the cross site scripting can be done and the problem is that the search can't be done using the textbox and all the time will display none results.
I am using a command button to post a form to backing bean method. At the end of that method I am attempting to redirect to an external site after setting various options in the response. I get an IllegalState Exception because of the redirect.
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendRedirectWithStatusCode
(WebAppDispatcherContext.java:571)
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendRedirect
(WebAppDispatcherContext.java:528)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendRedirect(SRTServletResponse.java:1234)
at com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:426)
at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:181)
here is the problem code from the backing bean method:
if ( redirectPage != null ) {
logger.debug("attempting redirect: " +
I'm looking for a way to put a tabs on a TabPane starting from both sides on the same edge.
Imagine having 3 or 4 tabs at the top left as in the default behavior, and one at the top right for some "special" features.
Is there a way to do it? Or is something expected to exist in the future? (or not at all?)
How can a pop up trigger from java web application to all active users to broadcast something?
View Replies View RelatedI am making a Java project using Eclipse,oracle 10g and Apache tomcat.
Now my problem is that I cant create a session for the users. I have coded on jsp pages mostly.
Session creation using HttpSession through servlets or jsp
I'm doing a problem where I convert users input for the date (MM/DD/YY) into a written out date and year. That part is fine. The part I'm struggling with is then indicating what day that is in that year. how to use the user inputted MONTH, DAY, and YEAR to then get the day of year.
import java.util.Calendar;
import java.util.Scanner;
import java.util.regex.MatchResult;
import javax.swing.JOptionPane;
public class ConvertDate {
[code]...
I have to design/develop a module in java eg. Login. This module can be accessed by multiple concurrent users say 200, 500, 800 etc.
How such type of modules can be designed in such a way that it can perform successfully.
What are the main concepts at code level / Infrastructure level which we should take care while designing such modules.
What should i do to create a JSP page that can be visible to some specific user's.
View Replies View Related