File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Jstl / Custom Tag Combination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jstl / Custom Tag Combination" Watch "Jstl / Custom Tag Combination" New topic

Jstl / Custom Tag Combination

Brandon Duncan

Joined: Dec 16, 2004
Posts: 1
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="*">

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

Joined: Jan 10, 2002
Posts: 63870

You forgot to close the tag.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Jstl / Custom Tag Combination
It's not a secret anymore!