struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <mar...@iinet.net.au>
Subject Re: NullPointerException with Validation Messages
Date Wed, 10 Sep 2008 00:47:43 GMT
Ok, that makes sense.  How would I set that up?  Right now, I have an  
index.jsp with the following: <jsp:forward page="login.jsp"/>.  This  
is so that someone accessing the site via http://localhost/ will be  
presented with the login page.

Mark

On 10/09/2008, at 10:20 AM, Dave Newton wrote:

> Ah; there we go. The attached validation file in JIRA didn't have  
> the "key" attribute; threw me off.
>
> You're accessing the login page via the JSP, right? That won't  
> work. You should access it through an action so there's an action  
> on the stack so the getText() can be called on something that exists.
>
> You can either configure a class-less action in the XML or get at  
> it through dynamic method invocation:
>
> /${context}/login!input.action
>
> Dave
>
> --- On Tue, 9/9/08, Dave Newton wrote:
>> --- On Tue, 9/9/08, Mark wrote:
>>> No, I'm not using an <s:action...> tag.
>> Should I be?
>>
>> Not if you don't need it.
>>
>> Does it work if you have the validation XML file's
>> DOCTYPE w/o the trailing space after ".dtd "?
>>
>> How are you accessing the login page the first
>> time--through an action?
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message