I'm working on login page written as a JSP. It's pretty simple but behaves differently in IE8 and Firefox (big surprise there). I have not tested this is other browsers yet.
I could probably hack a fix in with some Javascript but I was looking for more information about the behavior, before I just implement a workaround, with hopes of a...
Is element <load-on-startup> optional for a <servlet> definition in the Java Web application deployment descriptor (WEB-INF/web.xml)?
...
Can we write an argument constructor in a servlet? if yes, how can you call?
...
I recently added Struts 1.3 to my application on Tomcat. Here are my observations,
MVC. Servlet/JSP does this fine for me, where JSP is the view and servlet is the controller. I don't see any benefit to get the mapping from an XML file since our mapping is very static.
Action Form. I can see some benefits of action form but not huge.
T...
I'm using a very simple MVC framework, Bear Bibeault's Front Man, which, for those not familiar, is pretty similar to Spring MVC (in concept at least).
For most cases, I am using a JSP as my view. To prevent direct access to the view, I place the JSP files inside the WEB-INF directory.
However, in some cases I need to use a servlet to ...
Is there a way for a servlet filter to get a list of all servlets and their mappings?
...
I'd like to introduce Spring MVC to an application that has up till now used simple direct access to JSP files i.e www.example.com/login.jsp which contains the business logic and presentation details.
I'd like to strip out the business logic and keep only the presentation in the JSP. To do this, I've moved the jsp file from webapp/login...
Am in the process of writing a server side Java program which would send an e-mail to a user with a confirmation URL (located in the body of the e-mail).
Have already created the servlet (which can send an e-mail) using the JavaMail API... Am wondering how I would design / implement the actual unique URL (where upon an end user's click,...
I've got a WAR that i need to deploy with TomCat, but i'm not sure which version of the servlet spec the WAR file uses.
According to apache's site (http://tomcat.apache.org/whichversion.html) i need to download a different version according to which spec the WAR file uses.
Is there any way to tell by unzipping the WAR file and looking ...
hi,
I have the following problem. I programmed a java servlet, which responses to ajax requests from my javascript application. the answer from the java servlet is a xml encoded message. normally everything works well, but if I send "too much" (I think) Ajax reqeusts, it happens that more responses are within one ajax reponse, and as a c...
Is there any way to create PDF dynamically against receiving texts and images?
...
I'm trying to report on every HTTP status code returned from my webapp. However the status code does not appear to be accessible via the ServletResponse, or even if I cast it to a HttpServletResponse. Is there a way to get access to this value within a ServletFilter?
...
I need to have a default error JSP page which is shown when an exception is thrown by the servlet, and that page will show the stacktrace..
How do I do that?? is there a right technique (provided by the API) or I have to do it manually?? I mean, sending the exception thrown as an attribute and then dealing with it by myself??
Thanks
...
I'm having an inconvenient dealing with sessions..
I have this:
www.mydomain.com
sub1.mydomain.com
sub2.mydomain.com
sub3.mydomain.com
and when I log into "www", then I change to "sub2" (for example) I
figure out it creates another session :S
why is that??
I need the same session for www, sub1, sub2, sub3, and so on.. ALL in
"mydomai...
I would like to know if there is any way I can access an environment variable from a java servlet. I know that I can pass params to the servlet using web.xml but I need to pass some value at run-time.
The requirement is something like this -
A non-web based app running at the server side sets some value (environment variable) and it ...
Do we have any alternate solution to replace RSA Security ID for the web-application developed in JAVA-Servlet?
More Details:
The Current application uses RSA Security ID for authentication. Now we are planning to replace "RSA Security ID" technology.
Is there any way to implement this authentication? (Simply db/ldap password are not ...
I want to excute a servlet to get server name,server port and ContextPath from request.
But I don't want to invoke servlet by user interacting. I want excute this servlet by Java code.
I'm not sure it's possible.
Please give me recommendation.
...
Hi all,
In my Java servlet code, I want to be able to programatically write to the jetty access log. I am aware that jetty will automatically log every incoming HTTP request to the access log. However, my servlet needs to occasionally append it's own line to the access log. Has anyone here done something similar?
Thanks!
...
The javax.servlet.Filter object can be used both for authentication (where the Filter needs to catch the request before any servlet work needs to be done) and for XSLT translation (where the servlet needs to be completely finished generating content). When does it actually get executed?
I know this is implementation dependent (on the we...
I'm using JSP, Servlet to develop my web application.
I want to get client information such as: operation system, browser, resolution, ... whenever a client is using my website.
...