• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing a TagHandler

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, it is org.apache.struts.taglib.html.TextTag
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Struts forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic