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
| 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 Search this Thread Display Modes
  #1 (permalink)  
Old August 2nd, 2004, 01:47 PM
Registered User
 
Join Date: Apr 2004
Location: Chicago, IL, .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't get errors to display with <html:errors>

I'm using the sample app in Chps. 19-20 of the Beg. JSP Web Dev. book. I have the application working, but can't get my form error messages to display properly.

I have the <html:errors> line in my .jsp pages and am creating a new ActionError whenever something goes wrong. The ActionError is working properly, but I must be missing something that's breaking this.

Can anyone lend a hand? Here's what I have:

web.xml:
<init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResources</param-value>
</init-param>

ApplicationResources.properties:
error.incorrect.passwords=Passwords do not match

MyEditAction:
 } catch (Throwable e) {
            e.printStackTrace();
            ActionError error = new ActionError(e.getMessage());
            errors.add(ActionErrors.GLOBAL_ERROR,error);
}
 saveErrors(request,errors);
 return new ActionForward(mapping.getInput());

DisplayPage.jsp:
<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/template" prefix="template" %>

<br/>
<html:errors/>
<br/>


Can anyone see what I'm missing?
Thanks in advance?
Mike


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
HTML Import Errors: anandham Classic ASP Basics 1 December 4th, 2005 05:26 PM
How to display errors ke00c PHP How-To 1 November 13th, 2004 04:15 PM
HELP: XSL -> HTML <select selected=true> jedbartlett XSLT 4 October 7th, 2004 11:16 PM
Calendar display errors barun55 General .NET 1 May 26th, 2004 07:30 AM
Dynamic HTML <<Events>> babloo81 Javascript 2 December 29th, 2003 12:40 PM



All times are GMT -4. The time now is 01:04 PM.


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