This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wild card for action mapping  RSS feed

 
praveen kumar gowda
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Shankar ,

I have different action class which starts with Edit*******,so i am trying to write one action mapping using wildcard..below are the action class and action form used.



These are the different action class Editpaly,Editgoal,Editrun
Thaese are the differnt actionForm Editpalyform,EditgoalForm,EditrunForm

These are the differen Jsp Editpaly.jsp ,Editgoal.jsp, Editrun.jsp

Can any tell how this wildcard things for action mapping works for below requirment

<action
path="/edit*"
type="org.apache.struts.webapp.example.Edit{1}Action"
name="{1}Form"
scope="request"
validate="false">
<forward
name="failure"
path="/mainMenu.jsp"/>
<forward
name="success"
path="/{1}.jsp"/>
</action>
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Praveen,
Could you elaborate on your question? Also please use code tags.

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!