This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jstl / Custom Tag Combination

 
Brandon Duncan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone please help me?

I have a custom tag. I refernce the tag in my Jsp page with:
<%@taglib prefix="services" tagdir="/WEB-INF/tags/services" %>

inside the tag i have:
<jsp:useBean id="beanUser" type="model.User" class="model.User" scope="session" />

and I can do things such as
<INPUT id='sRosterEndDate' value='${beanUser.sRosterEndDate}'>
which works fine

when i use

<jsp:useBean id="beanUser" type="model.User" class="model.User" scope="session" />
<jsp:setProperty name="beanUser" property="*">
</jsp:useBean>

i receive the following error:
"/WEB-INF/tags/services/tagSearch.tag(3,4) According to TLD, tag jsp:setProperty must be empty, but is not"

could someone please help me?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


You forgot to close the tag.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic