jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes AJAX JSP TagLib Interaction? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX JSP TagLib Interaction?" Watch "AJAX JSP TagLib Interaction?" New topic

AJAX JSP TagLib Interaction?

graham king
Ranch Hand

Joined: Dec 30, 2004
Posts: 133

Is it possible for an AJAX response event to invoke a jsp taglib on a page? Like let's say I have a calendar widget and when a user select's a fwd >> link the AJAX code calls a servlet which sends a response. Right now, the servlet sends the response and AJAX reconstructs the page using the new variables.

Could the servlet instead set some variables in the session or response and have the AJAX response instruct the embedded taglib to reconstruct the page?

Thanks for any help.


write, revise, re-write, revise, again...<br />write, revise, re-write, revise, again...
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
If you build a control to do it, yes it is possible.

Easier solution could be to place the calendar in an iframe.

graham king
Ranch Hand

Joined: Dec 30, 2004
Posts: 133
So, you mean a taglib control object? Could ya point me to some reading material I could check out?

I've tried working with some IFrames before - do to the v|drop down z-index problem, but, wasn't ever able to get em to work.

I know this calendar implementation is kinda a hack, but, it seems to do the trick and it's also nice if we need customizations done for scheduling. I was just hoping to get the embedded html in the javascript file back into the taglib...

Anyway... Thanks for the help...

[ April 24, 2006: Message edited by: graham king ]
graham king
Ranch Hand

Joined: Dec 30, 2004
Posts: 133
Hey Eric,

What do you mean by a control? I've had a hard time getting AJAX to execute java code. The only means I've been able to make it work is by ripping out HTML and replacing it with javascript (ouch!) written HTML.

Thanks Again.

[ April 25, 2006: Message edited by: graham king ]
I agree. Here's the link: http://aspose.com/file-tools
subject: AJAX JSP TagLib Interaction?
It's not a secret anymore!