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
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
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Struts
how to get value of hmtl:link in action class?
shahidrasul shahid
Ranch Hand
Posts: 62
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
how to write tag of html:link and get their value in action class?
Gowher Naik
Ranch Hand
Posts: 643
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Create link using html:link and implement your own forward action class as shown below.
PageA.jsp ---------- <html:link action="/gotopageb" >Go to PageB</html:link> In struts-config file --------------------- <action path="/gotopageb" type="com.myapp.struts.LinkAction" scope="request"> <forward name="success" path="/PageB.jsp"/> </action> LinkAction class ---------------- public class LinkAction extends org.apache.struts.actions.ForwardAction { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping,...){ System.out.println("getName "+mapping.getName()); System.out.println("getPath "+mapping.getPath()); System.out.println("getType "+mapping.getType()); System.out.println("getScope "+mapping.getScope()); return mapping.findForward(SUCCESS); } }
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
need help on bean define
Getting ActionForm values from Java class
how to get the resource property value in action class?
Struts and adding parameter to URL
dynacAction form property getting in action class
More...