Just for the sake of documentation, I post the solution I've found:
if (action.equalsIgnoreCase("login")) {
nextPage = "/doorgeefeinde.jsp";
} else if (action.equalsIgnoreCase("einde")) {
nextPage = "/doorgeefbegin.jsp";
} else {...
Hello,
I would like to implement the equivalent of the jsp tag :
<jsp:forward page="next.jsp">
in a servlet.
What I want to do is: a jsp or html page has a form with a get or post, which connects to a servlet, which forwards the processing results of the form towards a jsp page...
of course. Two instances of classes can communicate with each other, in different ways. Even if they do not run in the same JVM, but you'll need some more logic there.
I use this class:
(replace all in between <> with your appropriate iformation)
public class DbConn {
private static DbConn database = new DbConn();
// for PostgreSQL
// private String jdbc = "org.postgresql.Driver";
// private String...
JavaBeans are just plain classes !!! jou only put some set and get methods in it to fill or read it's variables from your jsp.
As far as I know, Enterprise JavaBean (which came with J2EE) are classes that sit over a database connection, or maintain process information. You use them to get an...
Hi,
I use j2sdk version 1.4.0 (under windows NT workstation) - downloaded at www.sun.com.
The code that produces a problem is:
<snip>
...
Import org.w3c.com;
...
Document menu = null;
File bestand = null;
...
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.