matias casal wrote:I want to pass a session atributte put in a servlet, into a jsp page.
Is it possible?
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
matias casal wrote:How should I call the session in the jsp ?
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
matias casal wrote:I am using "normal" jsp without tags
matias casal wrote:I am using "normal" jsp without tags
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Thanks,
Shailesh
Thanks,
Shailesh
Shailesh Narkhede wrote:I hope from doget & dopost you are calling processRequest method,
then you are calling servlet from application and after you are forwarding to Jsp...
I hope in this sequence only this is happening .....
If it is then it should work.....
Please confirm....
SCJP 6
Punit Singh wrote:
Shailesh Narkhede wrote:I hope from doget & dopost you are calling processRequest method,
then you are calling servlet from application and after you are forwarding to Jsp...
I hope in this sequence only this is happening .....
If it is then it should work.....
Please confirm....
No he is not doing this way, actually he is thinking that when he will write this code
then that servlet will be called and attribute will be set in the session.
He is going in wrong direction.
Thanks,
Shailesh
matias casal wrote:Ok
thank you.
I am reading the 314 sun book.
I think that it is a good one
SCJP 6
Bear Bibeault wrote:Struts is most certainly not necessary. If your application is configured correctly, session scoped variables are easily accessible by simply naming them in an EL expression:
This is no longer 2001; scriptlets should no longer be used in JSP pages.
matias casal wrote:Now I am confused, what are you trying to tell me?
matias casal wrote:but the css and js of the jsp are not load, what should I use to load the jsp with the css and javascript ?
matias casal wrote:but if i need something like this?
I did something like that , and mysyle.css and xxx.js are not loaded.
matias casal wrote:I think that the urls are ok because when i run index.jsp without being called from the servlet ...
matias casal wrote:How should I call the session in the jsp ?
matias casal wrote: I am using this in a jsp page ; request.sendRedirect("other.jsp");
Do Right , Fear No Man
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |