| Author |
how can i change the suffix of struts
|
Kobe Luo
Greenhorn
Joined: Nov 30, 2007
Posts: 21
|
|
Hi ! the struts1.x's suffix is "*.do", and the struts 2.x is "*.action", how can i change it for another? thank you!
|
 |
Kobe Luo
Greenhorn
Joined: Nov 30, 2007
Posts: 21
|
|
|
why there is no separate framework forums,like struts, hibernate, spring??
|
 |
Joachim Rohde
Ranch Hand
Joined: Nov 27, 2006
Posts: 423
|
|
First: There is a struts forum! Second: you can change the extension in a property file (for struts2 have a look at http://struts.apache.org/2.x/docs/strutsproperties.html ).
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56213
|
|
Originally posted by Kobe BryantLuo: why there is no separate framework forums,like struts, hibernate, spring??
You didn't look very hard, did you?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Kobe Luo
Greenhorn
Joined: Nov 30, 2007
Posts: 21
|
|
|
oh, i see the struts forum!
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26193
|
|
Kobe, Hibernate and Spring are in more general forums. Hibernate is in "Object Relational Mapping" up top. Spring is in "Application Frameworks" right below this one.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26193
|
|
And on to your original question. The following is the part of your web.xml that maps actions to the struts servlet. The *.do is arbitrary. You can change it to anything you want. I've never used *.do there as I don't want my URLs to be implementation specific.
|
 |
Kobe Luo
Greenhorn
Joined: Nov 30, 2007
Posts: 21
|
|
Originally posted by Jeanne Boyarsky: And on to your original question. The following is the part of your web.xml that maps actions to the struts servlet. The *.do is arbitrary. You can change it to anything you want. I've never used *.do there as I don't want my URLs to be implementation specific.
it seems that the <html:form> tag will add ".do" to the action by default, how can i change the default?
|
 |
Joachim Rohde
Ranch Hand
Joined: Nov 27, 2006
Posts: 423
|
|
Originally posted by Kobe BryantLuo: it seems that the <html:form> tag will add ".do" to the action by default, how can i change the default?
You haven't browsed the first link that I provided you already, did you?
|
 |
Kobe Luo
Greenhorn
Joined: Nov 30, 2007
Posts: 21
|
|
Originally posted by Joachim Rohde: You haven't browsed the first link that I provided you already, did you?
Now, I am still use the struts 1.x,so the link is not suitable for me now.
|
 |
Joachim Rohde
Ranch Hand
Joined: Nov 27, 2006
Posts: 423
|
|
|
Your question have been answered in this thread anyway already. So last try: http://struts.apache.org/1.3.8/userGuide/configuration.html#dd_config_mapping
|
 |
 |
|
|
subject: how can i change the suffix of struts
|
|
|