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
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 user@struts.apache.org, [EMAIL
Hello Everyone,
Here I got a question regarding to the s:doubleselect 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
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 s:head theme=ajax.
Then in the results page I have the display:table which shows the data.
But when I click
--- 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. Are you
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 =
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
--- 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:
[...] script language='javascript'
src=../../src/javascript/jquery.js
Have you tried this ?
validators
field name=userName
field-validator type=requiredstring
message key=requiredString/
!--message key=requiredStringBoo/message--
/field-validator
/field
field name=password
field-validator type=requiredstring
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
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 entirety
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
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,
Sure, normally you would set up some global-results 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]
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.
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 global-results in your struts.xml
that your interceptor will redirect to then just return the name of the
result
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
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
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
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.
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
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
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
--- 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 s:head/ tag tat includes the default Struts CSS?
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
--- 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 s:head tag and
overwrite the styles.
Dave
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
It'd be easier to just include your own stylesheet after the s:head 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
--- 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 issue
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 dealing
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
!DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP
Francisco Exposito wrote:
Also I've tried to use displayTagAjax. In order to use it, I define in the main
page:
script src=src/javascript/displayTagAjax.js type=text/javascript/
script src=src/javascript/jquery.js type=text/javascript/
But when I reload this page, I receive the error jQuery
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 ?
validators
field name=userName
field-validator type=requiredstring
message key=requiredString/
--- 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
--- 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
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
Here's something to try, although I still can't get the NPE, which is
irritating and scary:
Your s:form's action is login, which means the DOM's form ... id will
also be login. Because the markup is arguably somewhat brittle, your div
id=login element is colliding with the form.
Try changing
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
I changed div id=login to div id=loginContainer, 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
You're extending ActionSupport, right?
I'm also wondering if there's anything else on the value stack. Are you using
an s:action... tag?
Dave
--- On Tue, 9/9/08, Mark [EMAIL PROTECTED] wrote:
From: Mark [EMAIL PROTECTED]
Subject: Re: NullPointerException with Validation Messages
To:
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 s:action... tag. Should I be?
Mark
On 10/09/2008, at 9:45 AM, Dave Newton wrote:
You're extending ActionSupport, right?
I'm also
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:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE validators PUBLIC
-//OpenSymphony
--- 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
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
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
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:
--- 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: jsp:forward
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
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: jsp:forward
page=login.jsp/. This is
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,
49 matches
Mail list logo