If the user selects ID 101, then 101 should be sent via parameter to a designated page.
The servlet code written by me is as follows:
The parameter being passed by writing the above code is: EID=rs.getString(1).
I dont want that. I want the String passed by ResultSet to be passed.
Akhilesh Trivedi wrote:This looks too complicated, because your database, your view and your control-logic all are in one place. Why not have JSP separately and send/receive data via session/request objects.
Even if a JSP is separately created, how will i write the code to display the database in a tabular column.
And how will i retrieve the CLICKED value in parameter ?
Aniketh Narayanan wrote: Even if a JSP is separately created, how will i write the code to display the database in a tabular column.
Come up with whatever you are doing and I am sure you will get help from this forum.
This library is very useful for working with JPSs.
For example, on your Servlet, you could have:
... forward to a JSP...
Then in your JSP:
Akhilesh Trivedi wrote:
Bear Bibeault wrote:JSTL and EL are the moderne work-horses of JSP.
What is JSTL?
nalla srinivas wrote:please remove \(slash) before url. i think i will work
There is no \ in the URL -- that's an escape character in the Java string literal.