File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX JSP TagLib Interaction?

 
graham king
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic