A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
jsp:forward vs logic:forward
Joined: Jan 12, 2005
Mar 25, 2005 04:47:00
Waht is the difference between to use
(default.do is an action forward than point to my.jsp )
(welcome is a global forward that point to action default.do)
Wich is the right tag to use ?
bye, <br />Marco
Joined: Feb 15, 2005
Mar 25, 2005 08:37:00
Here are the reference urls:
It looks like the main difference is that logic:forward will perform a redirect if you've already written to the output buffer and it's too late to forward.
In my opinion, though, I can't think of a good reason to do a forward from a JSP. The Action class should do the forwarding.
Joined: Jan 11, 2012
Jan 11, 2012 03:51:18
jsp:forward does not check for the path in struts-config.xml, it directly forwarded to the page
logic:forward checks for the name in <global-forwards> of struts-config.xml
I agree. Here's the link:
subject: jsp:forward vs logic:forward
Newbie to struts....help with ActionForward error
Pop up new HTML page in JSP
Beginner: Action Forward & Global Forward
getting the struts-config.xml reference in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014