Bobby Mitch wrote:
yes, but i wrote that with this XML file or without this XML file, that is with
annotations only (@Validation etc), i still get the same error.
So i do not see the point of me trying to change that file.
And I want this to work with annotations too.
Thanks anyway for helping.
yes, but i wrote that with this XML file or without this XML file, that is with
annotations only (@Validation etc), i still get the same error.
So i do not see the point of me trying to change that file.
And I want this to work with annotations too.
Thanks anyway for helping.
--- On Tue, 9/9/08
GREAT! That fixed it! I'll update the Jira. Thanks for your help!!!
Mark
On 10/09/2008, at 10:50 AM, Dave Newton wrote:
--- On Tue, 9/9/08, Mark wrote:
Ok, that makes sense. How would I set that up? Right now,
I have an index.jsp with the following: . This is so that someone accessing
th
--- On Tue, 9/9/08, Mark wrote:
> Ok, that makes sense. How would I set that up? Right now,
> I have an index.jsp with the following: page="login.jsp"/>. This is so that someone accessing
> the site via http://localhost/ will be presented with the
> login page.
I generally just use a redirec
Ok, that makes sense. How would I set that up? Right now, I have an
index.jsp with the following: . 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
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 exi
Gawain Hammond wrote:
...
That's a lot of problems, and to work-around each problem you've moved
to a more sophisticated and complicated solution hoping for the best.
You'll need to get the plain-old-validation working first. If validation
fails, your action's execute method is not invoke
--- On Tue, 9/9/08, Mark wrote:
> No, I'm not using an 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
-
Bobby Mitch wrote:
hi, thanks again for helping.
What XML file exactly are you talking about ? The decriptor file strugs-tag.tld from the
The validators XML file you provided in your original email:
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensy
Yes, all my actions are extending
com.opensymphony.xwork2.ActionSupport. Check the Jira for the full
source to LoginAction.java.
No, I'm not using an tag. Should I be?
Mark
On 10/09/2008, at 9:45 AM, Dave Newton wrote:
You're extending ActionSupport, right?
I'm also wondering if there
You're extending ActionSupport, right?
I'm also wondering if there's anything else on the value stack. Are you using
an tag?
Dave
--- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote:
> From: Mark <[EMAIL PROTECTED]>
> Subject: Re: NullPointerException with Validation Messages
> To: "Struts Us
I changed to , refreshed,
and I still get the NPE :-(
If this help, I've also run into another problem which is related.
If I implement the Validatable interface in my action, and then add a
Field error (ie. addFieldError("userName", "requiredString");) in the
validate method, the messa
I can zip up my complete maven directory and post it in the Jira. Is
that an appropriate place for it? Or should I email it to you directly?
Mark
On 10/09/2008, at 8:45 AM, Dave Newton wrote:
--- On Tue, 9/9/08, Mark wrote:
Thank you for the suggestion. Yes, I have and it still
produces
Here's something to try, although I still can't get the NPE, which is
irritating and scary:
Your 's action is "login", which means the DOM's id will
also be "login". Because the markup is arguably somewhat brittle, your element is colliding with the .
Try changing the id to something like "l
Dear all,
1. I would like to ask the experts if there are any known issues/design
considerations in using scope plugin(1.0.4) in a websphere portal. We have a
registration use case that involves conversation. He has to answer questions
across three screens, then the summary page and finally persist
--- On Tue, 9/9/08, Mark wrote:
> Thank you for the suggestion. Yes, I have and it still
> produces the NullPointerException.
You may want to try putting the complete webapp up somewhere, or post a
minimal, but complete, source example on something like pastebin/etc. I tried
several different t
--- On Tue, 9/9/08, Mark wrote:
> Thank you for the suggestion. Yes, I have and it still
> produces the NullPointerException.
You may want to try putting the complete webapp up somewhere, or post a
minimal, but complete, source example on something like pastebin/etc. I tried
several different t
Thank you for the suggestion. Yes, I have and it still produces the
NullPointerException.
Mark
On 09/09/2008, at 10:45 PM, Pascal Lalonde wrote:
Have you tried this ?
- Pascal
Mark wrote:
Hi all:
I'm
Francisco Exposito wrote:
Also I've tried to use displayTagAjax. In order to use it, I define in the main
page:
But when I reload this page, I receive the error "jQuery is not defined" and the error seems to be in the line of displayTagAjax.js:
jQuery(function($) {
changeLinks();
});
hi, thanks again for helping.
What XML file exactly are you talking about ? The decriptor file strugs-tag.tld
from the
struts2-core-2.x.x.x file ?
I tried 3 versions already, here are the first lines of each
version : struts-2.0.11.1
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
versio
DNewfield wrote:
>
> In case it's there and I'm just failing to find it, or in case this
> changes (back again?) in the future, is there any reason not to put your
> "new FileInputStream(...)" call in the action getter that returns the
> InputStream?
>
That wouldn't work in the case I'm dea
--- On Tue, 9/9/08, Pascal Lalonde wrote:
> Didn't I read somewhere that one of the good practices
> was to copy the template folder in the project WEB-INF
> folder? If this is true, then just directly edit the
> style sheet of the theme?
Overwriting the styles is still easier. The template issu
> It'd be easier to just include your own stylesheet after the tag and
> overwrite the styles.
Alright. Good to know. But that's for "some time in the future when I
have more time - investigation".
Thanks!
/Ylva
-
To unsubscr
Didn't I read somewhere that one of the good practices was to copy the
template folder in the project WEB-INF folder ? If this is true, then
just directly edit the style sheet of the theme ?
- Pascal
Dave Newton wrote:
--- On Tue, 9/9/08, Ylva Degerfeldt wrote:
Just out of curiosity.. If
--- On Tue, 9/9/08, Ylva Degerfeldt wrote:
> Just out of curiosity.. If I would want to change these
> default style settings, where could I find the file that
> I need to edit?
It'd be easier to just include your own stylesheet after the tag and
overwrite the styles.
Dave
---
No, that was it! I wasn't using the s:head tag, but I am now.
Thank you, Dave!
Just out of curiosity.. If I would want to change these default style
settings, where could I find the file that I need to edit?
/Ylva
On Tue, Sep 9, 2008 at 8:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On T
--- On Tue, 9/9/08, Ylva Degerfeldt wrote:
> I'm just wondering how to make my error messages (specifically the
> ones that Struts 2 generates) red, because currently they're not.
Are you using the tag tat includes the default Struts CSS?
Dave
-
Hello, Struts users!
I'm just wondering how to make my error messages (specifically the
ones that Struts 2 generates) red, because currently they're not.
Isn't there some default css file I can use or do I have to create one?
And how do I use it in my jsp:s? (I know nothing about css.)
I apprecia
Greg Lindholm wrote:
Your statement caused me to panic as my code was not prepared to
return multiple independent streams and I'm not setting Content Length.
I swear I didn't make this up, as I clearly recall fighting these bugs
myself...but you're right, as I cannot currently put my finger on
I've started using struts 2.1.2 as I was having some issues after
enabling client side javascript validation on forms (some page requests
hang, and clicking back takes you to the page you're supposed to be on).
I decided to use client side validation to avoid the problems of
populating form
Can anyone verify that they are successfully using the open source
SecurityFilter project with Struts 1.3.8?
Thanks!
--
View this message in context:
http://www.nabble.com/SecurityFilter-and-Struts-1.3.8-tp19397254p19397254.html
Sent from the Struts - User mailing list archive at Nabble.com.
Here's the stack trace for the problem in my previous mail:
15:50:29,006 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.struts2.components.Form.populateComponentHtmlId(Form.java:232)
at org.apache.struts2.components.UIBean.evalu
Hi everyone,
I have this wierd issue with tiles. Probably its a bug.
My environment is: Windows XP Professional, MyEclipse 6.0.1, Struts 2.0.6,
Tiles 2.0.6, J2EE 1.4, JDK 5.0, JBoss 4.2.2
I am trying to insert a tile (a jsp page) into another tile (a jsp page) and so
this is my config (simplifi
That's normally handled more appropriately in an Action, but if you must do
it in an interceptor, you may have to go with Nuwan's idea of using
request.sendRedirect from the Interceptor and returning null without calling
invoke()
(*Chris*)
On Tue, Sep 9, 2008 at 9:22 AM, Ahmed ALAMI <[EMAIL PROT
Great, but it doesn't feet my need.
The result to forward to is dynamic and depends on the execution of the
interceptor.
Chris Pratt a écrit :
Sure, normally you would set up some in your struts.xml
that your interceptor will redirect to then just return the name of the
result from your inter
you can use response.sendRedirect() method inside an interceptor.
Ahmed ALAMI wrote:
Hello everybody,
Is there a way using the struts 2 API to forward or redirect to a url
inside an interceptor instead of making a actionInvocation.invoke().
Thanks for reply.
-
Sure, normally you would set up some in your struts.xml
that your interceptor will redirect to then just return the name of the
result from your interceptor without ever calling actionInvocation.invoke().
(*Chris*)
On Tue, Sep 9, 2008 at 9:05 AM, Ahmed ALAMI <[EMAIL PROTECTED]> wrote:
> Hello
I would suggest you go straight towards Struts 2, it's simpler, you're
shielded from the dirty stuffs involved with the request and response
objects. It also has spring integration and so make it easier for you
to integrate the model layer for your web app.
On Mon, Sep 8, 2008 at 7:25 AM, gbattin
Hello everybody,
Is there a way using the struts 2 API to forward or redirect to a url
inside an interceptor instead of making a actionInvocation.invoke().
Thanks for reply.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
DNewfield wrote:
>
> If you do not specify the content length in the stream result, your
> stream will be requested twice (each request is required to provide an
> independent stream -- a frequent source of bugs for people that don't
> realize it), one of which will be read through it's entir
the referencing jsp page is including the jquery javascript file
../../src/javascript/jquery.js
did you deploy all of your javascript libraries ..such as jquery.js to the
struts webapp so the jsp can locate the js?
Martin
__
Disclaimer and confiden
Have you tried this ?
- Pascal
Mark wrote:
Hi all:
I'm using Struts 2 validation and I'm getting a NullPointerException
when the page is being displayed (before it is even being submitted or
validated).
--- On Tue, 9/9/08, Francisco Exposito wrote:
> Yes, it uses jquery. If I don't use struts2 ajax, it
> works properly. But when I use it, I receive the error
> jquery is not defined.
>
> This code works properly:
> [...]src="../../src/javascript/jquery.js"
> type="te
Bobby Mitch wrote:
Any other suggestion, anyone ?
Thanks for helping.
Did you try my suggestion of changing the doctype to point to a local
file? Or a local catalog?
Or perhaps even removing the doctype?
It appears to be failing to parse the XML and the only URI present is in
the doctype
Yes, it uses jquery. If I don't use struts2 ajax, it works properly. But when I
use it, I receive the error jquery is not defined.
This code works properly:
<%@ page import="ads.web.action.UsuarioAction"%>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
<%
Object result = se
--- On Tue, 9/9/08, Francisco Exposito wrote:
> But when I reload this page, I receive the error
> "jQuery is not defined" and the error seems to be
> in the line of displayTagAjax.js:
>
> jQuery(function($) {
> changeLinks();
> });
It looks like the Ajax version of displaytag uses jQuery.
I am trying to show a table with some data using displaytag. I have a main page
which contains the div which will contain the table with the data. Therefore I
have in the main page .
Then in the results page I have the display:table which shows the data.
But when I click over a column to sor
Hello Everyone,
Here I got a question regarding to the tag.
Here is the scenario. I would like to display a complex hierarchy of
objects by using struts2 tags. Basically, I got 5 tables in the DB. All
linked with each other by Foreign Keys. So the models generated from the
tables are all linked
Any other suggestion, anyone ?
Thanks for helping.
--- On Tue, 9/9/08, Don Brown <[EMAIL PROTECTED]> wrote:
From: Don Brown <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is
not "file")
To: "Struts Users Mailing List" , [EMAIL PROTECTED]
Date: Tues
Sorry, I was thinking of another JBoss issue with the tld file, not
the validators file.
Don
On Tue, Sep 9, 2008 at 3:31 PM, Bobby Mitch <[EMAIL PROTECTED]> wrote:
> hi,
> where do you suggest that i modify the order of the elements ?
> I checked the library struts2-core-2.1.2.jar, there is a str
50 matches
Mail list logo