File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Velocity equivalent of jsp:forward
Joined: Jun 13, 2004
May 14, 2005 07:30:00
Is it possible to do the equivalent of <
:forward> with Velocity. This was asked in
, but never answered.
I want my index.vm to silently forward to an action which sets up the parameters for my logon.vm. At present I'm using JSP to do this eg.
<!-- Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
<action path="/Welcome" type="servlets.WelcomeAction" scope="request" validate="false"> <forward name="Success" path="/logon.vm" redirect="false"/> </action>
and the only JSP in the project index.jsp
<html> <jsp:forward page="Welcome.do"/> </html>
It is sorta covered in the
JavaRanch Style Guide
subject: Velocity equivalent of jsp:forward
Struts module problem
ClassNotFound when everything is in place
can logic:forward pass a parameter?
Each Time The Server Restarts, The Browser Does Not Display The Welcome Page
Error while deploying struts application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015