File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Jstl / Custom Tag Combination" Watch "Jstl / Custom Tag Combination" New topic
Author

Jstl / Custom Tag Combination

Brandon Duncan
Greenhorn

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="*">
</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

Joined: Jan 10, 2002
Posts: 61095
    
  66



You forgot to close the tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Jstl / Custom Tag Combination