Skip to content Skip to sidebar Skip to footer

Unable To Forward The Values Form Servlet To Html

I am trying to Send userName as request to html page as set attribute, But it is not displaying the msgs in FormDemo, Please let me know where i am going wrong. Login page

Solution 1:

There is not a way to write values like this into a plain HTML page. You will need to use a JSP to do this.

Solution 2:

U can not render values from servlet to html. Jsp tags you are using works with JSP only. JSP is also a type of Servlet so when you forward a request from one servlet to JSP, request bring all request and response data to JSP and your attributes will be available in JSP too. So use FormDemo.jsp instead of FormDemo.html. It will work then.

Post a Comment for "Unable To Forward The Values Form Servlet To Html"