aspose file tools*
The moose likes Struts and the fly likes Accessing a TagHandler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Accessing a TagHandler" Watch "Accessing a TagHandler" New topic
Author

Accessing a TagHandler

Anitha Lingam
Ranch Hand

Joined: Apr 21, 2002
Posts: 38
Hi,

I have the following scenario.
I have a tag for a specific purpose. The dostartTag() in the Taghandler outputs a Text,Image and some javascript functions. This TagHandler extends
TextTag for getting the textbox.

In some other part of the application i need the same output but i do not want to use the existing tag due to some issues.

Here is what i need:
I have written a class to output the required details. But basically i want to just call the doStartTag() of my existing taghandler so that i can reuse the code. When i do this,
i get the following exception
javax.servlet.jsp.JspException: Cannot find bean EMPLOYEE in any scope
- Here EMPLOYEE is the name of the textbox and i am setting this value using the setName().

Can anyone help?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61415
    
  67

What is TextTag? It is not standard. Struts perhaps?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anitha Lingam
Ranch Hand

Joined: Apr 21, 2002
Posts: 38
yes, it is org.apache.struts.taglib.html.TextTag
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61415
    
  67

Moving to the Struts forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing a TagHandler