aspose file tools*
The moose likes JSP and the fly likes Changing a view from a Servlet to Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Changing a view from a Servlet to Jsp" Watch "Changing a view from a Servlet to Jsp" New topic
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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3102
    
  40

"IaM yOgI", please check your private messages regarding an important administrative matter.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

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.
 
Consider Paul's rocket mass heater.
 
subject: Changing a view from a Servlet to Jsp