Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2004, 05:56 PM
Registered User
 
Join Date: Mar 2004
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.

 
Old January 20th, 2005, 06:29 PM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I am having the same problem as you. All I can tell is that Tomcat is not finding the correct realm or database as called out in server.xml. If you find out a solution please let me know. I will try and let you know if I find one.

Thanks.

Mike

<Context path="/begjsp-tourism" docBase="begjsp-tourism" debug="0" reloadable="true">

<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/tourism_db"
userTable="attraction" userNameCol="user_id" userCredCol="password"
userRoleTable="user_role" roleNameCol="role_name" />

</Context>



 
Old May 13th, 2006, 01:16 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's the same program stuck with me,and I try everything that I can do,but it still not work,do you find the solution?Hope can share it.(it's urgency for me!!!Hope can get the ansower rapidly)

thanks in advance.
Email:[email protected](contact me).






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with code in wrox book.... wvmikep JSP Basics 2 August 24th, 2004 04:31 AM
Wrox book download code, GDI+ Programming jahanara_p2p All Other Wrox Books 1 June 14th, 2004 10:41 AM
Read first!!!: Where is the code for a Wrox book jminatel All Other Wrox Books 0 March 17th, 2004 04:43 PM
Read first!!!: Where is the code for a Wrox book jminatel Wrox Book Feedback 0 September 15th, 2003 11:30 AM
Wrox Book "ASP Databases" code anyone? sleddog Classic ASP Databases 2 August 19th, 2003 03:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.