JSP Section Index | Page 2
What can be done using the session object once it has been invalidated?
What can be done using the session object once it has been invalidated?
What can be done using the session object once it has been
invalidated?
The JSP spec is not very clear on this.
Can I use i...more
What is the scope of <%@ page errorPage="" %>? Does it get passed to jsp:forwarded pages? Does it get passed to jsp:included pages?
Well, I did some experimentation and found out that
errorPage is passed on to forwarded and included pages.
The forwaded or included page can always override the
errorPage with own <%@ page err...more
I am writing a simple jsp to retrieve and save from/to my MySQL db. My retrieve and save functions work great. Now, depending on the action in the browser, I would only like to invoke one of the methods. For example, for the onChange event, I would like to get the info from the db. For the onClick event, I would like to save the info to the db. Considering these actions are on the client side and jsp is on the server side, is there a way to do this? If not, does anyone have a suggestion on how this can be done?
I am writing a simple jsp to retrieve and save from/to my MySQL db. My retrieve and save functions work great. Now, depending on the action in the browser, I would only like to invoke one of the m...more
I have the same JNDIRealm used for authentication in different webapps. I would like to be able to "persist" user login between different webapps. In other words if user logs in to one %TOMCAT_HOME%/webapps/app1 and then clicks on a link that leads to %TOMCAT_HOME%/webapps/app2 I want to make sure that user does not need to re-authenticate.
I have the same JNDIRealm used for authentication in different webapps. I would like to be able to "persist" user login between different webapps. In other words if user logs in to one %TOMCAT_HOME...more
How to make jsp work in IIS server.Is there any plugin?
It works quite well. It uses IIs as the server for static pages and the plug-in redirects those url's with a .jsp (or however you configure it) to Tomcat.
It is a "connector" and the docs for To...more
Whenever I send a € (euro) sign to the server, I receive a? at the server. How do I solve this problem?
Whenever I send a € (euro) sign to the server, I receive a ?
at the server.
How do I solve this problem?
I have got a problem using <jsp:include page="/access/template.jsp" flush="true" /> tag in WSAD. Above url is located in another web project. So when I validate my web project, I am getting broken link error message in the task console.
I have got a problem using <jsp:include page="/access/template.jsp" flush="true" /> tag in WSAD. Above url is located in another web project. So when I validate my web project, I am getting b...more
I have written a static method in java class to read application specific properties from property file. This static method can be used by JSPs and other java classes. In order to load properties, I have to provide real path of the properties file. Since, this path is different on dev, staging and production m/c.
I have written a static method in java class to read application specific properties from property file. This static method can be used by JSPs and other java classes. In order to load properties, ...more
I've been using Tomcat for some time however, i only started to explore the in-built Manager.
I've been using Tomcat for some time however, i only started to explore the in-built Manager. I can't seem to get it to work and it produce this error when i tried to login with my username and pas...more
i have this problem of refreshing my updated .jsp page. It seems that even if i updated my .jsp with a new file. Tomcat will still load the old page. I am very sure that i have updated the file with the new one.Currently to solve this problem, the only way i can do is to restart my whole linux server and reload the client page again. Please advice me on what i should do and i have been trying a lot of ways but in vain.
i have this problem of refreshing my updated .jsp page. It seems that even if i updated my .jsp with a new file. Tomcat will still load the old page. I am very sure that i have updated the file wit...more
I have a jsp with a textarea field. The user can enter any text inside that . The problem here is when the user enters any html tags inside that ,then the format of the output is changed .So I want to restrict the user / remove the html tags inside the textarea .
hi there,
nice to see people thinking in similar ways. my solution to the problem was to write a class that handles the text when retrieving from the database.
the input for textarea is inserted w...more
I am designing a webpage using jsps and i am trying to set up my login page. when the user clicks on the sin-in button they are taken to a screen aking them to enter their username and password,which i have stored in a MySQL database.
I am designing a webpage using jsps and i am trying to set up my login page. when the user clicks on the sin-in button they are taken to a screen aking them to enter their username and password,whi...more
In a JSP session object, why is there the restriction that any object put into the session must be a serialized objects?
Because many web servers will serialize the Session. If you can't serialize the objects stored in the session object, then you have lost the state of your session.
This is done to prepare for lo...more
I have a JSP which is divided into 2 side-by-side frames.
I have a JSP which is divided into 2 side-by-side frames.
The left frame contains an applet which displays a JTree and the right frame contains buttons like "Add Node", "Remove Node".
When "Add N...more
Please can anyone tell me how i can tell if the remote browser has been closed half-way through the execution of a jsp program. I must be missing something very simple as it is a very important feature of jsp, so could someone please educate this poor peon on this topic.
Please can anyone tell me how i can tell if the remote browser has been closed half-way through the execution of a jsp program. I must be missing something very simple as it is a very important fea...more