• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

AJAX JSP TagLib Interaction?

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic