Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 7th, 2004, 05:56 PM
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
  #2 (permalink)  
Old January 20th, 2005, 06:29 PM
Registered User
 
Join Date: Jan 2005
Location: , , .
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>



Reply With Quote
  #3 (permalink)  
Old May 13th, 2006, 02:16 PM
Registered User
 
Join Date: May 2006
Location: , , .
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:wang_233933_1@hotmail.com(contact me).

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with code in wrox book.... wvmikep JSP Basics 2 August 24th, 2004 05:31 AM
Wrox book download code, GDI+ Programming jahanara_p2p All Other Wrox Books 1 June 14th, 2004 11: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 12:30 PM
Wrox Book "ASP Databases" code anyone? sleddog Classic ASP Databases 2 August 19th, 2003 04:24 PM



All times are GMT -4. The time now is 09:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.