aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "SimpleTagSupport implementation problem" Watch "SimpleTagSupport implementation problem" New topic
Author

SimpleTagSupport implementation problem

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Hello,

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:

html
body
form form attributes


close form
script tag

close script tag
close body
close html


KINDLY HELP ME OUT TO FIND OUT THE PROBLEM IN MY CODE:

The tag handler for outer tag 'form' is :


& the nested tag handler FOR VALIDATE TAG is :



Thanking you,
Jignesh


Regards,
Jignesh

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

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
Hi,

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
Jignesh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

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.

thanks,
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SimpleTagSupport implementation problem
 
Similar Threads
Testing Singleton class using easy mock
Getting Node Value using SAX
form/input tags and turning off autocomplete
multiple file upload in Strut2
checkbox