• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hi All  RSS feed

 
Laxmi Mashibinal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
My pleasure Laxmi.
 
Malhar Me
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
You can access the Java value using the scriptlet of the form <%= myVar %> in Javascript.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raghavan Muthu wrote: You can pass values from JSP to Javascript using scriptlets.


or use EL
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!