Hi Ben,

I'm not familiar with RoR, but from what you describe here it sounds like what you want is a DispatchActon, or probably more specifically, the EventDispatchAction introduced in Struts 1.2.9:

http://struts.apache.org/struts-doc-1.2.9/api/org/apache/struts/actions/EventDispatchAction.html

Frank

ben.christenson wrote:
Hello all,

I am relatively new to stuts, and reading madly trying to absorb enough to
become proficient.  I have worked a bit with Ruby on Rails, and like quite a
few of their paradigms, however Ruby is far from an accepted solution for
the company I work with.  One of the things I really liked about Ruby on
Rails was their concept of a controller/action/id.  Is there a way in struts
to use part of the url to define what method to use and a parameter?  For
example, if I wanted to retrieve information on a company with id=001, I
would like to use the url
http://www.mywebsitehere.com/companies/getcompany/001.

Thanks,
Ben
--
View this message in context: 
http://www.nabble.com/Struts-Equiv-to-RoR%27s-controller%2C-action%2C-id-t1489136.html#a4034695
Sent from the Struts - User forum at Nabble.com.


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





--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

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

Reply via email to