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

Load data into <html:text> tag?

Hi!
When I have a value: setAttribute("item",item). I want load "item" into <html:text> tag. But I don't know how to do that. Everyone can be help me! Please. Thanks
0
khoa235
Asked:
khoa235
  • 2
1 Solution
 
actonwangCommented:
<html:text name="..." value="${item}" />
0
 
actonwangCommented:
or :

<html:text ... value="<%=request.getAttribute("item")%>">
0
 
radarshCommented:
For ${item} syntax to work, you need the struts taglibs with EL support.
It will be present under your struts distribution directory under the name contrib

________
radarsh
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

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