Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing a TagHandler

 
Anitha Lingam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is TextTag? It is not standard. Struts perhaps?
 
Anitha Lingam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it is org.apache.struts.taglib.html.TextTag
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Struts forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic