Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Olivier THIERRY
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

Re: Excel, Struts and Downloading

2007-05-29 Thread Mike Baroukh
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

Prepopulate ActionForm bean with STruts

2007-05-29 Thread Peter Valencic
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

Re: [S2] Optiontransfertselect tag

2007-05-29 Thread Julien Leonard
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

Re: [S2] Optiontransfertselect tag

2007-05-29 Thread Jeromy Evans
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',

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Vijay Prajapati
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=

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Olivier THIERRY
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

WordML encoding problem

2007-05-29 Thread sc
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

s:submit type:image valid path

2007-05-29 Thread Michał Letyński
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

Problem in Implementation of Struts2 Validation framework

2007-05-29 Thread Vijay Prajapati
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=

Re: Problem in Implementation of Struts2 Validation framework

2007-05-29 Thread Jeromy Evans
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

RE: [S2] Accessing Properties

2007-05-29 Thread Hoying, Ken
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

Re: [S2] Optiontransfertselect tag

2007-05-29 Thread Julien Leonard
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

Re: Starting with struts2

2007-05-29 Thread Srepfler Srgjan
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

Re: Starting with struts2

2007-05-29 Thread Musachy Barroso
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

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Skip Hollowell
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

[S2] Field is not changed

2007-05-29 Thread Michał Letyński
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

[S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
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

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Dave Newton
--- 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

Re: [S2] How to set an action as input result ?

2007-05-29 Thread yitzle
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

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
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?

Re: [S2] Field is not changed

2007-05-29 Thread yitzle
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

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Dave Newton
--- 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

[S2] Table Tags - Installation

2007-05-29 Thread Roger Varley
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]

Re: [S2] Field is not changed

2007-05-29 Thread Michał Letyński
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 =

Problem with html:link-tag

2007-05-29 Thread kopinsky
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);

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
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

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
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

Go back - BeanUtils.populate

2007-05-29 Thread Jean-Marie Pitre
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

Re: [S2] Table Tags - Installation

2007-05-29 Thread James Mitchell
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

Re: [ANN] Starting with Struts2 Book

2007-05-29 Thread Henri Yandell
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

Re: [ANN] Starting with Struts2 Book

2007-05-29 Thread James Mitchell
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

[S2] html:multibox in S2

2007-05-29 Thread Jiang, Jane (NIH/NCI) [C]
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

[S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Yoni Amir
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Dave Newton
--- 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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Dave Newton
--- 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.

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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]

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Dave Newton
--- 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!

S2 - checkbox list

2007-05-29 Thread Charbel Abdul-Massih
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

RE: S2 - checkbox list

2007-05-29 Thread Jiang, Jane (NIH/NCI) [C]
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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

Re: [ANN] Starting with Struts2 Book

2007-05-29 Thread Musachy Barroso
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

RE: [ANN] Starting with Struts2 Book

2007-05-29 Thread Wesslan
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

Re: [ANN] Starting with Struts2 Book

2007-05-29 Thread Ted Husted
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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]

RE: S2 - checkbox list

2007-05-29 Thread Charbel Abdul-Massih
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,

Regarding How can we test applications? in S2 doc online

2007-05-29 Thread Skip Hollowell
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

Re: [S2] Accessing Properties

2007-05-29 Thread Laurie Harper
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

Re: [ANN] Starting with Struts2 Book

2007-05-29 Thread Ian Roughley
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

Re: Go back - BeanUtils.populate

2007-05-29 Thread Laurie Harper
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

Re: characters are encoded as amp; in OGNL parameters

2007-05-29 Thread Laurie Harper
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

RE: [S2] Obtaining Session/Request Object

2007-05-29 Thread Al Sutton
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]

Re: [ANN] Starting with Struts2 Book

2007-05-29 Thread Ted Husted
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

Re: Prepopulate ActionForm bean with STruts

2007-05-29 Thread Laurie Harper
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

Re: s:submit type:image valid path

2007-05-29 Thread Laurie Harper
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

Re: WordML encoding problem

2007-05-29 Thread Laurie Harper
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Dave Newton
--- 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.

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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.

Re: Regarding How can we test applications? in S2 doc online

2007-05-29 Thread Dave Newton
--- 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.

Re: Regarding How can we test applications? in S2 doc online

2007-05-29 Thread Laurie Harper
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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,

jsp page processing time

2007-05-29 Thread Greg Stasica
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

[OT] Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Dave Newton
--- 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

Struts 1.2.9 and UNICODE issue on form submittal

2007-05-29 Thread Adam Gordon
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

RE : Re: Go back - BeanUtils.populate

2007-05-29 Thread Jean-Marie Pitre
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

XML error reading definitions

2007-05-29 Thread jondcruz
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

Re: characters are encoded as amp; in OGNL parameters

2007-05-29 Thread Sami Dalouche
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

Re: [OT] Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
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

RE: [OT] Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Forsberg, Mike
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

Re: [OT] Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Dave Newton
--- 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

how to check if page has been displayed (rendered) by the browser

2007-05-29 Thread Greg Stasica
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

S2 - Ajax Dynamic Double Select Demo - complete code included

2007-05-29 Thread Ray Clough
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

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread Martin Gainty
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,

Re: Struts 1.2.9 and UNICODE issue on form submittal

2007-05-29 Thread Paul Benedict
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

Re: WordML encoding problem

2007-05-29 Thread sc
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

Re: WordML encoding problem

2007-05-29 Thread Laurie Harper
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

Re: Go back - BeanUtils.populate

2007-05-29 Thread Sid
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