Originally posted by Uday Kiran:
Hi,
I am caught up with one doubt. Can we provide Initialization parameters for JSPs as we do for servlets in web.xml file. If so, how can we do that?
Originally posted by nash avin:
<form>
<center>username</center>
<center><input type = "text" name="username"></center>
<center>password</center>
<center><input type = "password" name ="password"></center>
<form action="/sampleapp/AuthenticateServlet2" method="post">
<center><input type="submit" name="Submit"value="submit"></center>
</form>
user = request.getParameter("username").trim();
pass = request.getParameter("password").trim();
AS
Originally posted by Nandini Sriram:
In File1.jsp, the values are retrieved, but when it comes to File2.jsp, it shows 'null' (the session attribute is NOT set to 'false').
Will look into it again.
Originally posted by leandro oliveira:
is it correct to say that I may have 2 instances of my path.of.my.ClassX??and that I can have no more than 2 instances of my path.of.my.ClassX??
Originally posted by Nandini Sriram:
But if I try to get the parameter values from an HTML file, will it not work? Am I making any mistake here?
<form method="POST" action="File1.jsp">
<input type="text" name="username" >
<input type="submit" name="submit">
]
Originally posted by Ming Li:
hi,
The following quoted text is come from JSTL1.1 spec page 40
I understand syntax 1 and 2, the var attribute is a name of a scoped variable, but I am not sure what is the target attribute in syntax 3 and 4, I tested some codes and found that the target object must be a scoped object(JavaBean or Map type), is that right ?
Originally posted by Neha Srivastava:
Please let me know what will happen when the session is migrated to another JVM.
Thanks
Originally posted by Mellihoney Michael:
Mellihoney,
Where did you get this session variable?. To get the current session use
HttpSession session = req.getSession(true);
then set your book list in this session using
session.setAttribute("BOOKLIST", newbooklist);
In this case, your session object won't be NULL in insertBookToSession() method.
Thanks,
Moorthi
Originally posted by yogendra singh:
I also have one thing to know....
if we override the init(config) method . and dont call the super(config) ..what wud happen...will the instance of servlet will get created or not.. is this mandatory.