Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Wildcard Actions
Ally Cavs
Ranch Hand
Posts: 95
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
my actions are like
<action name="save" class="example.Save">
<result type="tiles">tiles:admin.save</result>
</action>
so the url would be like
localhost:8080/save.action
Now if I have a url for a image like so
localhost:8080/MyApp/content/4/images/myPic.jpg
How can i wildcard this url to hit my action. This is what I tried
<action name="*content*" class="save.ServeContent">
<result name="NONE"></result>
</action>
Hope I can do this?
Ankit Garg
Sheriff
Posts: 9707
43
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I asked this some time ago. I think this will also be applicable here.
https://coderanch.com/t/445089/Struts/Search-engine-friendly-URLs-struts
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Ally Cavs
Ranch Hand
Posts: 95
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Thanks for your very quick reply. im confused though. Are you sayiing to use the res plugin?
Do I really have to that?
Is there not another way?
Thanks,
Alan
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
web.xml url-pattern wildcards?
Struts 2 URL Rename
Struts2 namespace url problem
Not direct to localhost:8080/test/index.do and show This is my JSP page?
[Ask] Handle Wrong Actions?" Error Code 404 (Http Not Found)
More...