you need to have an instantiated array of wrapper[] that is big enough
to take what your HTML submits. If your action form is in the request,
then wrappers[] will be null unless you instantiate it.
martin on 23/04/06 16:59, wrote:
I've a problem with indexed properties inside an iteration.
Hi All,
I have been searching for hours and still cannot find
any useful info. Hope you can help.
I am building a Struts app. (Struts 1.2.4 + Tomcat 5.5
+ Apache 2.0.55 + Spring 1.2.6) and want to use
session without
enabling cookies. I use html:link to create links so
;jsessionid is appended to
just upgraded from 1.2.8 to 1.2.9. I did not add
set-property property=cancellable value=true/
in struts-config.xml and still use html:cancel as per normal in jsp files.
Tested, do not see exception and no validation is called.
any reason why ? default setting ?
btw, my action is
I think some where(may be in the action class association with the action
/test.do) you are creating new session each time for each request. Most
possible mistake could be using
Request.getSession(true);
See below documentation from Servlet Specifications
Hi Friends,
I have a dropdown list in my jsp created in the action. When I submit my
jsp, Is there is any way to submit my arraylist as well?
Total workflow follows :
creating an arraylist of values to be displayed in the jsp in Action class.
When I submit the jsp the arrayList should
Hi Chandra,
Thanks for your prompt reply.
I have checked many many times and I have 100% sure
there is no
Request.getSession(true);
in all my action classes.
Thanks.
Michael
--- [EMAIL PROTECTED] :
I think some where(may be in the action class
association with the action /test.do) you
hi guys i hav created a java file by using MockObjectStrutsTestCases which
tests for a simple login form which takes Login Name password as a
input.in this file i hav following method
public void testSuccessfulLogin() {
setConfigFile(/WEB-INF/struts-config.xml);
Hi Pal,
You can save arraylist object in your session object container (if you have,
normally is a java bean), then you can pass through the arraylist object in
an active session.
Let's say you have a form called Form1 which is a action form,
inside the form, you can add an arraylist, so when
hi guys i hav created a java file by using MockObjectStrutsTestCases which
tests for a simple login form which takes Login Name password as a
input.in this file i hav following method
public void testSuccessfulLogin() {
setConfigFile(/WEB-INF/struts-config.xml);
Hi Chandra,
As far as I know, the attribute cookies of the
Context node in Tomcat server.xml is the only place
I need to set. From the doc,
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
cookies:
Set to true if you want cookies to be used for session
identifier communication if
On 4/24/06, Chan Michael [EMAIL PROTECTED] wrote:
Hi Chandra,
Thanks for your prompt reply.
I have checked many many times and I have 100% sure
there is no
Request.getSession(true);
Request.getSession(true);
and
Request.getSession();
are 100% identical.
regards
Leon
in all my action
A web application that is packed as a war file and deployed to Tomcat or
JBoss can work properly without having web.xml. Since you are using struts
and jsp. You need tell the server what is the servlet parser as well as
someother info. So make sure there is a VALID web.xml in your application
What are the possiable ways to Validate the data in
Actionform/DynaValidatorForm.
In below example.
txtCompany is the property in javabean(cBean).
In a collection(arlCollectionBeans) each row is a javabean(cBean).
Data is displayed by Nested Tags as below.
Example:
I want to validate for
You should be able to solve the problem by adding the WEB-INF directory
onto your classpath. I couldn't get it to work otherwise
Chaitanya Parkhi wrote:
hi guys i hav created a java file by using MockObjectStrutsTestCases which
tests for a simple login form which takes Login Name password as
are you sure that u did not start a new browser process each time.?
because sessions are browser process based.
starting a new process and opening a new window within a browser window are
different things.
http://asahin.net
-Original Message-
From: Chan Michael [mailto:[EMAIL PROTECTED]
Hi,
The test is done within the same tab in firefox.
Thanks.
Michael
--- abdurrahman sahin
[EMAIL PROTECTED] 說:
are you sure that u did not start a new browser
process each time.?
because sessions are browser process based.
starting a new process and opening a new window
within a browser
Hi everyone,
this question is not entirely a question about struts but just about a part
of it, which I would like to extract
from the rest of the framework. It's like this:
I have my own framework for creating dynamic SVGs and in one Class I
have tooltip-messages hardcoded in German. I don't
Hi,
I'm using Shale/Clay to create an application. I'd like to protect the
app with acegi's URL protection but I don't see a way to integrate with
the response rendering.
Here's an example: (all pages are rendered via Clay full html). I have
the structure
/welcome.html
/logon.html
Using message ressources is not struts specific. What struts does beside
using message ressources is maintaining the user language in user http
session and use it when it need a message ressouce use. If all you need
to do is have multi language support for your messages, i suggest you
take a look
Hi
Have you tried to define a navigation rule, and add redirect/ to that rule ?
Hermod
-Original Message-
From: Ian.Priest [mailto:[EMAIL PROTECTED]
Sent: Monday, April 24, 2006 1:28 PM
To: Struts Users Mailing List
Subject: Acegi with shale and clay
Hi,
I'm using Shale/Clay to
hi,
thank you very much your answer has been very helpful :)
ciao 4 now
Julian
--- Ursprüngliche Nachricht ---
Von: David Delbecq [EMAIL PROTECTED]
An: Struts Users Mailing List user@struts.apache.org
Betreff: Re: Extracting MessageResources from Struts
Datum: Mon, 24 Apr 2006 13:37:45
U need to set the contect path of ur application:
setContextDirectory(new File(Your_Application_ContextPath));
-Original Message-
From: Phil Zoio [mailto:[EMAIL PROTECTED]
Sent: Monday, April 24, 2006 3:39 PM
To: Struts Users Mailing List
Subject: Re: StrutsTestCases
You should be able
Hi Dilip,
You can define the bean in tiles def to use it across the pages.
The put tag is used to associate a value to an attribute. It allows
specifying the attribute name and its value. The attribute value will be
retrieved by its name.
The value can be specified in several ways:
as a bean
The main problem with that solution is that I'd rather not have to use
redirect everywhere as it will affect performance.
Secondly, how would I configure the navigation rule?
My current view is /welcome.html so that's easy
navigation-rule
from-view-id/welcome.html/from-view-id
My
Hello,
I have this error using Lookupdispatchaction
javax.servlet.ServletException: Action[/creationuser] missing resource
'valider' in key method map
My jsp have two buttons :
html:submit property=monaction bean:message key=button.valider /
/html:submit html:submit property=monaction
Hi
A navigation case looks like this
navigation-case
from-outcomewhatever/from-outcome * maps
all
to-view-idwhatever/to-view-id
redirect /
/navigation-case
As far as I know, the
On 4/23/06, 王曾wang_zeng [EMAIL PROTECTED] wrote:
Thank you, Craig.
If we preserve the tree on the server, then the tree sholud be saved
in
session scope. If we don't save the tree on server, then everytime a
request arrives, the tree should be reconstructed using the value of
any help on this???
Date: Fri, 21 Apr 2006 11:00:34 -0700 (PDT)
From: [EMAIL PROTECTED]
Subject: html:multibox validation using Struts Validator framework
To: user@struts.apache.org
Hi
I am trying to do a client side validation for html: multibox tag. I need to
do client side
just check out in ur struts-config file,
if by mistake u have pressed space or tab after button.valider=valider
even I got the same error once
and this was the mistake
On 4/24/06, DOUILLARD David [EMAIL PROTECTED] wrote:
Hello,
I have this error using Lookupdispatchaction
I'm trying to use the token component on a form to ensure that a user
doesn't submit the form more than once. Whenever I try and submit the
form a second time, I get a NPE. I'm using it in Clay, if that makes
any difference. The code is simply:
form
span jsfid=token id=token /
span
From: Richard Wallace [EMAIL PROTECTED]
I'm trying to use the token component on a form to ensure that a user
doesn't submit the form more than once. Whenever I try and submit the
form a second time, I get a NPE. I'm using it in Clay, if that makes
any difference. The code is simply:
I think this one has come up in discussion before. It's really more of a JSF
issue. There is an open ticket for a new shale feature that would allow
plugging in security in a custom navigation handler.
http://issues.apache.org/struts/browse/STR-2788
Gary
-- Original message
Thanks for any help...
Here's what the html page output looks like:
Product Roles
-
SomeProduct
[] INTERNALAUTHOR[]EXTERNALAUTHOR
SomeProduct2
[] INTERNALAUTHOR[]EXTERNALAUTHOR
SomeProduct3
[] INTERNALAUTHOR[]EXTERNALAUTHOR
Backing this output is an
Hi,
I am using struts 1.1
I have two textboxes (username, password).
My requirements is
- I need to display a standard error message when both the fields are empty
or when either of the field is empty.
- I need to display a different error message when both the the fields are
filled but
Use Validate method instead Validator framework
On 4/24/06, Dinesh Mehra [EMAIL PROTECTED] wrote:
Hi,
I am using struts 1.1
I have two textboxes (username, password).
My requirements is
- I need to display a standard error message when both the fields are
empty
or when either of the
The fact that you are getting 2 messages makes sense as you are running
validation against both the fields. It does not matter if the arg key is
the same. That would just pick the same message from your properties
file twice.
You could try using the validWhen validator and accociating that
Ok, figured out the below.
I remember running into this before and I should have remembered it.
For those reading this from the archives at some late date...
it really helps if you use regular pojos as values for your Maps.
These pojos can thus have the proper getter/setters for access to the
Hello All,
I am trying to use the TwoField pluggable Validator example from the
struts's site. I replaced the deprecated method calls in
validateTwoFields(..). For some reason, when I run my application, it
doesn't validate the input fields. Instead it directly takes me to the
success page after
[EMAIL PROTECTED] wrote:
What am I doing wrong?
Don't know.
Unfortunately showing us an action mapping isn't enough to help, since
there's configuration, code, etc. involved.
Dave
-
To unsubscribe, e-mail: [EMAIL
Dave,
Here's my method that does the validation:
public static boolean validateTwoFields(Object bean, ValidatorAction va,
Field
field, ActionErrors errors,
HttpServletRequest request) {
String value =
Michael,
It would help isolate the problem if you can use firefox's LiveHttpHeaders
http://livehttpheaders.mozdev.org/ to examine Set-Cookies header from tomcat
and Cookie header to tomcat.
HTH
Hansen
-Original Message-
From: Chan Michael [mailto:[EMAIL PROTECTED]
Sent: Monday,
Thanks Ted! I will dust off my old sourceforge.net account and take this
conversation off the user group with you personally. I appreciate the
help. It's people like you that make it easy for developers to come into
the Open Dev community.
Thanks again,
John
On 4/23/06, Ted Husted [EMAIL
My understanding of the JSF lifecycle is a bit tenuous. As a result,
I'm confused about the proper use of init(), preprocess(), and
prerender(). Thus far, I've just been using init() and destroy() to
handle the creation and closing of Connections and other minor duties
because they have just
On 4/24/06, James Reynolds [EMAIL PROTECTED] wrote:
My understanding of the JSF lifecycle is a bit tenuous. As a result,
I'm confused about the proper use of init(), preprocess(), and
prerender(). Thus far, I've just been using init() and destroy() to
handle the creation and closing of
I printed your answer and hung it on my cubical wall, where it will
continue to help me in the future.
24k gold, Thank you!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Monday, April 24, 2006 4:03 PM
To: Struts Users Mailing
Does anyone know where I can find one of those image code generators
that verifies that a person is submitting a form and not a computer?
I'd rather not stop to recreate the wheel.
Thanks
-
To unsubscribe, e-mail: [EMAIL
I'm trying to get my Spanish text using the RequestUtils.message method.
I get my English just fine when using the following but when the
locale is set to Spanish in the action class then this doesn't work:
RequestUtils.message(pageContext, Globals.MESSAGES_KEY,
Globals.LOCALE_KEY, (String)
On 4/24/06, James Reynolds [EMAIL PROTECTED] wrote:
I printed your answer and hung it on my cubical wall, where it will
continue to help me in the future.
We have a more visible place for these gems. :)
* http://wiki.apache.org/struts/ShaleCoreLibrary
--
Wendy
Does anyone know where I can find one of those image code generators
that verifies that a person is submitting a form and not a computer?
Not me.
I'd rather not stop to recreate the wheel.
Sensible enough, but if you find you have to, here's one pseudoapproach
I've never tried that could work:
On 4/24/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 4/24/06, James Reynolds [EMAIL PROTECTED] wrote:
I printed your answer and hung it on my cubical wall, where it will
continue to help me in the future.
We have a more visible place for these gems. :)
*
On 4/24/06, draegoon Z [EMAIL PROTECTED] wrote:
Does anyone know where I can find one of those image code generators
that verifies that a person is submitting a form and not a computer?
I haven't used it, but JCaptcha lists Struts integration as a feature:
*
Thanks Wendy.
In a glance, it looks like something I can put to good use.
I will attempt to integrate it into my webapp.
Wendy Smoak wrote:
On 4/24/06, draegoon Z [EMAIL PROTECTED] wrote:
Does anyone know where I can find one of those image code generators
that verifies that a person
On 4/24/06, Lixin Chu [EMAIL PROTECTED] wrote:
just upgraded from 1.2.8 to 1.2.9. I did not add
set-property property=cancellable value=true/
in struts-config.xml and still use html:cancel as per normal in jsp files.
Tested, do not see exception and no validation is called.
It only gets
Thanks a lot. Your answer really eliminates some of my confusions about
JSF.
--
Wang Zeng
On 4/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello All,
I am trying to use the TwoField pluggable Validator example from the
struts's site. I replaced the deprecated method calls in
validateTwoFields(..). For some reason, when I run my application, it
doesn't validate the input
Does using Tiles still makes sense in 2006? Please correct me if I am
wrong, but if I understand correctly, main Tiles featurs are:
* Uniform LF (block layout, colors, etc)
* Tile definitions
Uniform LF
---
The layout is defined in a layout file. Follows is the layout style
pulled right
Another possible option can be found in Java Web Parts:
http://javawebparts.sourceforge.net/javadocs/javawebparts/servlet/TextRendererServlet.html
Select a suitably wacky font and you should be all set. Note the
comments in the javadoc, this does *not* have to be used as a servlet,
you can
On 4/22/06, Jonathan Revusky [EMAIL PROTECTED] wrote:
snip
Here is what I think someone would find by examining the archive.
Whenever certain pointed questions are posed, one of two things happens:
(1) The person being posed the question simply walks away from the
discussion. This has
Dear Struts community,
We have seen a rash of what most people consider noise on these lists
recently, and I can't deny that I was even part of some of it (although
I hope somewhat more constructively than some). However, underlying the
noise I feel were a few valid points worth
On 4/24/06, Frank W. Zammetti [EMAIL PROTECTED] wrote:
I look forward to feedback. Thanks for listening!
Without commenting on the merit of the proposal itself, or the reasoning
presented as its justification, it is important to note that we (the Struts
community) do not have free reign to
I am amazed you got it too. Thanks, Newton. I thought you were tight with
Ted no matter what. Nice to see you have a mind of your own.
On 4/22/06, Dave Newton [EMAIL PROTECTED] wrote:
Dakota Jack wrote:
On 4/20/06, Ted Husted [EMAIL PROTECTED] wrote:
Yes, we have. Here's a handy
Busschots, you and Newton are really the worst on this list. You never have
code or ideas, only c-r--a---p.
On 4/22/06, Bart Busschots [EMAIL PROTECTED] wrote:
Jonathan Revusky wrote:
Ted Husted wrote:
On 4/19/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
Second, all the comitters
Michael Jouravlev wrote:
So, the question I am asking: what are the real benefits of using
Tiles if I use JSP includes + XHTML/CSS for layout/styling? Can most
of Tiles features be implemented with XHTML/CSS?
I guess some of it comes to a personal preference in regard to the
dynamic content
On 4/24/06, Frank W. Zammetti [EMAIL PROTECTED] wrote:
* Rationale
One of the issues that a number of people seem to have with the way
Struts has progressed is the seeming inability (or difficulty at least)
of getting new blood involved. There seems to be a perception by many
that there is
64 matches
Mail list logo