JSP Section Index | Page 6
I'm running into a problem when I encounter a coding error in my jsp file, go and fix the error, save it, and try to access the page with my changes. The server (Tomcat 4.0) persists in giving me the old version of the file.
I'm running into a problem when I encounter a coding error in my jsp file, go and fix the error, save it, and try to access the page with my changes. The server (Tomcat 4.0) persists in giving me t...more
I am using Resin2.0. In our Intranet, all the user requests are directed to a servlet which does the authentication and redirects to the respective jsp files.
I am using Resin2.0. In our Intranet, all the user requests are directed to a servlet which does the authentication and redirects to the respective jsp files. Users are not supposed to access th...more
Is the HTTP Session maintained even when the network connection goes down? Can the same browser instance resume a previous session after re-establishing the network connection?
In the Servlets API, HttpSessions are implemented as objects in memory on the web app server. Therefore, the session will be maintained on ther server as long as the server is running (or until i...more
Is the HTTP Session maintained even when the network connection goes down? Can the same browser instance resume a previous session after re-establishing the network connection?
In the Servlets API, HttpSessions are implemented as objects in memory on the web app server. Therefore, the session will be maintained on ther server as long as the server is running (or until i...more
What are the different ways of declaring a tag library to use from a JSP? Which methods are compatible from any JSP container?
What are the different ways of declaring a tag library to use from a JSP? Which methods are compatible from any JSP container?
What are the different ways of declaring a tag library to use from a ...more
Can any one post a - code snippet - which can create a .txt file on the application server - using the text from a "textArea" on a JSP page. (Basically the user types some text on the JSP on a client and the text should be saved to a txt-file on ap-server.)
Hi, this works in my own computer:
<%@page import="java.io.*"%>
<%
String textFromTextArea = request.getParameter("message");
if(textFromTextArea!=null){
String path = "c: empfile.txt";
...more
I have a Jsp page that accepts some parameters from the user. Now if the user clicks on the Submit button in rapid succession, multiple entries are inserted in DB, though I am checking for duplicate entries.
I have a Jsp page that accepts some parameters from the user. Now if the user clicks on the Submit button in rapid succession, multiple entries are inserted in DB, though I am checking for duplicat...more
I'm a bit confused with the term bean in JSP eg. the tag <jsp:useBean ... > From what I understand, the term bean used here is referring to a simple java object.
I'm a bit confused with the term bean in JSP eg. the tag <jsp:useBean ... >
From what I understand, the term bean used here is referring to a simple java object.
When I look through the Java...more
Need some assistance on this one. I am very new to managing a java environment and a production application appears to be having a major memory leak.
Need some assistance on this one. I am very new to managing a java environment and a production application appears to be having a major memory leak. Am currently using JDK 1.3 on a Sun box runni...more
What is the easiest way to convert the output of a JSP to PDF?
There are a number of ways of converting JSP output to a PDF file. One such way is listed here as HTML to PS then PS to PDF. This way often gets corrupted or doesn't look the way you want it to...more
I am calling my EJB method
I am calling my EJB method "transfer(request,destination)" from inside JSP page.
"request" is a HttpServletRequest object
"destiation" is a string
it is throwing ...more
I'm using jboss(2.4.1) +tomcat(3.2.3). I need to share the same directory structure of jsp's for different applications (I have deployed the jsp's as they are not in a war).
I'm using jboss(2.4.1) +tomcat(3.2.3).
I need to share the same directory structure of jsp's for different applications (I have deployed the jsp's as they are not in a war). Also I need to use the ...more
If a directory does not have one of the welcome-file I want to redirect to a page, not show the subdirectories and files. How could I do it?
If a directory does not have one of the welcome-file I want to redirect to a page, not show the subdirectories and files.
How could I do it?
Is there a way to run a JSP that will give me the current classpath used by Tomcat?
Okay, here is how Tomcat obtains the classpath for given application "APP".
1st layer: The CLASSPATH variable you set in the Environment Variables. All the jars included in there IN ORDER. If t...more
Using JSP with Tomcat 4, I've noticed that using the response.sendRedirect() method, or jsp:forward tag to another directory on the same server is loosing all the session variables.
Using JSP with Tomcat 4, I've noticed that using the response.sendRedirect() method, or jsp:forward tag to another directory on the same server is loosing all the session variables.
Does anyone kn...more