This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes To retrieve the value from properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "To retrieve the value from properties file" Watch "To retrieve the value from properties file" New topic
Author

To retrieve the value from properties file

Sakthi Kani
Ranch Hand

Joined: Mar 29, 2005
Posts: 98
Hi



The above line is not working. i donno how to do it.
Pls help.
Thanks in advance.


" Don't be afraid of pressure. Remember that pressure is what turns a lump of coal into a diamond... " <br /> <br />Thanks & Regards...<br />Sakthi<br />SCJP1.4, OCA
Choon-Chern Lim
Ranch Hand

Joined: Aug 29, 2005
Posts: 74
To get your property file to work in Struts, you have to first associate it with the struts-config.xml.

Also, use Struts' <html:form> tag instead of HTML's <form> tag, and use Struts' tags for the textfields too. Why? This allows your text field values to be automatically mapped to the associated form bean (if you assigned one to this action).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To retrieve the value from properties file
 
Similar Threads
Trouble submitting form with 'onsubmit' handler defined
how to add data in request object and pass it to next page?
Losing data from submit using the enter key
Internationalization login thru to...
DispatchAction No action instance for path ...