On the next beautiful day: Thu, 28 July, 2005, Dave Newton wrote:

> Tomasz Nazar wrote:
> 
> >Say: /context/emplyee/17
> 
> Sorry for the ramble--I'm motivated to work on that code again now, though!
> Dave


Thanks for the extensive idea, I had something similar in mind. Though,
Yuniar pointed out to the http://tuckey.org/urlrewrite/, and as I've
took a quick look it might look promising. I will certainly dig here.

Also Laurie pointed to a base function of Struts: wildcards in
ActionMappings. As a matter of fact, I do use them, but for other
purpose: just to lower the amount of <action> configs in
struts-confix.xml.
But Laurie, do you know if it is possible to use those wildcards so they
can rewrite patterns to include more parameters?

 /context/department/*/employee/*/view
 ->
 /context/employee/view.do?departmentOID={1}&employeeOID={2}

Will struts handle that properly? I doubt if that's possible, cause in
this case I need to pass two parameters to the action. 
<action    
    path="/department/*/employee/*"
    ???="??? {1} ??? {2}"
    >

Anyway, thank you for the answers I will not forget to post my solution
here as soon I use it.

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