Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

regarding <html:text> tag

 
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.
 
Ranch Hand
Posts: 2908
1
Spring Java 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: 2908
1
Spring Java 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: 2908
1
Spring Java 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 ?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic