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 in
Ok everything is fixed, I forgot to do :
ValidatorUtils.getValueAsString
I get the String literals and not the real numbers
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
day
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 f
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 12/8/0
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:
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 this a
conventi
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 fo
Ok,
I used this
minlength
6
It work great.
Thank u.
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, "tra
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 :
minlength
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 supp
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 expr
Thank u,
it works great :-)
I have :
May I ask u, dear Christopher, what's the difference of it with what u have
done :
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
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?
For exa
-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 f
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
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 t
I don't hink I'm adding anything.
Here is my code :
the action :
public String execute() throws Exception
{
return SUCCESS;
}
the struts.xml:
/JSPs/Menu.jsp
and the jsp :
...
...
-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 migh
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 B
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 there
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:
>
> id="once"
> theme="ajax"
> cssStyle="border: 1px solid y
Chris,
In my DynForm I'm actually using a java.util.ArrayList (contains my bean
objects).
the http request contains properties:
checkList[0].resultId=34&checkList[1].resultId=45 etc
I havn't debugged using a String[] but the BeanUtilsBean.populate method works
differently with properties. I'
That needs to be fixed in struts, this is the jira ticket:
https://issues.apache.org/struts/browse/WW-1551
from showcase:
Initial Content
That should load the div only once.
musachy
walidito wrote:
Hi,
Actually, I get this error both in my eclipse "console" and in my web page
(debug ena
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:
@
this is the redundant error that I get on my eclipse console :
-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
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
>> '[Ljava.lang.St
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
-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 req
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 gu
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 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 el
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 att
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",
[Ljav
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
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://"; + server.
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 s
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'
Onderwerp
40 matches
Mail list logo