Hi people,
I am trying to show a form with the form tags from spring framework but for some reason the form is not rendering.
Here is the HTML code generated:Code:<?xml version="1.0" encoding="ISO-8859-1" ?> <jsp:root xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:form="http://www.springframework.org/tags/form" version="2.1"> <jsp:directive.page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" /> <html> <head><title>Please login</title></head> <body> Welcome to the Login Sample! <form:form method="post"><br /> Username: <form:input path="username" /><br /> Password: <form:password path="password" /><br /> <input type="submit" name="_eventId_login" value="Login" /> </form:form> </body> </html> </jsp:root>
I am running in Glassfish Application Server.Code:<html> <head> <title>Please login</title> </head> <body> Welcome to the Login Sample! <form:form method="post"><br /> Username: <form:input path="username" /><br /> Password: <form:password path="password" /><br /> <input value="Login" name="_eventId_login" type="submit" /> </form:form> </body> </html>
Any ideias?


Reply With Quote