Announcement Announcement Module
Collapse
No announcement yet.
form tag Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • form tag

    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.

    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>
    Here is the HTML code generated:
    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>
    I am running in Glassfish Application Server.

    Any ideias?
Working...
X