File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes SimpleTagSupport implementation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "SimpleTagSupport implementation problem" Watch "SimpleTagSupport implementation problem" New topic

SimpleTagSupport implementation problem

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276

I am developing tags which can generate Javascript at runtime.With classic tags i have done it succesfully but with simple tags one problem is coming

I have my jsp page like this:

Now in this jsp page the form tag handler functions fine but the nested tag doesn't work.What i want is a form tag is generated in the html's body tag & after that as a footer the script tag gets appended to the form tag in body ie of the sort:

form form attributes

close form
script tag

close script tag
close body
close html


The tag handler for outer tag 'form' is :

& the nested tag handler FOR VALIDATE TAG is :

Thanking you,


The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Shraddha Jain

Joined: Feb 02, 2006
Posts: 27
i dont see your jsp file supplying the required attributes namely footerand onsubmit to the SimpleTag Form handler? and what have you specified as the <body-content> for the form tag in your .tld file?

could you post the exact exception thrown?
[ February 07, 2006: Message edited by: Shraddha Jain ]
Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276

Thanks for the reply.

See actually i am not getting any exception.

What's happening is the html form tag which i want to generate at runtime using my custom tags is getting generated.

But the javascript <script> tag which is also to be generated after the end of form tag is not getting generated & the body-content type for outer form tag is scriptless & for inner tags its empty.

The footer & onsubmit attributes i have kept optional .If they are bnot provided then through coding i am embedding tht into my jsp page.

So see if u can help me sort out this problem.

ok bye
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: SimpleTagSupport implementation problem
It's not a secret anymore!