hi,

want to call td element value to next page ,which is getting thru session attribute.while calling getting null in next page.
below is my code pls help me thanks in advance.


<input type="text" id="tname" value="<%= session.getAttribute("ename") %>"></td>

next page iam calling as: name=request.getParameter("tname")

The getParameter method of HttpServletRequet works on the name of form elements and not ID 's. You need something along the lines of:

[..] <input type="text" name="tname" id="tname"> [..]

Oh and BTW, don't use scriptlets; they are *bad*. There are better ways of developing a web application with J2EE. (e.g. JSTL, JSF)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.