rammie you'll have to make either an AJAX request to the server for that or submit the page. Can you please elaborate what you want to accomplish so that I could, well, write some code for you. I would also like to suggest you that you read a couple of books because it seems that you are very new to Servlets and JSP. That way you can understand things better ...
Joined: Mar 26, 2009
thanks a lot for your support.
actually my main moto is.....
i have a jsp page searchedEmpPage.jsp
in this as it there in code a list of employees is displayed .These employee would be as object which are stored in an array fetchedArrayObject as mentioned there in my jsp page.
now i want to select one employee through radio button....and which ever employee(object) is selected through radio button ......that element(object) has to be passed to servlet.
This has been explained to you in your other posts and you are just wasting everyone's time, including your own, by posting the same mistakes over and over again.
For starters, you might want to read this article to get started on understanding how JSP works. Then find yourself a good book or tutorial.
rammie singh wrote:but what is the way we can put an object in a session in a function in a jsp page.
If the latter (which is what I suspect), then the fact that this is a JSP is completely irrelevant. Once the page gets to the browser, it's just an HTML page like any other.
Did you read the article that I linked to? Did you understand it?
Joined: Mar 26, 2009
Hi every body
i am sorry to say that but can i really get the solution of my problem in this forum
i don't know if this forum runs to give any solution or just for fun.
i am sorry guys if i made any hard coment.
Joined: Oct 08, 2006
JSP/Java runs at server side. JSP/Java generates HTML/CSS/JS output. Server side sends output to client side. Client side runs HTML/CSS/JS.
View the page source in your webbrowser and think once more about it.
To "access" JSP/Java variables in JS, simply let JSP/Java print it to the output as a JS variable!