wallpaperpaste
asked on
jsp session variables
Is it possible to insert a session variable as a value in a form? Ive tried this, it gets executed and the value is set buts its not inserted as a value in the form.
<% String p = (String)session.getAttribu te("p");
out.print(p)
%>
<input type="text" name= "anam" size = "4" value = "€ "'+p+'"" >
<% String p = (String)session.getAttribu
out.print(p)
%>
<input type="text" name= "anam" size = "4" value = "€ "'+p+'"" >
ASKER
This is what im trying:
value ="<%= + pass %>" "
This is the error im getting:
operator + cannot be applied to java.lang.String
value ="<%= + pass %>" "
This is the error im getting:
operator + cannot be applied to java.lang.String
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Got it with this:
value ="<%=pass %>
thanks
value ="<%=pass %>
thanks
instead you could use
<input type="text" name= "anam" size = "4" value ="<%= '€ ' + p %>" />
rrz