Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
This week's book giveaway is in the
Java in General
forum.
We're giving away four copies of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
and have Michael Redlich on-line!
See
this thread
for details.
Win a copy of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
this week in the
Java in General
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Struts
Velocity equivalent of jsp:forward
peter wooster
Ranch Hand
Posts: 1033
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is it possible to do the equivalent of <
jsp
:forward> with Velocity. This was asked in
this thread
, 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.
in web.xml
<!-- Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
in struts-config.xml
<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>
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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
More...