• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with values from a form

 
nash avin
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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

request.getParameter("fname"));

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

AS
 
rahul V kumar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you calling these two servlets?
 
nash avin
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


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
AS
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set the field as readonly or omit the textfield, means just show the value.
Or
I think we need a clear question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic