• Post Reply Bookmark Topic Watch Topic
  • New Topic

struts2 result  RSS feed

 
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
Posts: 65833
134
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
Posts: 65833
134
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!