473,386 Members | 1,715 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,386 software developers and data experts.

how to pass value from one application to another

Hi,

I am trying to access the userid in application2 which was set in the application1 . But i am getting the value as null. Could someone help me out with this ?

Thanks,
Shwetha
Dec 28 '11 #1
2 1814
Are u post the Userid from application1 to application2 via Url?
Dec 28 '11 #2
page 1:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>Login Page of EMS</title>
  4. </head>
  5. <body bgcolor="green">
  6. <center>
  7. <h1>Welcome</h1>
  8. <form action="next.jsp">
  9.         User Name:<input type="text" name="t1" />
  10.         <p/>
  11.         Password:<input type="password" name="t2" />
  12.         <p/> 
  13.        <input type="submit">
  14.  
  15. </form>
  16. </center>
  17. </body>
  18. </html>
  19.  
  20. page 2:
  21. <html>
  22. <%
  23. int id=t1.getParameter();
  24. int pwd=t2.getParameter();
  25.  
  26. if(id.equals("admin")&&pwd.equals("admin"))
  27.     out.print("Success");
  28. else
  29.     out.print("fail");
  30. %>
  31. </html>
you can also use the get() and post() methods of html.
Dec 30 '11 #3

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

Similar topics

2
by: Unregistered | last post by:
How do i pass info into another website which is not mine into a popu window Unregistered ----------------------------------------------------------------------- Posted via...
1
by: Al | last post by:
Ref:how to pass value along with click of a button hi,I have created a form that has single button. as follow <asp:button id="btnCallfunction" runat="server" text="func_call" onclick="add_int" />...
3
by: john woo | last post by:
Hi in JSP, it's easy to pass value from java-variable to javascript-variable, like js_function(a) { a=<%java-class.A%> } I'm wondering how is the other way around? I tried
6
by: sam | last post by:
I have two classes. I want to pass value from Form1.vb to Form2.vb. And then return the calculated value from Form2.vb. Can you teache me how to do this? Thanks in advance.
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
3
by: startsmart | last post by:
Hi This is first time to write and alse it is first time to show this site my problem is i need to pass value from any input type like text for example to hidden field I tried to make a...
11
by: dkate777 | last post by:
Hi, Is anybody know how to pass textbox input value to another page. I am using document.secondform.fieldname.value=document.firstformname.fieldname.value but it's not working Thanks
7
by: Boki | last post by:
Hi All, I can't pass data to another form: in form2: private void button1_Click(object sender, EventArgs e) { Form1 form_copy = new Form1();
4
by: bluepiper | last post by:
Im using VB 6.0 The problem is have two forms the the first one (name it Form1) include one textbox control and button , and when pressing button I want to pass the textbox value to another text...
0
by: perdijc | last post by:
I create a dataset via visual studio wizard and then I drag some columns to a form in details mode. So in my form I have some coontrols binding to bindingsource. If a run the project, all controls...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.