aspose file tools*
The moose likes Struts and the fly likes How to Initialize an Action with parameters ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Initialize an Action with parameters ?" Watch "How to Initialize an Action with parameters ?" New topic
Author

How to Initialize an Action with parameters ?

Vince Hon
Ranch Hand

Joined: Feb 11, 2003
Posts: 117
I aim at writing an ActionServlet that deal with uploading file. I would like to make this ActionServlet in my own library and used anywhere.

However, I need a place to initialize this servlet, initialized parameters include The temporary location to store the file, the max file size, the upload time limit ....

Where can I initialized such parameter for action servlet (just like using <init-param> in web.xml) ?


Vince Hon<br /> <br />SCJP 1.4 | SCWCD | SCBCD <br /><a href="http://vincehon.homeip.net:8000/VJW" target="_blank" rel="nofollow">http://vincehon.homeip.net:8000/VJW</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Initialize an Action with parameters ?