From taglibs-user-return-1418-apmail-jakarta-taglibs-user-archive=jakarta.apache.org@jakarta.apache.org Mon Oct 22 22:02:37 2001 Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 52686 invoked by uid 500); 22 Oct 2001 22:02:36 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: taglibs-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 52677 invoked from network); 22 Oct 2001 22:02:36 -0000 Message-Id: <4.3.2.7.2.20011022143243.02635db0@mira-sjcd-3.cisco.com> X-Sender: gramanuj@mira-sjcd-3.cisco.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 22 Oct 2001 14:48:00 -0700 To: taglibs-user@jakarta.apache.org From: Gopalakrishnan Ramanujam Subject: Is there a TextTagLib without a bean Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I am using the Taglib to generate the HTML content for my page. I cannot have a JSP and bean because all my contents are dynamic in nature. For this reason I am calling the Taglib directly from a servlet to generate the HTML(I am using the Taglib to have a common look across all the apps using the Taglib). I am using a Text Taglib from apache from my servlet. When I call the doStartTag it says there is no getter method for the bean. I am giving the code snippet for this. org.apache.struts.taglib.html.TextTag _jspx_th_text_0 = new org.apache.struts.taglib.html.TextTag(); _jspx_th_text_0.setPageContext(pageContext); _jspx_th_text_0.setParent(_jspx_th_form_0); _jspx_th_text_0.setName("userNameIn"); //_jspx_th_text_0.setProperty("userNameIn"); try { int _jspx_eval_uii_text_0 = _jspx_th_uii_text_0.doStartTag(); } catch( Exception ex) { } If I use setName() it is saying that cannot find bean userNameIn in scope null. If I use setPropety() it is saying the no getter methods for userNameIn. I need not have a bean since all my contents are dynamic and my text name will be dynamic. I will use getParameter to get the values from the HTTPRequest. Is there any way to use these HTML Taglibs without having a bean. (getter and setter methods). Thanks Gopal