• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 result

 
yash wardhan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can we use regular expression/EL in result tag of an action in struts.xml

What I want is somthing like this,

<action name="anyAction" method="myMethod" class="pack.MyAction">
<result name="*">{1}</result>
</action>

This works for,
<action name="*" method="{1}" class="pack.MyAction">
<result name="success">any.jsp</result>
</action>

Thanks in Advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jq jr", please check your private messages for an important administrative matter.
 
yash wardhan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any replyies in the above question?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. The EL is part of JSP and only applied to JSP pages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic