File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Help with values from a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Help with values from a form" Watch "Help with values from a form" New topic

Help with values from a form

nash avin
Ranch Hand

Joined: Nov 18, 2004
Posts: 45
Hi All,

I have 2 servlets one called the DataCollectServlet and the other the DBInsertServlet.


Works with the DataCollectServlet , but it doesnt work with the DBInsertServlet.

What could be the problem.It would be great if someone gives a detailed explaination.

Thanking you all in advance

rahul V kumar
Ranch Hand

Joined: May 20, 2003
Posts: 82
How are you calling these two servlets?
nash avin
Ranch Hand

Joined: Nov 18, 2004
Posts: 45

Thanks for the reponse.I figured that the fname in DBInsertServlet

request.getParameter("fname")) , fname doesnt exist, silly me...

To address your question as to how the servlets are being called.....

There is .jsp page , which is like this.....

But this doesnt seem to solve the purpose.....On the particular jsp page, the fields are displayed as "text fields", which can be edited/changed.

How do I prevent this particular thing.It would be great if you or someone sees this post and helps me.

Thanks in advance
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
set the field as readonly or omit the textfield, means just show the value.
I think we need a clear question.
I agree. Here's the link:
subject: Help with values from a form
jQuery in Action, 3rd edition