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
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
how to get value of hmtl:link in action class?
shahidrasul shahid
Ranch Hand
Posts: 62
posted 16 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 16 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); } }
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
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
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...