• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding new checkbox in JSP  RSS feed

 
Amritha Ganga
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am trying to add functionality to a check box "Get Office Address " to try to make it autopopulate the office address. Right now , there is only one check box "Get Home address" and when the user clicks it , the home address is autopopulating . I want the same with the new checkbox that i added.

I can , right now submit, but the resulting page doesn't populate the address, the field is blank. should i add office address to the JSP page ?

Also, the page gives an error " Line 1 should be given if it is not home address " when i try to submit the office address. this is the code which generates the error. How can I add code in the following such that Line 1 gives the same error for Office visit also ?


Please help me ...

Looking forward for your inputs..

Thanks,
Amritha
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amritha can you please post the relevant JSP code and also the servlet code that you have given is not enough. Just post the code in which you are taking the request parameters...
 
Amritha Ganga
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Ankit,

These are the relevant JSP and Servlet codes..



The servlet code is


Looking forward for your reply..

Amritha
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!