• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

problem with textarea

Hi Experts,
I am getting a blank space in my text area and not able to remove it.

<%String query = (String)request.getAttribute("query");
 if(query == null) query = "";
 %>
 <textarea cols="100" rows="10" name="query"><%=query%>
</textarea>

Please Help
 
0
AmodKr
Asked:
AmodKr
  • 2
1 Solution
 
radarshCommented:
Hi AmodKr,

textarea interprets whatever is nested inside as its contents.
Try this:

<%String query = (String)request.getAttribute("query");
 if(query == null) query = "";
 %>
 <textarea cols="100" rows="10" name="query"><%=query%></textarea>


Hope it helps!

________
radarsh
0
 
AmodKrAuthor Commented:
Hey man, I don't believe that it makes a difference.
Thanks a lot ;-)
0
 
radarshCommented:
Thanks dude! That makes my JSP score 50000+. Awaiting my first certificate!


________
radarsh
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now