wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts <html:textarea> with default  text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts <html:textarea> with default  text" Watch "Struts <html:textarea> with default  text" New topic
Author

Struts <html:textarea> with default text

Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

My requirement is :
1. To display a default text in a textarea.
2. The default data has to be read from the ResourceBundle.
3. The data in the textarea cannot be edited.

It is possible to achieve the task by using <html:textarea>?

If yes, then how?

The code I am trying with is as follow:
UserRegistration.jsp


MessageResources.properties


struts-config.xml


The JSP is successfully getting generated, but the default data is not getting displayed.

Suggestions will be appreciable.


dkj4jdk
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

By mistake, posted the topic in ORM instead of Struts. Gentle request to the Sheriffs and Bartenders to be kind move it to the Struts Forum.
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

Waiting for suggestions.........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts <html:textarea> with default text
 
Similar Threads
Problem with logic:present tag
Problem with logic:present
Need help in learning struts
Exception:500 org.apache.jasper.JasperException: java.lang.NullPointerException
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope