struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Seager <>
Subject Struts Validation with restful URL
Date Thu, 04 Nov 2010 12:00:11 GMT
Hi all,

I've just started using Struts 2.21 and I've wired up an action with
RESTfulish way of calling different methods:

<action name="CreatePortalUser/*"
class="com.msi.struts.action.internal.CreatePortalUserAction" method="{1}">

so I can process CreatePortalUser/newUserPage or
CreatePortalUser/newCustomerPage within the same action.

I'm struggling to do separate validation for each method using this approach
though. I think I need a file called
CreatePortalUser-"methodname"-validation.xml for each method, where
"methodname" equals "CreatePortalUser/newUserPage" or "
CreatePortalUser/newCustomerPage". But obviously, I can't include a /
(slash) in the xml's file name. Is there a work around for this? I took a
look at using the Validation annotation on my action class, but it is


Eddy Seager

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message