aspose file tools
The moose likes Servlets and the fly likes Connection between servlet and jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Connection between servlet and jsp" Watch "Connection between servlet and jsp" New topic
Author

Connection between servlet and jsp

divya dhage
Greenhorn

Joined: Aug 07, 2010
Posts: 2
Hi.. I am new to JAVA... I created one servlet page as controller and one JSP page for view.. now i want to connect these two pages.. how do i do it? please help me..

thanks in advance
Divya
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Welcome to JavaRanch! You want to connect JSP from servlet for viewing purposes? If so, Use RequestDispatcher.


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

Use the forward() facility of the request dispatcher. That way, any scoped values that you place on the request (using setAttribute()) will be available within the JSP.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
divya dhage
Greenhorn

Joined: Aug 07, 2010
Posts: 2
Thank You.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection between servlet and jsp
 
Similar Threads
How to update the browser address with the displayed page
how to send cookie from one jsp page to another jsp page or to servlet
Send Japanese Characters from JSP to Servlet
Servlet of a JSP
jsp-servlts erro