On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote:

> Tomasz Nazar wrote:
> 
> > /context/department/*/employee/*/view
> > ->
> > /context/employee/view.do?departmentOID={1}&employeeOID={2}
> >
> >    path="/department/*/employee/*"
> >    ???="??? {1} ??? {2}"
> >
> Yes, you can use multiple wildcards: my "solution" has two wildcard 
> mappings (to the same action):
> 
>     <!-- Admin table CRUD actions requiring a parameter/id. -->
>     <action path="/Admin/*/*/*"
>             type="actions.AdminCrud"
>             name="adminForm"
>             parameter="needId"
>       <forward name="tableOk"   path="/WEB-INF/jsp/crud_{1}_{2}.jsp"/>
>       <forward name="tableBad"  path="/WEB-INF/jsp/tableBad.jsp"/>
>     </action>
> Dave


One more question: I don't see how would you pass two parameters into
the action. Can you tell?
And is the url really pretty without '?' at the end?

More specifically, what do you do with {3} in your example? Because if
can you access it in the 'adminForm', then it must be properly coded 
in the url; so not pretty. Otherwise.. how?

Tomasz


-- 
  _i______'simplicity_is_the_key'__________tomasz_nazar
  _ii____'i_am_concern_oriented'__________________iiuwr
  _iii__'patsystem.sf.net'___________________linux_user
  _Heaven_&_Fellows,_PPP______________________prevayler

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to