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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX JSP TagLib Interaction?" Watch "AJAX JSP TagLib Interaction?" New topic
Author

AJAX JSP TagLib Interaction?

graham king
Ranch Hand

Joined: Dec 30, 2004
Posts: 133
Hi,

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.

Graham


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

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

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

Eric
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.

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