Dave,

     It is not just theory, and it does work.  Try using <%= name %> instead of <%name%>.  That should solve this problem for you.  Take care.  Rob

>From: Dave Potts <[EMAIL PROTECTED]>
>Reply-To: Dave Potts <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Tag libraries and jsp:getProperty
>Date: Tue, 21 Aug 2001 08:56:43 +0100
>
> >Dave Potts wrote:
> >>
> >> I have attempted to supplyu the input from a bean via jsp:getProperty to a
> >> custom tag.
> >>
> >> > >> property="address"
> >> />">
> >>
> >> The syntax of double quote marks is correct according to the Hans Bergsten
>Java
> >> server Pages book.
> >>
> >> The web server is tomcat version 3.3 milestone 4, is this a case of a bug,
> >> feature, RTFM or more likly a coding error on my part ?
> >>
> >> I have tried playing with using ' quote marks, but receive other error
>messages.
> >>
> >> Does anybody have a clue
> >
> >You are trying to use a JSP action element to set the attribute value of
> >another custom action, and that is not allowed according to the JSP spec.
> >You must use a JSP expression to set the attribute value instead:
> >
> >
> >
> >Most likely you're confusing this scenario with another scenario I
> >describe in the book, namely setting the attribute value for an HTML
> >element using the getProperty action, e.g.
> >
> > > > property="userName" />">
> >
> >This works because the web container treats the HTML element as template
> >text; it's doesn't interpret the HTML elements so as far as the
> >container is concerned, the above is the same as:
> >
> > Any text > > property="userName" /> Any text
> >
> >I hope you understand the difference.
>I understand the difference, its a nice theory, but it does'nt work.
>
>I tried something smilair
><% String name=request.getParameter("address"); %>
>
> With the result that the string <% name %>is passed through to the tag, a
>quick look at the generated source shows
> _jspx_th_pinlib_arg_0.setPageContext(pageContext);
> _jspx_th_pinlib_arg_0.setParent(_jspx_th_pinlib_system
>_0);
> _jspx_th_pinlib_foo_0.setValue(" <% name %>");
> int _jspx_eval_pinlib_foo_0 = _jspx_th_pinlib_arg_0.doStartTag();
> I have checked the setting in the tab ligrary xml file, the retexprvalue is set
>to true.
>
> So I am still stuck
>
> >
> >Hans
> >--
> >Hans Bergsten [EMAIL PROTECTED]
> >Gefion Software http://www.gefionsoftware.com
> >Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
> >
> >===========================================================================
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>-- email [EMAIL PROTECTED]
>-- web www.pinan.co.uk
>--The opinions expressed in this article are personal and do not
>--represent the views of Pinan Software.
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


Get your FREE download of MSN Explorer at http://explorer.msn.com
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to