Struts2 question on action with properties

2006-11-07 Thread Ing. Andrea Vettori
Hi, I've used struts1 a lot and now I'm using struts2 version 2.0.1 for a new medium-sized project (it's an e-commerce site). I'm facing this problem and since the documentation is poor (or at least it seems poor, maybe I'm looking on the wrong places), I need an advice from you experts.

Struts problem, random properties after every restart of server

2006-11-07 Thread Philippe Schober
Hi, I am using Struts on Orion 2.0.5 and have some languages (de, sv, en, tr and so on). "en" is the default language (ApplicationResources.properties). The problem I have only occurs on the clients online system. It is not reproducable on our test systems, his test systems or locally. Afte

Re: Issue: using logic:iterate to display rows and html:button to dis tinguish one of them

2006-11-07 Thread WongTseng
It's bacause you have more than one hidden elements with the same name,so whichever row you choose to delete, your action will recive an array of parameter values with the same parameter name. That's the reason why you always get the id of the first row. I suggest you to use a radio boxs to repla

Re: How to pass Java parameter to javascript

2006-11-07 Thread WongTseng
when you insert jsp scriptlet into the tag as a value of an attribute, the scriptlet should be bracketed by the quotation marks without anything else inside. 2006/11/8, Pankaj Gupta <[EMAIL PROTECTED]>: Hi All, I am unable to pass a java parameter to a javascript method. Can you please tell

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Pankaj Gupta
Thanks Chris for the response. I have fixed the bug. It works now the new code looks like this: " > "Chris Pratt" <[EMAIL PROTECTED]> 11/08/2006 11:48 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: Issue: using logic:iterate to display row

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Chris Pratt
What do you get when you try it? (*Chris*) On 11/7/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: I am facing the same problem. I am trying to use the onclick approach but not able to make it work. The parameter I pass to the javascript method does not work. The problem is that the java parameter

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Pankaj Gupta
I am facing the same problem. I am trying to use the onclick approach but not able to make it work. The parameter I pass to the javascript method does not work. The problem is that the java parameter is not resolved to a value here. regards, Pankaj On 10/26/06, Chris Pratt <[EMAIL PROTECTED]>

How to pass Java parameter to javascript

2006-11-07 Thread Pankaj Gupta
Hi All, I am unable to pass a java parameter to a javascript method. Can you please tell whats going wrong. Here is my code: regards, Pankaj

Struts v2.0.1 BETA Release

2006-11-07 Thread Ted Husted
The Apache Struts project is pleased to announce the availability of the Struts 2.0.1 BETA release [http://struts.apache.org/download.cgi#struts201]. Apache Struts 2 is an elegant, extensible framework, well suited for enterprise-ready Java web applications. The framework is designed to streamlin

Re: [Struts 2] execute() method not firing in Action

2006-11-07 Thread Ted Husted
On 11/7/06, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: The form tag is as follows in the JSP: ... There are only a few fields, and using either register!* or register_* gives me the same in the debugger. Each of the setters/getters is called (for setting values, then re-displaying the values)

Re: [s2] Accessing HttpServletRequest from an Interceptor

2006-11-07 Thread Ted Husted
Yes, that's fine. The role of the ServletActionContext is to make it easy to snag the request from an Action or Interceptor. The ActionContext itself is a thread-local container of the objects being processed with the request. The core framework objects, like Locale, are defined in the XWork Acti

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Chris Pratt
True, this definitely seems more like a JSTL bug/problem than a Struts. (*Chris*) On 11/7/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > I believe "stray alpha particle" is the most likely answer. I'm on a > US PC

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > I believe "stray alpha particle" is the most likely answer. I'm on a > US PC, with an English version of Windows XP. Everything on this > machine screams English, but for some reason it's picking the > application_fr.pr

question

2006-11-07 Thread Mark Menard
Is it possible to access the "body" of an s:component tag, like so? My Body I'd like to be able to get at the "My Body" string in the tag. Is this possible? How would I refer to it? Alternatively could I do something like this: And then access the results of the s:url tag inside my component

RE: Radio buttons and iterate

2006-11-07 Thread Strachan, Paul
If you view the html source you would notice the 'name' attribute is the same for each radio field; this field is what groups the radios together. With struts, typically you would apply indexProperties feature e.g. ... N/C Approve Deny ... And your formdef may look like Each bean in the

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Chris Pratt
I believe "stray alpha particle" is the most likely answer. I'm on a US PC, with an English version of Windows XP. Everything on this machine screams English, but for some reason it's picking the application_fr.properties. The forward for my logout action includes the attribute forward="true" t

Re: HTML:FILE

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Van, > I’m trying to create a jsp page that can upload a file. Everything > works, but I cannot apply my style to the “Browse” button: Most browsers don't let you style the browse button for file input types specifically. > That displays the regula

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > No the original problem statement was that the JSTL fmt tags were > picking up > the French text even though the locale was set to English Strange. Where is that French locale coming from? Default JDK locale? Locale of the

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Chris Pratt
No the original problem statement was that the JSTL fmt tags were picking up the French text even though the locale was set to English, the Struts tags are working correctly. The only thing that I can think of is that the Config class isn't working properly in this situation. With Struts I set t

HTML:FILE

2006-11-07 Thread Van Nguyen
I’m trying to create a jsp page that can upload a file.  Everything works, but I cannot apply my style to the “Browse” button:     That displays the regular button… I apply the same styleClass to the submit button and that works out fine:     Any ideas on why it my style won’t app

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > Thanks for the reply, and you read it correctly [snip]. Here is the > information I'm getting in my logs from all the debugging statements: > > [10:08:43.179] I18NFilter.doFilter: Processing Request for > /canada/logout.j

RE: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Jiang, Peiyun
Just wonder if after a session is invalidated, STRUTS, not the SERVLET container, creates a new session even before the request is forwarded to the JSP. If this is true, the browser setting is not involved. Of course, many settings would be null. Just a guess. Peiyun -Original Message-

RE: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Jiang, Peiyun
Can you invalidate the session and create a new session immediately and set the locale according to the old session? Peiyun -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: November 7, 2006 2:33 PM To: Struts Users Mailing List Subject: Re: Losing Locale after Sesion.

Radio buttons and iterate

2006-11-07 Thread Perry Minchew
Hi all, I asked this question earlier, but did not see a response, so I'll try again. Here's my jsp N/C Approve Deny So I'm iterating over the array list (requestList) and displaying information from our oracle database. I get solid output for the 4 in my test l

RE: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Jiang, Peiyun
I use the following code in JSPs to debug: context is PageContext: Enumeration eSession = context.getAttributeNamesInScope(context.SESSION_SCOPE); if (eSession != null) { while (eSession.hasMoreElements()) { String sessionName = (String) eSession.nextElement(); Objec

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Chris Pratt
Thanks for the reply, and you read it correctly, if there's a locale parameter, use that if not check the session, otherwise go with the browser setting. And yes, I've confirmed that the locale is not null. Here is the information I'm getting in my logs from all the debugging statements: [10:08

Re: Losing Locale after Sesion.invalidate()

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > I am having a strange problem with JSTL locale's after Session.invalidate. > I am using JSTL as the main TagLib with Struts 1.2.9. So to keep both > systems in sync, I have a servlet filter that executes this code: [snip]

Re: Starting validation

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, Thom Burnett wrote: > I'm working on an application that uses several jsp pages to gather > one set of information before it really does anything with it. > Ideally, the first form gets validated before the user can get to the > second form and

Losing Locale after Sesion.invalidate()

2006-11-07 Thread Chris Pratt
I am having a strange problem with JSTL locale's after Session.invalidate. I am using JSTL as the main TagLib with Struts 1.2.9. So to keep both systems in sync, I have a servlet filter that executes this code: protected void doFilter (HttpServletRequest req,HttpServletResponse res,FilterChain

RE: ActionServlet and RequestProcessor

2006-11-07 Thread Nitin M. Mandolkar
Hi C Did you find any thing about this? Nitin -Original Message- From: Nitin M. Mandolkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 10:26 AM To: Struts Users Mailing List Subject: Re: ActionServlet and RequestProcessor Hay Chris Good Logical reply. Is RequestProc

Re: request.getParameterMap

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin, > From: temp temp [mailto:[EMAIL PROTECTED] > How can I translatevalue [Ljava.lang.String;@1849daf to > readable String? Nitin M. Mandolkar wrote: > Cast it to String object. This won't work. Casting String[] to a String will resul

Re: Starting validation

2006-11-07 Thread Thom Burnett
Here's a snippet of one of the jsp files. I'd almost forgotten myself that I added the getAttribute("sessionForm") some time ago. I'm working on an application that uses several jsp pages to gather one set of information before it really does anything with it. Ideally, the first form gets validat

RE: ActionServlet and RequestProcessor

2006-11-07 Thread Nitin M. Mandolkar
Is any body other knows about his. Nitin -Original Message- From: Nitin M. Mandolkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 10:26 AM To: Struts Users Mailing List Subject: Re: ActionServlet and RequestProcessor Hay Chris Good Logical reply. Is RequestProcessor

RE: How do I configure this Interceptor for every action in struts.xml

2006-11-07 Thread Nitin M. Mandolkar
Extend the struts action class and provide your own action class. Which can be extended by every action in your application. May I know the role of your Interceptor? Nitin -Original Message- From: Asish Kr. Samanta [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 2:13 AM To:

RE: request.getParameterMap

2006-11-07 Thread Nitin M. Mandolkar
Cast it to String object. Nitin -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 8:04 AM To: user@struts.apache.org Subject: request.getParameterMap I want all the parameters in ServletRequest object for this I am using the method requ

Re: Starting validation

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, Thom Burnett wrote: > With that fixed I can take out the sub class' validate() method and still > get a set of errors. That's good, I guess. What do you mean, the subclass's validate method? I didn't realize that you had multiple levels of vali

Re: Starting validation

2006-11-07 Thread Thom Burnett
Chris, Following your advice, I've now found the proper settings for my resource file. With that fixed I can take out the sub class' validate() method and still get a set of errors. However, getting errors still depopulate's the form's fields. Again, I can fix that by overriding the validate meth

Struts app with web service, Axis and Eclipse

2006-11-07 Thread Dave Kennedy
Hi, http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/index.html I've implemented these tutorials and would now like to add web services to a Struts application. Any tutorials/suggestions/examples using Axis, Struts, Eclipse would be greatly appreciated. Thanks in advance ___

Re: Starting validation

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, > struts-config.xml: This looks good. > request.setAttribute("sessionForm", this) ; // If I don't do this the > form will be blank after an error. You really shouldn't have to do this. The form bean in the session will be called "donorBe

Re: Starting validation

2006-11-07 Thread Thom Burnett
What's now happening is that the validation correctly moves me back to the jsp specified by input but the form becomes blank (doesn't keep the information that was entered) and the returns nothing. I can sort of get around this by calling validate and adding attributes to the request but I'm pre

Re: return flow to calling servlet inside action

2006-11-07 Thread Sarry
oops you are right It should work. apetrelli wrote: > > Sarry ha scritto: >> I have a servlet which is the interface for the third party and its >> calling >> the struts actions and jsps to do some processing, and it will go throuh >> the >> actions and the flow should come to the calling servle

RE: [Struts 2] execute() method not firing in Action

2006-11-07 Thread Wesley Wannemacher
The form tag is as follows in the JSP: ... There are only a few fields, and using either register!* or register_* gives me the same in the debugger. Each of the setters/getters is called (for setting values, then re-displaying the values), but the execute method is never called. It is as if, my ex

Re: Starting validation

2006-11-07 Thread Romu
validations are linked to xml files: with name tag, struts will look in validation.xml files to see the rules etc , and it wil generates the javascript . check if u got javascript validation code in your jsp ? 2006/11/7, Thom Burnett <[EMAIL PROTECTED]>: What are

Re: [Struts 2] execute() method not firing in Action

2006-11-07 Thread Romu
it might be in your jsp , in the tag with XXX is the name of your action if struts controller dont find the action an error will pop up . 2006/11/7, Mark Menard <[EMAIL PROTECTED]>: On 11/7/06 9:07 AM, "Wesley Wannemacher" <[EMAIL PROTECTED]> wrote: > [question] > Below, I have copy/pa

Re: [Struts 2] execute() method not firing in Action

2006-11-07 Thread Mark Menard
On 11/7/06 9:07 AM, "Wesley Wannemacher" <[EMAIL PROTECTED]> wrote: > [question] > Below, I have copy/pasted the Source for the Action as well as my > struts.xml file (actually another file that is included from the > struts.xml file). Are there any glaring errors that I am simply missing? > [/que

Starting validation

2006-11-07 Thread Thom Burnett
What are common simple mistakes that would prevent validation from occuring? I've got a simple struts application that runs correctly except that validation doesn't occur. The form info is accepted as correct when required information is missing. I'm trying to figure out what's missing from my se

Re: struts tiles and validator framework

2006-11-07 Thread Antonio Petrelli
Madhav Bhargava ha scritto: Let me elaborate my problem and the reason i have posted this to this list: I am using tiles with JSF. So i have just one layout.jsp. This file has the tag and other JSP's just get inserted into the respective place holders. All of this works just fine. The probl

[Struts 2] execute() method not firing in Action

2006-11-07 Thread Wesley Wannemacher
Hello, I've been racking my brain for a bit and hoping that someone will point out my (probably obvious) mistake. [background] This is my first Struts project. I downloaded the Struts 2.0.1 build and started with struts-blank. I am basing my first action on the bootstrap example. I have an input

Re: struts tiles and validator framework

2006-11-07 Thread Madhav Bhargava
Let me elaborate my problem and the reason i have posted this to this list: I am using tiles with JSF. So i have just one layout.jsp. This file has the tag and other JSP's just get inserted into the respective place holders. All of this works just fine. The problem comes when i am trying to use

RE: SiteMesh

2006-11-07 Thread Juan Espinosa
i dont have an excludes files, the excludes are in the decorators.xml file, maybe its that the line you wrote is located in the file sitemesh.xml isnt it ?? in the doc of sitemesh i saw this line in the file sitemesh.xml, but the doc says that this file(sitemesh.xml) is not mandatory i will try

Re: SiteMesh

2006-11-07 Thread Tom Ziemer
Hi Juan, did you add something like: to your sitemesh.xml I am using SiteMesh with Struts and it's working just great (excludes as well). HTH, Tom Juan Espinosa wrote: > Hi to all, im using sitemesh and i have a little problems with excludes > I have an action that load some data from a db and

[OT] Re: SiteMesh

2006-11-07 Thread Antonio Petrelli
Juan Espinosa ha scritto: Hi to all, im using sitemesh... I think writing to the Sitemesh mailing list should be better... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

SiteMesh

2006-11-07 Thread Juan Espinosa
Hi to all, im using sitemesh and i have a little problems with excludes I have an action that load some data from a db and then goes to a jsp page. /private/someJSP.jsp i put in the exclude section of the decorators.xml this page /private/someJSP.jsp but sitemesh de

Re: how recover a map of a bean in a "select list" of the jsp and to post the data ?

2006-11-07 Thread nalimoussa
Hi everybody, Here is my code, the result isn't posted inside the "select list", but outwards, why? Regards, Nabil. Le lundi 06 novembre 2006 à 11:05 -0500, Ed Griebel a écrit : > You need to use either or to ite

RE: Using ActionMessage in Struts

2006-11-07 Thread RoseIndia.net Help
Hi Barun, Visit http://www.roseindia.net/struts/address_struts_validator.shtml -Original Message- From: Barun Kumar Yadav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:39 PM To: Struts Users Mailing List Subject: Using ActionMessage in Struts Hi, Can anyone give a

Re: Using ActionMessage in Struts

2006-11-07 Thread Niall Pemberton
On 11/7/06, Barun Kumar Yadav <[EMAIL PROTECTED]> wrote: Hi, Can anyone give a small example of how to us ActionMessage in struts to display errors. http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html It would be great if I can get the samples for following - Saving err

[s2] Error setting 'dojo.transport'

2006-11-07 Thread Oleg Galkin
When I use the div ajax tag the exception Error setting expr 'dojo.transport' with value '...' ognl.OgnlException: target is null for setProperty(null, "transport", ...) is thrown. The showcase example application throws the same exception. Anyway, the tag works. The resulting query string for th

Using ActionMessage in Struts

2006-11-07 Thread Barun Kumar Yadav
Hi, Can anyone give a small example of how to us ActionMessage in struts to display errors. It would be great if I can get the samples for following - Saving errors in ActionMessage - How to represent it on the jsp Thanks Barun Kumar Yadav ¬Sapient Bangalore Work 91.804.104.7490 Mob

Re: Please unsubscribe me

2006-11-07 Thread Craig McClanahan
On 11/7/06, Pillay, Kiren KN <[EMAIL PROTECTED]> wrote: I've tried many times to unsubscribe myself from this list but its not working. I've asked for help but to no avail. Done. Craig

Please unsubscribe me

2006-11-07 Thread Pillay, Kiren KN
I've tried many times to unsubscribe myself from this list but its not working. I've asked for help but to no avail. __ Standard Bank Disclaimer and Confidentiality No