Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to pass parameter from servlet to html form

Answers were Sorted based on User's Feedback



how to pass parameter from servlet to html form..

Answer / shymax

Either use beans ...or use session.setAttribute
("Yourpara",paravalue) in Servlet and ..get in HTML in
Scriplet as session.getAttribute("Yourpara");

Hope this solve the problem

Is This Answer Correct ?    13 Yes 4 No

how to pass parameter from servlet to html form..

Answer / haneef

By the Hidden form fields..

we can set the name and values here

<input type="hidden" name="uName" value="xxx" />

this way, u can send u r parameters to html

(or) by cookies
Cookie c1=new Cookie("uName","xxx");
response.addCookie(c1);

Is This Answer Correct ?    8 Yes 1 No

how to pass parameter from servlet to html form..

Answer / amit ghosh

its simple... use request diapatcher

RequestDispatcher rd = request.getRequestDispatch("url?
newparam=newvalue");
rd.forward(request, response);

Is This Answer Correct ?    9 Yes 2 No

how to pass parameter from servlet to html form..

Answer / sachin s

You can also use HtppSessio, create a new session variable
and set the value and get the same value in HTML. However
this should be avoided if you want to pass to many
parameters.

Also,remember that Session variable should be flushed off
after the use, thats a good practise.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More Servlets Interview Questions

Difference between web container & web server........... Difference between web server & application server?????????

8 Answers   TCS,


Why is init() method is used in servlets?

0 Answers  


Is that servlet is pure java object or not?

0 Answers  


What is servlet api used for conneting database?

0 Answers  


Define the lifecycle for executing a jsp page.

0 Answers  


What is cookie in servlet?

0 Answers  


difference between request.getSession(false) or request.getSession() and request.getSession(true)

2 Answers  


What are the new features added to servlet 2.5?

0 Answers  


Explain Action Servlet?

0 Answers   Cap Gemini,


What is a Session Id?

1 Answers  


Can we fetch the attributes related to a servlet on a different servlet?

0 Answers  


i need connection pooling code.....from harpreet.your@gmail.com

1 Answers   IBM,


Categories