• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hi All

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I wanted to display popup window in jsp for some condition..

Note: two lists are there selecting the combination,if the combination is already exists, then it should display the popup which should contain the selected values ie dynamic in nature.

How to send the dynamic values to the javascripting method??

Please help me out..
give some example code...


Thanks,
Laxmi
Filename: example.bmp
File size: 209 Kbytes
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Laxmi,


First of all, try to give a meaningful subject rather than "Hi All" which hardly attracts anyone's attention in such a forum. People may even think that it could be just a casual greeting!

You can pass values from JSP to Javascript using scriptlets. Good luck!
 
Laxmi Mashibinal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Raghavan Muthu wrote:Hi Laxmi,


First of all, try to give a meaningful subject rather than "Hi All" which hardly attracts anyone's attention in such a forum. People may even think that it could be just a casual greeting!

You can pass values from JSP to Javascript using scriptlets. Good luck!



Thanks Raghavan..
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My pleasure Laxmi.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raghavan,

Could you please tell me how can I pass data from jsp to javascript using scriplet.

 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can access the Java value using the scriptlet of the form <%= myVar %> in Javascript.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Raghavan Muthu wrote: You can pass values from JSP to Javascript using scriptlets.



or use EL
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Laxmi Mashibinal, Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "Hi All" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

seetharaman venkatasamy wrote:

Raghavan Muthu wrote: You can pass values from JSP to Javascript using scriptlets.


or use EL



Scriptlets should no longer be used in modern JSP pages. This is no longer 2002.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:
Scriptlets should no longer be used in modern JSP pages. This is no longer 2002.



Thanks Bear!
 
reply
    Bookmark Topic Watch Topic
  • New Topic