• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using jsp:getProperty inside scriplet

 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to attribute a variable value inside a scriplet using jsp:getProperty, ex:
<code>
<%
String name = "<jsp:getProperty name='bean_instance' property='name'>"
%>
</code>
I cannot find a way, and as it�s a scriplet I think I�m not gonna be able to do it but I�d like some oppinion on it.
thanks in advance.
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't "bend over backwards"
Use
<% MyType x = bean_instance.getName(); %>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!