• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Help with values from a form

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you calling these two servlets?
 
nash avin
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic