Ok. Let me try to explain.
In order to specify the property tag below:
I need a corresponding Field in my Form-Bean.
This form bean will be an array of Strings or ints.
So this is the field in my form Bean:
int prerequisiteCourseId[] = new int[x];
But my problem is how do I get the value o
I couldnt get your question.
If you want the array length for some purpose in your action then you
can use the length attribute of the String array, why do you want to
specify the length in your action form?
-nirav
On 9/11/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:
But how will I specify the
But how will I specify the array Length in the ActionForm.
-Original Message-
From: nirav bumia [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 12:34 PM
To: Struts Users Mailing List
Subject: Re: Handling select tags with multiple = true
It is an Array of Strings.
On 9/11/0
What is the 'third pary live server' product so we can try to help you. And
this 3rd party server maps Java/Struts over to Tomcat how?
Regards,
David
-Original Message-
From: Anuraag Shinde [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 1:13 AM
To: user@struts.apache.org
Subj
Hi all,
Getting this strange error "*URL
/login.do;jsessionid=03D17FDFCC0FDD5A42EC9BB78C0AE935 was not found on this
server*"
Details:
On local machine i am useing tomcat4.1.31 and struts 1.1
and every thing works fine
But when i try to put same files on third party live server i get this error
on
It is an Array of Strings.
On 9/11/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:
Hi All:
I have the following:
My question is what all property= "prerequisiteVO.prerequisiteCourseId" can
be.
An array of Strings, an array of ints or an array of Integers. How about a
Vector.
Hi All:
I have the following:
My question is what all property= "prerequisiteVO.prerequisiteCourseId" can
be.
An array of Strings, an array of ints or an array of Integers. How about a
Vector.
If it is an array of ints which I prefer, how will I code them in my
Formb
I would like to replace the sectoin "Existing code" with the "New Code"
But
causes an error (see below) - contents is an ArrayList
I've looked at JSTL but can't seem to solve this
Any help would be greatly appreciated
items
true
true
New Code
=
I was doing this because I have a series of pages that work sort of like a
wizard. On the first page the user enters some initial values. Depending upon
the values entered warning messages may need to be displayed on later pages in
the flow.
I didn't think it was too non-standard a practice to sto
On 9/10/06, David Grundberg <[EMAIL PROTECTED]> wrote:
Daniel Chacón Sánchez skrev:
> I understand all that, but It not have to happen, fot me its a bug,
> because
> the action don´t have to be call twice, no matter that the property of
> the
> td was wrong
>
Use instead of .
When you ask the
You didn't mention what you were trying to do was login related. You
*could* render the target (original) URL as an input parameter in the
generated markup when redirecting to the login page. Is there a reason
you can't use the standard J2EE security and login configuration? This
does exactly w
I got it working know, with no action chaining, and with redirects.
The reason why I'm not using "roles" and J2EE security is because I
haven't been able to figure out it is meant to work, and I just thought
it would be easier to do myself. Any tips on how to start with the
standard security a
He, I'm using Struts 1.2.7, and it's not there. :( Too bad for me.
However, I think my problem must have been solved in some way, because
what I'm trying to do isn't that remarkable.
Some actions require the user to be logged in. I want to direct them to
a login screen. When they successfully
I can't remember the last time I tried it but it sounds like
mapping.getPath() might be more along the lines of what you ask. Why?
Because the mapping is more likely to be updated for your second action, the
OtherAction. Since I can't remember the output of that method, you might
have to add the
1.2 does not have this behavior. You could either use a filter as I
mentioned, or to stay within the struts framework either create a common
base Action subclass, or subclass RequestProcessor or ActionMapping to
add the desired functionality. Either way would be a trivial task. I
agree with Don
What?
I'm sorry, but I'm not asking about how to assemble an URL.
I want to retrieve the original URL sent by the browser in the request.
The request.getRequestURL() is wrapped and modified with each forward,
and I want the first, by the browser, requested URL.
Since so many seem to misunder
Well, first of all, action chaing is bad ;), but second, Struts 1.3 at
least, and perhaps 1.2 automatically saves the original request uri
for you. Look in the request under the
o.a.struts.Globals.ORIGINAL_REQUEST_URI key.
Don
On 9/10/06, David Grundberg <[EMAIL PROTECTED]> wrote:
You are abso
Set it into a request attribute using a filter?
David Grundberg wrote:
You are absolutely right about that, I could modify PlaceAction to
save the URL somewhere. But you see, I'm doing a lot of forwarding to
the ListAction, and I don't want to change every Action that forwards
to ListAction. C
You are absolutely right about that, I could modify PlaceAction to save
the URL somewhere. But you see, I'm doing a lot of forwarding to the
ListAction, and I don't want to change every Action that forwards to
ListAction. Come on! There's got to be a way to find the original URL.
Adam J Samere
Try
getContextPAth + gathRequestURL...
Martin Gainty <[EMAIL PROTECTED]> wrote:
http://www.docjar.com/docs/api/org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.
On 9/9/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
I want to set the value of the spring bean defined in the spring xml file.
I have the value in the action but I want to set the spring bean's
value with it.
Given a matching property, Struts 2 can automatically inject a Spring
bean into the Act
You could call getRequestURI in PlaceAction and set the result into a
request attribute (assuming PlaceAction forwards to list.do, not a
redirect) which would then be available to ListAction. If you are
redirecting you would need to either set the value into the session, or
append it as a reque
Martin Gainty skrev:
http://www.docjar.com/docs/api/org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)
The second parameter of the Action exe
http://www.docjar.com/docs/api/org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)
The second parameter of the Action execute method is 'ActionF
Daniel Chacón Sánchez skrev:
I understand all that, but It not have to happen, fot me its a bug,
because
the action don´t have to be call twice, no matter that the property of
the
td was wrong
Use instead of .
When you ask the browser to request the background image "#ff", the
browser
Hi,
I want to do something like this:
1. User enters http://localhost/appname/welcome.do
2. PlaceAction forwards to list.do
3. In ListAction, I want to retrieve the URL the user entered
"/appname/welcome.do".
The problem: when I run getRequestURI in the ListAction, all I get is
"/appname/list
26 matches
Mail list logo