• 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

How to pass certain action from struts2 mapper

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below is my case.
step-1 : i want to configure action with .gif extention.I know how to do this
i just add struts.action.extension=gif,action.

But the problem is if certain pattern match like i have to this for only
pattern that match /flag/*.gif .Im my case i have lot of .gif file is in my
project.so if i try to configure .gif then it tell me that there is no such
action in struts config file.

Thanks
please let me revert back if you not getting my question properly
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rishit Patel:
i want to configure action with .gif extention.I know how to do this
i just add struts.action.extension=gif,action.


I would recommend that you not do this. If you want a Struts action to provide the content for an image, just refer to it in the <img> tag. Example:
 
Rishit Patel
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually i did this in way you mention but the problem is
Apache does not send the required if-modified-since header for urls with
.action extension and therefore the performace is hindered.So i think it is good that i have any way to solve this problem


Thanks very much for you reply .do you have any other suggestion.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic