File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes regarding <html:text> tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding <html:text> tag" Watch "regarding <html:text> tag" New topic
Author

regarding <html:text> tag

Tusshar Fasate
Ranch Hand

Joined: May 21, 2008
Posts: 81

I have following code

<logic:present name="projectVO">
<tr>
<td ><bean:message key="projectForm.project-id"/>:</td>
<td >
<html:text property="projectID" size="20" maxlength="10" value="<bean:write name="projectVO" property="projectID"/>">
</td></tr>
<tr>

i want to show value of projectID in Projectid text in editable format.But in html:text in value(shown in bold) ..its not working.
Can anybody tell me correct syntax for that.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

tushartrue fasate wrote: <html:text property="projectID" size="20" maxlength="10" value="<bean:write name="projectVO" property="projectID"/>">
i want to show value of projectID in Projectid text in editable format.But in html:text in value(shown in bold) ..its not working.
Can anybody tell me correct syntax for that.

Yes, you can't nest the struts tag inside other. The good workaround is to use EL.
Here is how it will look:


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Tusshar Fasate
Ranch Hand

Joined: May 21, 2008
Posts: 81
Thanks Sagar for yourreply.
But it's not working.
Please suggest if there is any other alternative or syntax
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

tushartrue fasate wrote:But it's not working.

ItDoesntWorkIsUseless
I think I missed out the quotes, here is the correct one:

tushartrue fasate wrote:Please suggest if there is any other alternative or syntax

EL is the best alternative
Tusshar Fasate
Ranch Hand

Joined: May 21, 2008
Posts: 81
I tried with quotes also.
But same result....
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

tushartrue fasate wrote:But same result....

Which same result ? As far as my knowledge is concerned the above code should work, But you're not telling anything, please TellTheDetails.
What you tried and what you got, any error/exception ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: regarding <html:text> tag