A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
to do a forward in servelt
Joined: Jan 09, 2003
Aug 26, 2004 05:56:00
In jso we have <
:forward> but in servelt how do i achieve the forward.
i want to do a forward instead of sendredirect how can i do ?
Joined: Aug 26, 2004
Aug 26, 2004 06:01:00
You can use
for forwarding from
rd = getServletContext().RequestDispatcher("relative url of jsp").forward(req,res);
Joined: Aug 02, 2004
Aug 26, 2004 06:32:00
Those are a couple of interesting new technologies you've invented there, Ashaak!
I'm not sure that I can comment on JSO and Servelts but with JSP and
it can be done as follows, from doGet() or doPost():
// If you want to use a relative path... request.getRequestDispatcher(path).forward(request, response); // Or, if you don't need a relative path and have a penchant for typing... request.getServletContext().getRequestDispatcher(path).forward(request, response);
I agree. Here's the link:
subject: to do a forward in servelt
how to read specific data from a web page..
how to get servlet forward response ?
Session Tracking in Servlets
save grid data
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015