Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Expression

 
Kumar prince
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can i use the JSP Expression directly in HTML Tag without attribute.
Eg:<input type="text" id ="<%= %>" name="<%=%>" " <%=%> />
Please help me on this without attribute can you put directly the JSP Expression
Thanks for advance
Regards,
Prince
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, why not? JSP doesn't care *where* the variables are being used, in fact, it knows nothing about HTML at all.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except, of course, that JSP scriptlets have been discredited for over 8 years now and you should be using the JSTL and EL instead.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!