I think you have to add validation interceptor to your action.
Try something like that :
action name=Logon_* method={1} class=tutorial.Logon
interceptor-ref name=validationWorkflowStack /
result type=redirect-actionMenu/result
result
however I don't get the download anymore..
no idea why.
The only thing strange is
wb.write(stream);
stream.close();
I think you don't need close.
Instead, eventually, use flush() ...
What do you get when you write the stream to a file from the browser ? A
Hello to all...
I'am working on a large project for car assicuration.
My question is if it's possible to prepopulate a form for example..
On page A user must enter policy number... then in actionForm bean i get
datas from DB and depends on datas I must prepopulate a form B
Anyone have some
Thanks for the information.
But I have another problem...
In fact I think that is due to the non including of the js because of the
ajax result.
When I submit my form nothing in the optiontransfertselect is selected.
How can I solve the problem?
Julien
2007/5/28, Musachy Barroso [EMAIL
When I submit my form nothing in the optiontransfertselect is selected.
How can I solve the problem?
I work-around this bug but adding the following onsubmit attribute to
the s:form:
onsubmit=var selectObj =
document.getElementById('leftId');selectAllOptionsExceptSome(selectObj,
'key',
Hi Olivier,
I am using Struts2.0.6 and trying to implement Validator framework but
couldn't succeed. I have confution to give name of
actionname-validator.xmlfile.
I am here giving action cofiguration in Struts.xml
action name=*UserManagementAction method={1} class=
Well, I still couldn't succeed in implementing validation with Struts 2, so
I can't help you :(
2007/5/29, Vijay Prajapati [EMAIL PROTECTED]:
Hi Olivier,
I am using Struts2.0.6 and trying to implement Validator framework
but
couldn't succeed. I have confution to give name of
There is an earlier post
http://mail-archives.apache.org/mod_mbox/struts-user/200603.mbox/[EMAIL
PROTECTED]
My problem is pretty much the same as described. But there is no soluton to
it.
My application is Tomcat + Struts.
In the struts action class, I generates a WordML xml and the browser
Hi.
s:submit type=image name=submit src=/buttons/save.gif/
In my generated html path looks like this:
input type=image alt=save src=/buttons/save.gif
When i use html:submit
input type=image name=submit
src=/project_name/some/directory/here/buttons/save.gif
Is it posible to get the real path
Hi,
I am using Struts2.0.6 and trying to implement Validator framework but
couldn't succeed. I have confution to give name of
actionname-validator.xmlfile.
I am here giving action cofiguration in Struts.xml
action name=*UserManagementAction method={1} class=
Struts2 uses xwork validation. The best description of how it finds
your xml files is here:
http://www.opensymphony.com/xwork/wikidocs/Validation%20Framework.html
Pay particular attention to the alias description in the Defining
Validation Rules section because that's what's not working for
I am new to Struts2 and have a question in regards to accessing
properties from Java classes outside of the Action. If I would like to
utilize the concept of package.properties property files. Is there
already classes available that I can easily utilize to access these
properties?
Thanks in
Thanks for the help :)
Now it works, it stay a little issue on the layout but I will reslolve this
:)
Julien
2007/5/29, Jeromy Evans [EMAIL PROTECTED]:
When I submit my form nothing in the optiontransfertselect is selected.
How can I solve the problem?
I work-around this bug but adding
Anyone encountered this issue with the datetimepicker?
Srepfler Srgjan wrote:
First issue I'm having now is using the dojo datepicker, I'm setting
the date property on my object in the prepare method but I'm getting
this error and the control gets set to 1907 instead of 2007:
May 26, 2007
Yes and it will be fixed for 2.1, you will have to use an string for the
time being.
musachy
On 5/29/07, Srepfler Srgjan [EMAIL PROTECTED] wrote:
Anyone encountered this issue with the datetimepicker?
Srepfler Srgjan wrote:
First issue I'm having now is using the dojo datepicker, I'm
It looks to me like a typo in your xml or the naming of your xml file:
Pasted as *Java* by *Logon-validaiton.xml
*should be logon-validation.xml
robinbajaj wrote:
Here's my Logon-Validation.xml
http://rafb.net/p/FToVf186.html
Hi.
In my action class i have to different String fields(setters and getters
are aplied).
String test1;
String test2;
In my jsp page i have:
s:property value=test1/
and
s:textfield name=callTextSubject .
When i submit the form with some values inside i have in my action those
values
Hi,
I need to do something that looks very simple to me :
- a form with a select list
- the data in the list comes from database
- when submitting the form, I want to validate datas. If it doesn't
validate, I display the form again
I configured two actions :
- An init action, that loads data
--- Olivier THIERRY [EMAIL PROTECTED] wrote:
Anyone knows how to set an action as an input result
rather than a JSP page?
http://struts.apache.org/2.x/docs/result-types.html
And are there better practices to do what I want ?
Preparable interface (didn't we do this once already?)
is designed
Somewhat of a new user myself, but I think you want to read this:
http://struts.apache.org/2.x/docs/result-types.html
The default result type is Dispatcher Result. Used for JSPs.
You want a Chain Result for a .action .
The page got sample code.
Yay. I'm going to be using this myself. I guess
Well, I don't see how it can solve my problem ...
If the input result is a JSP page, when will this prepare metho be called ?
2007/5/29, Dave Newton [EMAIL PROTECTED]:
--- Olivier THIERRY [EMAIL PROTECTED] wrote:
Anyone knows how to set an action as an input result
rather than a JSP page?
Might help to see your Action class code.
Do you have a method:
public String getTest1() and getCallTextSubject() ?
On 5/29/07, Michał Letyński [EMAIL PROTECTED] wrote:
Hi.
In my action class i have to different String fields(setters and getters
are aplied).
String test1;
String test2;
In my
--- Olivier THIERRY [EMAIL PROTECTED] wrote:
Well, I don't see how it can solve my problem ...
If the input result is a JSP page, when will this
prepare metho be called ?
It's called by the Prepare interceptor.
You should probably dig through a bit more of the docs
detailing the request
Hi
I've just downloaded the Struts 2 table tags from Sourceforge. Are
there any installation instructions anywhere?
Regards
Roger
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes I have. When i debug this action those two fields are changed to .
Then i go to the second action which return the jsp page( but on this
2nd action nothing is happened with those fields).I was courius what is
in the request on this 2nd action. so:
HttpServletRequest request =
Hello,
i hope this is the right location for my question. If not, please redirect
me.
I have a jsp-page where at the beginning of the page i load a collection of
data from the database and put it into the session like this:
%
List kommunen=IbnSystem.GetKommunengruppe(request);
I couldn't find this in the docs. Where could I find it please ?
Anyway, I finally succeeded.
I had already tried the Prepare interceptor but could'nt make it work as I
wanted. But this time it works !
And I have to say it's a very
So I configured the actions as following :
package
Didin't finish what I wanted to say !
I wanted to say it's a very elegant method ;)
2007/5/29, Olivier THIERRY [EMAIL PROTECTED]:
And I have to say it's a very
Hi,
I am facing a problem ;-) : I am using struts 1.3.5
My web application is based on several forms and each one corresponds to
a step of a process.
For example, If I am in the form 3/5 and I go back to form 2 using back
button of my browser then I submit the page to go a second time
You should probably ask this on the Struts 2 table tags list at
Sourceforge.
Thanks.
--
James Mitchell
On May 29, 2007, at 10:06 AM, Roger Varley wrote:
Hi
I've just downloaded the Struts 2 table tags from Sourceforge. Are
there any installation instructions anywhere?
Regards
Roger
The registration system at InfoQ is pretty slow; so I downloaded
directly from lulu.com.
Great work Ian, I hope it becomes the 'Thinking in Struts2' and is a
big success.
Hen
On 5/25/07, Ted Husted [EMAIL PROTECTED] wrote:
Is anyone else having trouble logging into the InfoQ site?
On
Ian, Nice job! I don't need the paper copy, but I'd like you to get
the full price of the book. Do you have a Paypal account that I
could donate some funds to?
--
James Mitchell
On May 29, 2007, at 12:13 PM, Henri Yandell wrote:
The registration system at InfoQ is pretty slow; so I
I am experiencing multi selection boxes in Struts 2. I have a list of
checkboxes in a table that spreads to more than one page. I am using the
displaytag for the table. Here is my attempt
s:form name=grantResults
display:table name=test id=grants ...
display:column title=Select
I want to store session information.
From what I understand, the best way to do this is by accessing the
Session Object.
It appears I get the session by getting the Request Object
(HttpServletRequest or whatever) and calling its getSession().
Struts1 had execute() methods that took a Request as
Your action should implement the ServletRequestAware interface, then
the Servlet Config Interceptor, which is active by default, does the
rest.
http://struts.apache.org/2.x/docs/servlet-config-interceptor.html
Yoni
On 5/29/07, yitzle [EMAIL PROTECTED] wrote:
I want to store session
--- Yoni Amir [EMAIL PROTECTED] wrote:
Your action should implement the ServletRequestAware
interface, then the Servlet Config Interceptor,
which
is active by default, does the rest.
http://struts.apache.org/2.x/docs/servlet-config-interceptor.html
No, you should implement SessionAware
No, you should implement SessionAware
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/SessionAware.html55
and avoid being tied to the Servlet spec.
... unless I am writing a Servlet.
-
To
--- yitzle [EMAIL PROTECTED] wrote:
... unless I am writing a Servlet.
In which case it isn't an S2 question at all and
should be asked elsewhere, and the previous
sub-optimal solution would also be incorrect.
d.
Now I need to figure out what classifies a Servlet vs a Web Application.
Wikipedia should be of use...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- yitzle [EMAIL PROTECTED] wrote:
Now I need to figure out what classifies a Servlet
vs a Web Application.
Er...
In case you're serious, a servlet is part of a web
application.
d.
Yahoo!
Hello,
I am trying to display a checkbox for every day of the week (7 total)...
I wanted to model this via some sort of Map in the java world, and use
s:checkboxlist .../
I have the view working, but when I submit to the same page, how do I
keep the state of each checkbox?? My map
Did you try this?
Action:
private String[] selectedDOW;
public String[] getSelectedDOW ();
public void set selectedDOW (String[] ids);
Jsp:
s:checkboxlist name= selectedDOW ... /
-
To unsubscribe, e-mail: [EMAIL
On 5/29/07, Dave Newton [EMAIL PROTECTED] wrote:
--- yitzle [EMAIL PROTECTED] wrote:
Now I need to figure out what classifies a Servlet
vs a Web Application.
Er...
In case you're serious, a servlet is part of a web
application.
d.
Let me see if I get this...
According to Wikipedia: A
The SessionAware documentation you linked me to earlier [1] states:
This interface is only relevant if the Action is used in a servlet
environment.
So is SessionAware really ServletSessionAware and/or
ServletRequestAware the same as RequestAware?
(I'm not trying to equate two classes, but rather
Good job! Finally a book to recommend to new users :)
musachy
On 5/29/07, James Mitchell [EMAIL PROTECTED] wrote:
Ian, Nice job! I don't need the paper copy, but I'd like you to get
the full price of the book. Do you have a Paypal account that I
could donate some funds to?
--
James
Yes, we don't to have to tell them to read Webwork in Action anymore... :)
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: den 29 maj 2007 20:01
To: Struts Users Mailing List
Subject: Re: [ANN] Starting with Struts2 Book
Good job! Finally a book to recommend to
Done :)
* http://struts.apache.org/index.html#Newbies
On 5/29/07, Musachy Barroso [EMAIL PROTECTED] wrote:
Good job! Finally a book to recommend to new users :)
musachy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
SessionAware only provides a setSession() method. No getSession().
Do I use setSession both to set and get Session variables?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That worked...
In summary...
Jsp:
s:checkboxlist name=weekDaysChecked list=weekDays/
Action:
private Map weekDays;
private String[] weekDaysChecked;
(with proper getters and setters)
Thanks...
-Original Message-
From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
First, push as much business and data access logic as possible out of
the Action class and into a POJO facade that the Action can call. In
this way, you can test all that outside of the Action.
My question lies in how do you scale this for 10 actions? 20? 50? Do
you have 1 facade for all
Hoying, Ken wrote:
I am new to Struts2 and have a question in regards to accessing
properties from Java classes outside of the Action. If I would like to
utilize the concept of package.properties property files. Is there
already classes available that I can easily utilize to access these
Ah - thanks for the link Ted. And for all the kind words on the list.
/Ian
Ted Husted wrote:
Done :)
* http://struts.apache.org/index.html#Newbies
On 5/29/07, Musachy Barroso [EMAIL PROTECTED] wrote:
Good job! Finally a book to recommend to new users :)
musachy
Jean-Marie Pitre wrote:
Hi,
I am facing a problem ;-) : I am using struts 1.3.5
My web application is based on several forms and each one corresponds to
a step of a process.
For example, If I am in the form 3/5 and I go back to form 2 using back
button of my browser then I submit the page to
Sami Dalouche wrote:
Hi,
Is it possible to disable this behaviour somehow ?
Depends how you're using the URL. Are you sure you even *want* to
disable the behaviour? Encoding ampersands is generally the right thing
to do.
Well, yeah, I do want to disable it.
Basically, I need to generate
Maybe you should start with;
http://java.sun.com/products/servlet/articles/tutorial/
Instead of wikipedia or the struts documentation.
When you've got a grasp of what servlets and webapps are, then it might be
time to re-visit struts.
-Original Message-
From: [EMAIL PROTECTED]
On 5/29/07, Ian Roughley [EMAIL PROTECTED] wrote:
Ah - thanks for the link Ted. And for all the kind words on the list.
Don't forget the blog :)
* http://husted.com/ted/blog/
Hey, isn't the New England JUG overdue for a Struts talk?
If you're still in the Boston area, I might be in town
Peter Valencic wrote:
Hello to all...
I'am working on a large project for car assicuration.
My question is if it's possible to prepopulate a form for example..
On page A user must enter policy number... then in actionForm bean i get
datas from DB and depends on datas I must prepopulate a form
Michał Letyński wrote:
Hi.
s:submit type=image name=submit src=/buttons/save.gif/
In my generated html path looks like this:
input type=image alt=save src=/buttons/save.gif
When i use html:submit
input type=image name=submit
src=/project_name/some/directory/here/buttons/save.gif
Is it
sc wrote:
There is an earlier post
http://mail-archives.apache.org/mod_mbox/struts-user/200603.mbox/[EMAIL PROTECTED]
My problem is pretty much the same as described. But there is no soluton to
it.
My application is Tomcat + Struts.
In the struts action class, I generates a WordML xml and
--- yitzle [EMAIL PROTECTED] wrote:
SessionAware only provides a setSession() method. No
getSession(). Do I use setSession both to set and
get
Session variables?
No, you use the map provided to the setSession method.
d.
Oh. OK. That makes sense...
They have some sample code here [1] that made it click for me.
Thanks!
[1] http://www.infoq.com/articles/converting-struts-2-part1
On 5/29/07, Dave Newton [EMAIL PROTECTED] wrote:
--- yitzle [EMAIL PROTECTED] wrote:
SessionAware only provides a setSession() method.
--- Skip Hollowell [EMAIL PROTECTED] wrote:
My question lies in how do you scale this for 10
actions? 20? 50?
Typically (well... in my little world, anyway...) the
bulk of functionality is wrapped up in service objects
which are used all over the place, including
stand-alone apps etc.
Skip Hollowell wrote:
First, push as much business and data access logic as possible out of
the Action class and into a POJO facade that the Action can call. In
this way, you can test all that outside of the Action.
My question lies in how do you scale this for 10 actions? 20? 50? Do
you
Alright. Read that page. Wikipedia's definition needs updating.
What I understand from that is that a servlet is basically like a Java
CGI program that runs in the web server process. So, it would seem a
Strut project is a servlet. It runs inside the web container, receives
an HTTP request,
hi,
Is it possible to get a time my servlet spends on generating JSP page?
There isn't a problem to measure this time for actions in RequestProcessor
but I'd like to know exactly how long did it take to present the page to the
user after the action had completed.
Rgs
Greg
--- yitzle [EMAIL PROTECTED] wrote:
So, it would seem a Strut project is a servlet. It
runs inside the web container, receives an HTTP
request, generates and sends an HTTP response. Meets
all the criteria. Right? Now, how do you define a
web
application?
You may wish to seek elsewhere for
We're using the html:form element and we have the acceptCharset
attribute set to UTF-8 and when we enter a unicode character in a
textarea in this form element, the UTF-8 character (in this case \u2022,
the bullet symbol: •) displays correctly. However, when the form is
submitted, I'm
Thanks Laurie for your reply Laurie.
Have you got sample (log4.properties I suppose?) to set configuration logging
on BeanUtils.
Regards,
-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Laurie Harper
Envoyé : mardi 29 mai 2007 21:25
À : user@struts.apache.org
Hello,
I've posted this question on the Webwork forums, and thought that maybe the
Struts2 community could help. I've integrated Tiles into my WW application,
and am seeing an error that I can't seem to track down. I've combed the
various WW and S2 forums and can't find anything specific to my
Hi,
1] Yes, I can pre-process the value, using something like string
replace... It's just hackish, and I wondered if there were a right way
of doing this
2] encode doesn't work; In fact, it seems this parameter only maps to
HttpServletResponse, which only adds the ;jsessionid pseudo-parameter to
On 5/29/07, Dave Newton [EMAIL PROTECTED] wrote:
I'm starting to feel like we're doing your
homework for you.
I'm sorry you feel that way.
If you prefer not to reply, its your prerogative.
I am just trying to understand the technology.
A Struts project is not a servlet. A Struts project
might
First off, I think the notion of sighting wikipedia as the end all be
all of a definition is highly suspect. After all, anyone can change the
Wikipedia at any time. For instance
http://en.wikipedia.org/wiki/The_Colbert_Report#_note-34
On January 29, 2007, Colbert cited the case where Microsoft
--- yitzle [EMAIL PROTECTED] wrote:
JSPs are compiled into Java Servlets by a JSP
compiler. [1] The way I see it, so long as the
result is a JSP page, the project contains a
servlet.
Semantics.
The developer rarely, if ever, needs to care that a
JSP page is compiled into a servlet.
A
hi,
My problem is that I've a big JSP page with a lot of scriptlets and a
JavaScript which basically reloads the whole page every 5s. The problem is
that my JavaScript makes a request to the server before the user has a
chance to see the whole page.
Is it possible to read somehow that the page
A common problem is having two related select controls on a page. Call them
the 'trigger' and the 'target'. This is an ideal use case for Ajax, because
you don't want to refresh the entire page to re-populate the 'target'
control when the user selects something in the 'trigger'. We have
dave is right..
feel free to ask this on tomcat users group
[EMAIL PROTECTED]
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error,
Adam,
Would you be kind enough to try this in 1.3.8? I'd be interested in fixing
this, if you can help me diagnose the issue. After you test in 1.3.8, if it
still happens, please open up a JIRA ticket and attach a sample web page. I
will use that to fix the problem, if it still exists.
Paul
On
Yes. It works. The source code is like:
response.setContentType(application/msword; charset=UTF-8);
response.setCharacterEncoding(utf-8);
java.io.PrintWriter out = response.getWriter();
out.println(outLine);
out.close();
Thanks a lot!!!
Just curious
sc wrote:
Just curious why I don't need to do setCharacterEncoding when I do
response.setContentType(text/xml; charset=UTF-8);
You *do* need to call it, if you want to be sure things will work
everywhere. There are various reasons it might work OK without doing
that, most likely being that
Hi
Are you using FormFile in your page? This happens when the table that you
are trying to paint is not in the scope of your html:form
Make sure you give your html:form in the right place
Thanks
On 5/29/07, Jean-Marie Pitre [EMAIL PROTECTED] wrote:
Hi,
I am facing a problem ;-) : I am
80 matches
Mail list logo