well, I am using it in a simple JSP :
s:form action=filterPersonne_list method=post validate=false
s:textfield key=personne.nom name=nom /
s:textfield key=personne.age name=age theme=xhtml /
s:submit key=button.search /
/s:form
If I put the key/value in
I have used the piece of code and it works. I can acces the
HttpServletRequest object.
But the the request.isRequestedSessionIdValid() always returns me false.
I'm sure that the session is valid since I've put a flag object in it (the
session) to initialize te session in the first Action
Hello all,
I want to make an ajax request (with a target) in a javascript function.
In fact, I want to do what this does :
:a href=url theme=ajax targets=target1Make request/s:a
but in a fonction javascript.
Somone know how to do that with struts 2.0.9 ?
Julien
This e-mail, any
I was wrong on my test.
It works.
Meissa
[EMAIL PROTECTED]
09/10/2007 09:41
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Struts Users Mailing List user@struts.apache.org
cc
Objet
Re: session expired
I have used the piece of code and it works. I can acces
Once you obtain the Http* objects from Action, life should be the same as it
always was!
Scott
On 10/9/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have used the piece of code and it works. I can acces the
HttpServletRequest object.
But the the request.isRequestedSessionIdValid()
--- Julien Leonard wrote:
I want to make an ajax request (with a target) in a
javascript function. In fact, I want to do what this
does: :a href=url theme=ajax
targets=target1Make request/s:a
but in a fonction javascript.
Somone know how to do that with struts 2.0.9 ?
If you look at
Hi!
Haven't tried that yet, as I haven't used Spring in my project (or life, for
that matter :p).
I'll try to use it and post the results.
In the meanwhile, an update to the problem:
The problem was in the package I used for the actionPackage. Investigating
it further, I stripped the package
Hi all,
I have a strange problem using JasperReports, actually I´m using JDeveloper
10g and JasperReport 1.2.8.
The problem start to appears without a reason, at least I don´t see a reason
for it.
I use this for load my jasperReport from my application:
//Parameters:
In fact, I've already looked the generated source.
And s:a generate this : a dojoType=struts:BindAnchor href=url
targets=theTargetshowError=true.../a
I can't see how to use it to make a request in Javascript.
Julien
-Message d'origine-
De : Dave Newton [mailto:[EMAIL PROTECTED]
Hi, Group.
I see some strange behavior in handling global exceptions in RAD 7.0.
I load my InitSrvlet through WEB.xml to perform an app initialization
from property files. Once this servlet is loaded, it effects struts
global exception handling. Defined global exceptions are not caught by
struts.
hi all,
Since I have a use-case where I can't use the JFreeChart plugin then
ended up handling the writing and reading of the generated chart image
files myself.
So my action implements ServletContextAware and using the function
getRealPath(/) I can generate the png files with unique names
i have a class like this
public class TDorgrnize{
private long orgID
private orgnizMini org
//getter and setters
}
public class orgnizMini{
long id
Sting name
//getter setter
}
in a action class i m getting this TDOrgrnize to generic list like this
private ListTDorgrnize() torg;
so i want to
Do NOT use getRealPath(/)!!! If you read the API for this method it
says this functionality is optional and does not have to be supported,
particularly if the application is deployed as a WAR. It just so
happens to work in Tomcat but in most real EE servers this method does
not return anything.
hi,
the following in a JSP does not generate anything ... any advice on the
way to do it using S2? Well I could just export it as an additional
Action property but it is not very elegant.
% System.getProperty(java.io.tmpdir); %
TIA,
regards,
Giovanni
I am trying to get a better understanding of S2 themes. I read the
document and the create themes page in the cookbook.
My question is how I can find the right template file for a tag. I
tried to change text.ftl and found that ties to s:textfield. I am now
trying to figure out what is the
Do you mean this?
%=System.getProperty(java.io.tmpdir)%
-Original Message-
From: Giovanni Azua [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 12:51 PM
To: Struts Users Mailing List
Subject: OT: accessing System.getProperty from JSP
hi,
the following in a JSP does not
Hi
How to handle some Exceptions occured in Model class.how that
exceptions will be return to the conroller..
--
Bhaskar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry, my fault. I did not notice the code I used to test checkbox
defined the theme inside the tag. So checkbox.ftl is the template for
s:checkbox. I would still like to find out if there is a general rule
for map the tag to template and other resource to learn about theme.
-Original
Hi all.
Trying to do this:
@RequiredStringValidator(message = Hello, key = Hello.key)
public String getQuestion1Option()
{
return question1Option;
}
But receiving this error on submission of the action:
[09 Oct 2007 17:54:46] ERROR
--- Giovanni Azua [EMAIL PROTECTED] wrote:
the following in a JSP does not generate anything
... any advice on the
way to do it using S2? Well I could just export it
as an additional
Action property but it is not very elegant.
% System.getProperty(java.io.tmpdir); %
%=
Any reason you can't generate the charts on the fly using the stream
result or a dedicated servlet?
Nils-H
On 10/9/07, Giovanni Azua [EMAIL PROTECTED] wrote:
hi all,
Since I have a use-case where I can't use the JFreeChart plugin then
ended up handling the writing and reading of the
I am newbie in struts 2.
How do you do that resources are loaded from the directory rather than the
jar? I mean, in which configuration file the directory of dojo and template
is written?
thanks a lot
regards
Hi,
your best bet is to look at S2's source code. You can start by looking
at org.apache.struts2.views.freemarker.tags.StrutsModels.
Each of the tags have an associated Model, and S2 taglib's models are
registered in this class.
So, for instance, if you look for TextField's template name :
1]
i have a class like this
public class TDorgrnize{
private long orgID
private orgnizMini org
//getter and setters
}
public class orgnizMini{
long id
Sting name
//getter setter
}
in a action class i m getting this TDOrgrnize to generic list like this
private ListTDorgrnize() torg;
so i want to
Thank you, Sami. That helps a lot.
Jane
-Original Message-
From: Sami Dalouche [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 1:55 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 Themes
Hi,
your best bet is to look at S2's source code. You can start by looking
at
I've tried adding a package.properties with the same key but nothing
seems to help - I still seem to get the same exception.
Anyone?
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 18:08
To: Struts Users Mailing List
Subject: Validation problem - key
Further to my message below,
com.opensymphony.xwork2.util.LocalizedTextUtil.createMissesKey() method
hasn't been implemented until 2.0.8.
Can anyone confirm that they have localized validation working, as
below, with 2.0.9?
Thanks,
Dean.
-Original Message-
From: Dean Pullen
I can confirm that it works. Do you have the struts-messages.properties
defined as an additional properties file in struts.xml? This is not a
standard property file name that is picked up by default.
/Ian
Dean Pullen wrote:
Further to my message below,
Hi everyone. I’m new to the list. :)
I’m working on a new Struts 2 application (my first). I have quite a bit of
experience with Struts 1.x.
I have a need to administer a set of rules, which are essentially name/value
pairs. The number of rules is dynamic. I have a POJO class called Rule
Anybody?
2007/10/9, Daniel Chacón Sánchez [EMAIL PROTECTED]:
Hi all,
I have a strange problem using JasperReports, actually I´m using
JDeveloper 10g and JasperReport 1.2.8.
The problem start to appears without a reason, at least I don´t see a
reason for it.
I use this for load my
Thanks Ian.
This is in struts.xml:
struts.custom.i18n.resources=struts-messages
If thats what you mean?
I get other localized properties from it no problem, e.g. using s:text
name=key.here /
-Original Message-
From: Ian Roughley [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 19:48
Everything ends up inside a jar, in this case struts-dojo-plugin.jar.
It is at compile time, and before packing the jar that the javascript
files should be generated.
musachy
On 10/9/07, Juan Carlos Serrano [EMAIL PROTECTED] wrote:
I am newbie in struts 2.
How do you do that resources are
Yep thanks missed the assignment :)
-Original Message-
From: Xibin Liu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 6:59 PM
To: Struts Users Mailing List
Subject: RE: accessing System.getProperty from JSP
Do you mean this?
%=System.getProperty(java.io.tmpdir)%
hi,
My action outputs 3 lists (using 3 displaytag tables) of statistics plus 3
charts that must be all displayed together. You can not do this using a
stream result, it would be the case if outputing only one chart with no
lists.
regards,
Giovanni
Any reason you can't generate the charts on
Even adding a package.properties or even a className.properties (where
className is my Action class name) doesn't resolve the problem.
This is a huge sticking point for me, I sincerely hope someone can help.
Dean.
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 09
Now I know that it works with package.properties. Have you tried using
a key without a period?
/Ian
Dean Pullen wrote:
Even adding a package.properties or even a className.properties (where
className is my Action class name) doesn't resolve the problem.
This is a huge sticking point for me,
I'm sure you've already checked, but a double-check might be helpful:
what is the actual entry in package.properties? For example, do you have
a typo in your key there? Did you name that hello.key instead of
Hello.key?
You know, the usual things that are obvious once you actually see
them...
Martin,
This is NOT a problem with 2.0.9.
However, now my optionTransfer selects no longer work with 2.0.9 and
datetimepicker (time) does not get set into the control when a page
refreshes. (So I save a new record and add a time. It does not get
displayed on the page when the page
Makes no difference Ian :-/
-Original Message-
From: Ian Roughley [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 21:00
To: Struts Users Mailing List
Subject: Re: Bug in 2.0.9 regarding validation localization?
Now I know that it works with package.properties. Have you tried using
a
I appreciate you trying to get to the root of it, but no, there's no
typo.
-Original Message-
From: Christopher Loschen [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 21:05
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding validation localization?
I'm sure you've
Just to refresh, we now have:
@RequiredStringValidator(message = hello, key = hello)
public String getQuestion1Option()
{
return question1Option;
}
In class: SalesSurveyAction, in package: com.msp.web.csi.surveys.sales
I have a SalesSurveyAction.properties and a package.properties,
Sorry to hijack this thread, because I fully agree with Wes that this is
good stuff to put into a wiki.
It's a little trickier with the apache wiki because you need to sign and
send over the CLA ( not terribly hard, but sometimes may not be possible. )
Any thought given to using a secondary
what is the values of struts.locale, and does the SalesSurveyAction
extend ActionSupport or does your action implement the TextProvider and
LocaleProvider interfaces?
Also, do you have struts.i18n.reload=true, or are you restarting the app
server after each modification?
/Ian
Dean Pullen
Currently struts.locale=en although I previously had it as en_GB prior
to trying to debug this problem.
SalesSurveyAction extends several Actions which ultimately extend
ActionSupport.
struts.i18n.reload=true isn't set, but I am restarting the apps server
fully each time.
-Original
God, I must of tried everything possible by now.
Has anyone got anytime to package me a working test case, to see if
there's something odd with my application server?
Or does anyone have any other ideas. The exception is quite explicit,
I'd file a bug, but there doesn't seem to be any recent
--- cilquirm [EMAIL PROTECTED] wrote:
Any thought given to using a secondary wiki ( like
Wetpaint or one of the other myriad of services that
come up when you type in wiki into the mashable
search box ) to ease the burden?
Please don't start fragmenting community
documentation.
If a CLA
--- Dean Pullen [EMAIL PROTECTED] wrote:
Or does anyone have any other ideas. The exception
is quite explicit, I'd file a bug, but there doesn't
seem
to be any recent activity on the Struts 2 JIRA.
There is JIRA activity almost daily.
I'll run a simple sanity-check test case and report
back.
I hadn't really started fragmenting anything yet. I was engaging in
conversation.
I'm not sure if you checked recently but the apache wiki is slow to get
updated. I don't disagree that having a centralized place for it is
definitely the best route, but there's tons of information out there
--- cilquirm [EMAIL PROTECTED] wrote:
I hadn't really started fragmenting anything yet.
I was engaging in conversation.
As was I.
My whole point was to get around the barrier of
entry of engaging people to add and modify stuff.
Getting someone else to maybe do it doesn't seem
like a form
Musachy, I think Juan means in 2.0.9 he want the static resources to be
served from a directory instead of struts2-core-2.0.9.jar as per the
optimization recommended at
http://struts.apache.org/2.x/docs/performance-tuning.html
Juan, first, if you're new to struts 2 you don't need to be
Oh, that makes more sense :), in 2.1 there will also be a property to
specify the base url to load dojo, so you could use a different dojo
distribution (served from any url that you like), check the head tag
for details on the ajax tags.
regards
musachy
On 10/9/07, Jeromy Evans [EMAIL PROTECTED]
To add to that, there are really two wiki's - official docs (WW) and
the informal docs (S2WIKI), and only the former requires a CLA.
Anyone can access and edit the S2WIKI.
The fact that the main docs require an CLA is a business decision, and
not a limitation of the wiki software. As Dave
Good news/bad news:
A simple sanity-check Action class directly extending
ActionSupport is working for me under 2.0.9 using
properties from either ${action-class}.properties or
package.properties, regardless of which of those files
(or both) are present.
I am not setting struts.locale in my
Hello,
Validation failures look for a result named input.
If I have a result definition of:
result name={1}foo_{1}.jsp/result
then there is no result named input... and there's
the rub.
Am I missing something foolish that would allow this
to work without explicitly defining a result named
--- Dave Newton [EMAIL PROTECTED] wrote:
I am not setting struts.locale in my struts.xml
(although I *do* get the following WARN which I'll
have to look at :/
WARN
org.apache.struts2.config.Settings.getLocale:143
- Settings: Could not parse struts.locale setting,
substituting default VM
Hey Dave,
I am not sure if I understand what you are looking for? Do you mean
that you don't have a foo_input.jsp? I am not sure if it will help,
but the DefaultWorkflowInterceptor is a bit configurable. You can
change the string returned by failed validation by configuring the
interceptor...
--- Wes Wannemacher [EMAIL PROTECTED] wrote:
Do you mean that you don't have a foo_input.jsp?
No, I mean that since I have no named input result
that it pukes and won't take me to foo_input.jsp -- I
assume it's looking for explicitly configured results?
It's not that it doesn't make sense, it's
I have created a checkboxes by the following code.
layout:checkboxes key=flightallocation.location1 property=location
styleClass=LABEL
layout:options collection=locationsList property=data1
labelProperty=data2/
/layout:checkboxes
here locationsList is the collection of locations from
This was my original suggestion to post it into the community wiki
because any changes that would be made to the main wiki may not
propagate until the next release of struts (2.1.x?) which this may no
longer be an issue. I figured it could be posted there and if the
powers that be know a special
Hi i m doing one application where i have written some model classes
where it may throw Exceptions...that exceptios has to be caught and
send back to controller...other wise that exeptions how can be
displayed to user on UI.
--
Bhaskar
this is my part of jsp:
logic:iterate id=loop indexId=idx name=data
html:select name=loop property=sts_1 onchange=checkStsCombo(this,
'hasil_1', '%=idx%');
...
/html:select
...
/logic:iterate
...
I get the html result:
...
select name=sts_1 onchange=checkStsCombo(this,
Hi all,
I have a requirement where I have to make the textfield coming along
with datetimepicker should be readonly.But there is no attribute to do so
in the tag for datetimepicker
is there any solution for that.
regards
Vamsi Krishna.
where are getting the values for select either from bean or request
attribute.
On 10/10/07, Benz [EMAIL PROTECTED] wrote:
this is my part of jsp:
logic:iterate id=loop indexId=idx name=data
html:select name=loop property=sts_1 onchange=checkStsCombo(this,
'hasil_1',
63 matches
Mail list logo