| Author |
Changing a view from a Servlet to Jsp
|
Peyyety Avinash
Greenhorn
Joined: Mar 25, 2010
Posts: 19
|
|
Heres the 'Controller' Servlet: The request dispatcher: reqDispServlet.java
Heres the 'View' servlet- to where the redirect happens : page4.java
I want to replace the 'View' servlet to a Jsp 'View': something like this:- (this is incomplete)
How do i do the redirect to a jsp from the controller servlets 'get' method ?
|
 |
Devaka Cooray
Saloon Keeper
Joined: Jul 29, 2008
Posts: 2726
|
|
|
"IaM yOgI", please check your private messages regarding an important administrative matter.
|
Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
So forward to the JSP--what, specifically, are you having an issue with?
|
 |
Peyyety Avinash
Greenhorn
Joined: Mar 25, 2010
Posts: 19
|
|
So forward to the JSP--what, specifically, are you having an issue with?
I figured it now...hoe the expression syntax of jsp works to get attributes...and made this view jsp.
Thanks !!
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
Consider using JSTL rather than scriptlets--get started on the right foot and develop in a more modern, acceptable fashion.
|
 |
Peyyety Avinash
Greenhorn
Joined: Mar 25, 2010
Posts: 19
|
|
Heyy Thanks i will learn soe JSTL.
|
 |
 |
|
|
subject: Changing a view from a Servlet to Jsp
|
|
|