View Single Post
  #1 (permalink)  
Old March 7th, 2004, 05:56 PM
isgamon2004 isgamon2004 is offline
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with code in wrox book

on page 729 in Beginning JSP Web Development.
I have the following:

login.jsp

<%@ taglib uri="/template" prefix="template" %>
<template:insert template="template.jsp">
  <template:put name="content" content="loginContent.jsp"/>
</template:insert>

and loginContent.jsp

<br/>
<br/>
<br/>
<table cellpadding="2">
<form action="j_security_check" focus="userId" method="post">
  <tr>
   <td align="right">
    <b>login:</b>
   </td>
   <td>
    <input type="text" name="j_username" size="15"/>
   </td>
  </tr>
  <tr>
   <td align="right">
    <b>password:</b>
   </td>
   <td>
    <input type="password" name="j_password" size="15"/>
   </td>
  </tr>
  <tr>
   <td align="right">
   </td>
   <td>
    <input type="submit" value="Enviar"/>
   </td>
  </tr>
 </html:form>

</table>

The problem is:
  I write a user who is in my database but it always returns login.jsp

Could you please help me with this problem as I am really stuck with it.


Many thanks for your help.

Reply With Quote