Hi folks,
Unfortunately I have not got any reactions about my statement yet?
I really would like to hear some views on this matter.
Kind Regards
Urso Wieske
-Oorspronkelijk bericht-
Van: Urso Wieske
Verzonden: donderdag 7 december 2006 14:11
Aan: 'Struts Users Mailing List'
Hi Dariusz,
Thanks for the input. After some coding and reading in the Struts 2.0.2
sourcecode I got this to work.
In general it seems that Struts2 uses two methods from the request to examine
URI (in this order):
- request.getServletPath()
- request.getRequestURI()
The real trick is, as you
Hi all,
I have two servers, each running the sun appliction server (9.0). I've build
a webapplication, and know I want to forward requests from the first to the
second application server.
In my LoginAction on the first server I put this in the code:
return new ActionForward(http://; +
Hi me again, im still having problems with population of values in
collections (in struts2)
class MyAction implements ModelDriven{
Customer customer = null
public Object getModel(){
return new Customer();
}
}
And a form with some text boxes
s:textbox
What release of Struts2 are you using and which browsers?
/Ian
walidito wrote:
thanks, but I get an error with the code you gave me :
SEVERE: Error setting expr 'dojo.transport' with value
'[Ljava.lang.String;@179567c'
ognl.OgnlException: target is null for setProperty(null, transport,
I did'nt see your code in your posting but if you're looking for an example for
using Indexed Properties please reference
http://struts.apache.org/1.x/struts-taglib/indexedprops.html
M-
---
This e-mail message (including
Hi.
I wanted to use option transfer select, but finally, I don't understand
when it can be used because it need 2 lists : one with elements on the
left and one with elements on the right.
But all the example I found, or things I have to do are not selected
elements on the left and selected
Hi,
I have created a Struts action which accepts a file from client, I
used org.apache.struts.upload.FormFile as a member inside the
actionform that is associated with that Action.
Before saving that file uploaded by client, I first look for a token
string in the request's query part. That token
Hi,
I've only recently started putting my forms on request scope, and encountered
this issue with DynaValidatorForm.
A request scoped out of the box DynaValidatorForm is also unable to handle
indexed properties e.g. throws IndexOutOfBoundsException in
DynaActionForm.get(string, int) - I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
A request scoped out of the box DynaValidatorForm is also unable to
handle indexed properties e.g. throws IndexOutOfBoundsException in
DynaActionForm.get(string, int)
I've never used get(String, int), but I use
You are seeing that error in your server logs right? There's a couple of
things that we still need to fix for this integration between Struts and
Dojo, but the application should work anyway.
musachy
walidito wrote:
thanks, but I get an error with the code you gave me :
SEVERE: Error setting
Hi,
I'm using Struts 2.0.1 and IE 6.0.2800
Ian Roughley wrote:
What release of Struts2 are you using and which browsers?
/Ian
walidito wrote:
thanks, but I get an error with the code you gave me :
SEVERE: Error setting expr 'dojo.transport' with value
You would have to control this on the client end, perhaps using
javascript to break the transaction into two HTTP requests.
-Original Message-
From: Rahul Joshi [mailto:[EMAIL PROTECTED]
Sent: Friday, December 08, 2006 8:50 AM
To: user@struts.apache.org
Subject: Query regarding file
Hi,
Actually, I get this error both in my eclipse console and in my web page
(debug enabled).
First of all here is the jsp code that I use:
s:div
id=reportDivId
cssStyle=border: 2px solid red;
href=/AjaxTestAction.do
That needs to be fixed in struts, this is the jira ticket:
https://issues.apache.org/struts/browse/WW-1551
from showcase:
s:div
id=once
theme=ajax
cssStyle=border: 1px solid yellow;
href=%{ajaxTest}
Initial Content/s:div
That should load the div only once.
Chris,
In my DynForm I'm actually using a java.util.ArrayList (contains my bean
objects).
the http request contains properties:
checkList[0].resultId=34checkList[1].resultId=45 etc
I havn't debugged using a String[] but the BeanUtilsBean.populate method works
differently with properties.
Sorry but it didn't...
It loads it many times
Musachy Barroso-2 wrote:
That needs to be fixed in struts, this is the jira ticket:
https://issues.apache.org/struts/browse/WW-1551
from showcase:
s:div
id=once
theme=ajax
cssStyle=border: 1px solid yellow;
I should have mentioned the get(String, int) is called to get the business
object (bean) from the array, so it can then set the property. Since the array
is empty it fails with any index. The only solution I can see is to override
this method or use LazyValidatorForm (LazyDynaBean).
Is
Are you sure you are not adding anything else to it and you are looking
at the right one? I just check it out on showcase and it only loads
once. Can you see if you have the same problem on showcase?
regards
musachy
walidito wrote:
Sorry but it didn't...
It loads it many times
Musachy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
Chris, In my DynForm I'm actually using a java.util.ArrayList
(contains my bean objects).
So, you have type=java.util.ArrayList in your form bean definition?
Are you sure that Struts knows how to handle that? It might
I don't hink I'm adding anything.
Here is my code :
the action :
public String execute() throws Exception
{
return SUCCESS;
}
the struts.xml:
action name=AjaxTestAction
class=dashboard.actions.AjaxTestAction
What is happening is that there is an error on the request, probably the
action mapping is wrong, and it is returning a page with the error, but
that page has the same menu as showcase, that's why your are seeing it
twice. Put the full url for the action on the address bar, after you get
that
Chris,
So, you have type=java.util.ArrayList in your form bean definition?
Yes
Are you sure that Struts knows how to handle that?
Yes, it creates a new (empty) arraylist
Have you tried calling yourFormBean.get(yourArrayList) and checking to
see what it inside of it?
not sure what you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Strachan, Paul wrote:
Have you tried calling yourFormBean.get(yourArrayList) and
checking to see what it inside of it?
not sure what you mean - the action method is never called as the
RequestProcessor cant populate the DynaForm from http
Assuming that i5 is set up to map to tomcat/webapps/i5 folder in tomcat,
if my URL is http://localhost:8080/i5/home.do and all home.do does is
forward the request to a tiles definition, can somebody enlighten me on
what path each of these tiles' put tags are trying to reference?
put name=title
Hi Chris,
How will this help? I thought you said that your action code wasn't
being executed. If that's the case, then it will still bomb before you
get a chance to call get(String,int).
this method is (eventually) called as part of the processPopulate (its what
fails)...but unfortunately it
Thank u,
it works great :-)
I have :
arg key=invalid.passwordCheck/
May I ask u, dear Christopher, what's the difference of it with what u have
done :
msg name=validwhen
key=error.unmatched.password.confirm /
arg position=0 bundle=xxx key=yyy /
Ok thank you very much that works !
My mistake was in the mapping, where I redirected to the same jsp as the one
where I've putted the div tag.
Actually, I had to write a simple jsp in ordrer that it works.
Otherwise,
I'm always having the error message on my console :
SEVERE: Error setting
Am having a few issues with Struts2 related to URLs, was hoping someone could
comment if these are bugs or expected behavior. They are:
1. I'd like to use the action attribute of the url tag to generate urls. I
have a few different packages/namespaces set up and what I want to do is
simply
Hi all,
I want to display a message of type required if password is not entered,
if it is entered and less than 6 chars, display *another* message of type
minlength
I have this for now on, but not completed :
field property=password depends=required, minlength
arg
Hi, I'm using a small ajax div-tag to load data from an action. I make
refreshments every x seconds.
It works,
But I get this exception in my console :
SEVERE: Error setting expr 'dojo.transport' with value
'[Ljava.lang.String;@1256a73'
ognl.OgnlException: target is null for setProperty(null,
Ok,
I used this
field property=password depends=required, minlength
arg name=required key=required.password/
arg name=minlength key=invalid.password.length/
var
var-nameminlength/var-name
Hi,
I see that I can validate a Date with the Validator framework,
but don't know how to apply it in my case.
my bean has separate variables for day - month - year
(it is not one string)
I have three fields because he had to choose the date with a select html tag
for the day, a select html tag
I've noticed that there's an EL-like syntax used within some tags in
the sample jsp's that ship with the Struts 2 apps. Namely:
s:a href=%{url}
How does the percent sign work in the line above? When I use ${url}
it works just as well.
Am I just behind on Expression Language specs? or is
The '%' tells Struts to parse it with OGNL. OGNL is a very powerful
expression language used by the core of Struts 2. It supports
advanced features like method calls, projection, and data conversion.
You can find more information about ognl here:
http://www.opensymphony.com/ognl/
Don
On
As a published requirement, Struts 2 requires Servlet 2.4. However,
I'd bet you could run a Struts 2 app on Servlet 2.3, if you were
careful and did plenty of testing. You might run into a few problems
in some of the JSP tags or perhaps interceptors, but as a whole,
Struts 2 tries to stay away
I make a custom validator myDate
I try to give as var value the day and the month,
but when I try to get the values of the vars day and month,
I get the String literals birthDay and birthMonth
field property=birthDay/field
field property=birthMonth/field
field
I get the String literals and not the real numbers
Ok everything is fixed, I forgot to do :
ValidatorUtils.getValueAsString
Excellent! Thanks Don!
E.
On Dec 8, 2006, at 5:56 PM, Don Brown wrote:
The '%' tells Struts to parse it with OGNL. OGNL is a very powerful
expression language used by the core of Struts 2. It supports
advanced features like method calls, projection, and data conversion.
You can find more
40 matches
Mail list logo