473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to pass jsp value in using java script to another jsp

this is the my java script function

Expand|Select|Wrap|Line Numbers
  1. function  operation(){
  2.  
  3.     var frm = document.getElementById("frm"); 
  4.     frm.action="second.jsp?n1="+<%=newname%>;
  5. }
  6.  
  7.  
  8.  
  9. some jsp code
  10. <form name="frm" method="post">
  11. <%=String newname=name[i]%>
  12. .
  13. .
  14. .
  15. </form>
Feb 5 '14 #1

✓ answered by Dormilich

var link = "second.jsp?name="+name+"&name2="+name2;

4 6132
Dormilich
8,658 Expert Mod 8TB
not at all. JSP and JavaScript have different execution times.
Feb 5 '14 #2
thank you... i try another way but there also a problem

i want to send multiple value to another page....this is worked for one value.but i want to send more parameters...can you help me



Expand|Select|Wrap|Line Numbers
  1. function  operation(name,email,pass){
  2.  
  3.  
  4.       var link = "second.jsp?name="+name;
  5.       window.open(link);
  6.  
  7. }
Feb 5 '14 #3
Dormilich
8,658 Expert Mod 8TB
var link = "second.jsp?name="+name+"&name2="+name2;
Feb 5 '14 #4
thanks it working 100%...........thanks again.
Feb 5 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Alen Hubtka | last post by:
Hello All, Can any one share the code to compare two date data using Java script?Please. I would like to compare two dates and findout there are greater than or less than each other. Thanks,...
6
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and...
8
by: dbaplusplus | last post by:
I worked on web development using java script many many years, so I am now a newbie to javascript. I have a single html page, which is generated dynamically using some programming language. Web...
4
by: gsuns82 | last post by:
hi friends,can any one give the coding for finding file size using java script???
1
by: harshavardhan | last post by:
Hi, here is the problem: Consider there are three frames in a HTML page. When I try to print these frames using java script, only the third document is being printed thrice. <HTML><HEAD> <script...
3
by: sathikbasha | last post by:
hi Please tel me is there any way to set the value to Page Set Up example LEFT ,RIGHT,TOP and BOTTOM using java script..
7
by: kamalaswaminathan | last post by:
Hi all, I want to pass the value of the select box to another form using java script. my code looks like this.. <script> function func { document.myform.action = "abc.cgi";...
1
by: anilkumar1980 | last post by:
Hi All, Here I need help to all of u, I am using ASP.NET 2.0 and Third party Infragistic Controls. I Have included master page in my page (<%@ Page Language="VB"...
6
by: DhananjayPatki | last post by:
Hello, I wnat the code , how to disable the Close(x) icon script using java script . is there any event that can be used to prompt the user before closing the new window.
11
by: ajaymohank | last post by:
Hello Friends....... in my project i am having a dropdown and based on the values selected from the dropdown, i have to enable 2 radio button. in the on change function of drop down i have written...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.