Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding <html:text> tag

 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sagar for yourreply.
But it's not working.
Please suggest if there is any other alternative or syntax
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried with quotes also.
But same result....
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic