Re:

2009-04-09 Thread john lee
  tks for your great advise, i run the code, but receive the following error   /Analysis_input.jsp(17,12) Attribute var invalid for tag iterator according to TLD   i check the syntax, then i put extra } inside the tag as the following   then i put extra '}' inside   and run again, but receive the

Re:

2009-04-09 Thread Wes Wannemacher
On Friday 10 April 2009 02:14:22 john lee wrote: > tks for your quick response. > > the reason i initialize there is because try to get fresh list from > database. Preparable will run per invocation, just like execute runs once per invocation. The difference is that execute is likely to run af

Re:

2009-04-09 Thread john lee
tks for your quick response.   the reason i initialize there is because try to get fresh list from database.   second, as your suggest, i need to change the name, but how?   tks in advance again   john --- On Fri, 4/10/09, Wes Wannemacher wrote: From: Wes Wannemacher Subject: Re: Date: Frida

Re:

2009-04-09 Thread Wes Wannemacher
I'm jumping in a bit late, but I'll add a few observations. I don't think that execute is the place where you want to initialize your service and populate the "beds" list... You're better off implementing Preparable and initializing the list there. Second, when you are using the iterator and c

user@struts.apache.org

2009-04-09 Thread john lee
  I defined an entity java.   public class Bed {   private String bed_id;   public String getBed_id() {return bed_id;}   public void setBed_id(String bed_id) { this.bed_id=bed_id; } }   in action file, i did the following,     public class Analysis_input extends ActionSupport { private ArrayL

Re: Freemarker in JSP

2009-04-09 Thread suhas kokal
Hi, Thanks for the replay. I am forwarding the Jsp page and the action src code driving the page to you. The getPermssionlevel() method return the appropriate list/collection and the value is populated in perpere mathod. Please have alook at the code snippet. Thanks Suhas --- On Thu, 9/4/09,

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Gordian Yuan
Hi, Greg First, thx for you reply. But i dont think this is my project encoding configurion error, because in s:textfield tag everything is fine, but s:submit tag is some messy code! And I change the s:submit tag the key attribute as same as the s:textfield tag. It's still messy code.I have

RE: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Muthu Velappan
Christian, You can create a properties file with display text in required language itself like Newkey.label1 = Gracias ... ... Save it to and then call native2ascii program in /bin folder to convert the contents to appropriate Unicode characters and save the file with appropriate properties fi

[S2.1.6] boolean static parameter for an action

2009-04-09 Thread Greg Lindholm
I'm trying to pass a boolean "static" parameter to an Action and the value getting set is always "false" no matter what I do it won't set it to "true".   ${true}   /struts/xxx.jsp   OtherAction I put a break point in setXxx(boolean x)  and it always gets called with x=

RE: It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Greg Lindholm
 @ Martin: Not sure why you reply directly to me and not to the list? Maybe hit the wrong button? BTW: UTF-8 works great for Chinese and the far eastern languages. UTF-16 is incorrect in this case. The Tomcat URIEncoding= parameter refers to how to decode parameters that are included on the que

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread redstun
What about this way 1. use UTF-8 properties file and directly put plain Unicode characters in it. 2. during your build, add a post build step to call native2ascii and convert all the properties files to have Unicode characters escaped. the post build step should be easy to implement with ANT/Maven

Re: Convention plugin with custom interceptor stack

2009-04-09 Thread Musachy Barroso
Hi Ryan In Convention, as well as in XML, if you try to use an interceptor or result outside the package where it is defined, you will get an error. You interceptor is defined in your package, and your actions are getting mapped in Convention into another package. To fix this you need to either: m

Convention plugin with custom interceptor stack

2009-04-09 Thread Ryan Chichirico
Can someone help me understand how to use custom interceptors with the convention plugin? In my struts.xml I have: Currently, we use a package via XML config and it works as expected:

Re: New maven convention archetype

2009-04-09 Thread Lukasz Lenart
Ok, I made some minor tweaks and right now everything should be as expected, please test it. Then I will register new Task with Jira ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@str

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Greg Lindholm
Can you do a view source on the page from your browser and post what the form looks like. gordian yuan wrote: > > I forgot to say that I am using Struts 2.1.6 > > On Thu, Apr 9, 2009 at 6:14 PM, Gordian Yuan > wrote: > >> Hi all, >> >> I encountered the issue of international and I don't kno

RE: Default page for namespce in struts2 application.

2009-04-09 Thread Security Management
-Original Message- From: sharath karnati [mailto:karna...@yahoo.com] Sent: Thursday, April 09, 2009 2:20 PM To: user@struts.apache.org Subject: Default page for namespce in struts2 application. Hi All,      Say I'm having following code in my struts.xml file               /page

Re: [jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Musachy Barroso
Details here: http://struts.apache.org/2.x/docs/editing-the-documentation.html, basically, you need to fax a form and ask for rights in dev@ for editing the wiki (after faxing the CLA) musachy On Thu, Apr 9, 2009 at 2:19 PM, Struts Two wrote: > > Hi: > > Do I need to open an account to create a

Re: [jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Struts Two
Hi: Do I need to open an account to create a wiki page on struts, any instructions/links on how to proceed is appreciated. There is also work in progress to fix the issue of running struts on WAS 7.x and I would post as soon as the issue is resovled. --- On Thu, 4/9/09, Musachy Barroso wrote

Default page for namespce in struts2 application.

2009-04-09 Thread sharath karnati
Hi All,      Say I'm having following code in my struts.xml file               /pages/intapp/login.jsp     /pages/intapp/login_create.jsp     /intapp/contact_service.action           /pages/intapp/login.jsp                /pages/extapp/login.jsp    /pages/extapp/login_create.js

Re: Struts 2 on Google App Engine for Java

2009-04-09 Thread Musachy Barroso
We were talking about it on the dev mailing list(Don said how to fix that error): http://www.nabble.com/Google-App-Engine-support--td22972179.html musachy On Thu, Apr 9, 2009 at 1:35 PM, wrote: > Yesterday, I attempted to construct and deploy a simple Struts 2 application > for the GAE/J and

RE: Struts 2 on Google App Engine for Java

2009-04-09 Thread Martin Gainty
what is the error ? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte We

Struts 2 on Google App Engine for Java

2009-04-09 Thread daltontf
Yesterday, I attempted to construct and deploy a simple Struts 2 application for the GAE/J and ran into problems. A Google engineer is aware of the issue which involve Ognl security permissions and is hoping to find a workaround. I thought the Struts 2 community would be interested in this. I k

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Musachy Barroso
On Thu, Apr 9, 2009 at 12:23 PM, Michael Obster wrote: > Btw. can you tell when next release is planned? I am sorry to say there is no such a thing in Struts 2 :), hopefully, soon. musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd --

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Michael Obster
Thank you for the information. I'll give it a try, but this won't be a final option to set up the application, because it is a productive version which I migrate to JBoss at the moment. Looks like I've to wait till the next release. Btw. can you tell when next release is planned? Cheers, Michael

Re: [jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Musachy Barroso
It would be great if you could create a wiki page that explains this stuff. Thanks for the feedback/research. musachy On Thu, Apr 9, 2009 at 11:22 AM, Struts Two wrote: > > For those of you who had problem running Struts 2.1.6 on WAS 6.1 as reported > in [jira] (WW-2642). The problem  has been

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Musachy Barroso
by latest version, I meant, latest snapshot. musachy On Thu, Apr 9, 2009 at 11:55 AM, Musachy Barroso wrote: > That property is brand new and it is set by struts-core, you will need > to get the latest version of it, or build it. > > musachy > > On Thu, Apr 9, 2009 at 11:07 AM, Michael Obster w

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Musachy Barroso
That property is brand new and it is set by struts-core, you will need to get the latest version of it, or build it. musachy On Thu, Apr 9, 2009 at 11:07 AM, Michael Obster wrote: > Hi, > > I've run into the next problem running struts2 on JBoss :-(. Does > anybody of know this error? What does

Re: MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Charlesmel Carino
There's something in your container that's looking for a specific property but couldn't find it. Sometimes these types of exceptions are misleading. So it can be a misconfiguration issue between JBoss and Struts 2. Rommel From: Michael Obster To: Struts User

RE: Struts Action Issue

2009-04-09 Thread Martin Gainty
agree with Rommel a FieldValidationInterceptor would accomplish this objective http://struts.apache.org/2.0.14/docs/fieldexpression-validator.html HINT place validation logic in expression validator e.g. Date: Thu, 9 Apr 2009 07:23:42 -0700 > From: charlesmel1...@yahoo.com > Subject: Re: Struts

Re: Help with an Expression in a JSP page.

2009-04-09 Thread Charlesmel Carino
I think that the department object needs to be declared as a bean first before you can actually reference it. Rommel From: Security Management To: Struts Users Mailing List Sent: Thursday, April 9, 2009 10:54:21 AM Subject: Help with an Expression in a JSP pa

[jira] (WW-2642) resolved on Websphere

2009-04-09 Thread Struts Two
For those of you who had problem running Struts 2.1.6 on WAS 6.1 as reported in [jira] (WW-2642). The problem has been resolved. Please refer to the JIRA, I have posted details in there. regards __ Get the name you've alwa

MissingDependenyException - logMissingProperties - what's that?

2009-04-09 Thread Michael Obster
Hi, I've run into the next problem running struts2 on JBoss :-(. Does anybody of know this error? What does this error mean? It always happens when I render a JSP. Is this struts2 related? I don't understand what dependency is missing. Btw. the deployment has finished without an error. Kind rega

Re: Fwd: event onclick of nested:checkbox

2009-04-09 Thread Charlesmel Carino
Sallemel, If you uncheck the box, you should have a javascript event on your page that iterates to your form variables and re-assign a new value = "". Something like this document.form. CAjustTypeAjust = "". Let me know if this works. From: elyes sallem To

Help with an Expression in a JSP page.

2009-04-09 Thread Security Management
All, I have the following: The second gives me the correct number, but the first does not. I want the first to translate to: getPersonProvider().getDepartment(1) Which is a

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Musachy Barroso
Thanks for letting us know. (good work Lukasz) musachy On Thu, Apr 9, 2009 at 10:48 AM, Michael Obster wrote: > Thx. Problem is resolved ;-). > > Cheers, > Michael > > Wes Wannemacher schrieb: >> On Thursday 09 April 2009 09:54:40 Musachy Barroso wrote: >>> You need to use the latest xwork (buil

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Michael Obster
Thx. Problem is resolved ;-). Cheers, Michael Wes Wannemacher schrieb: > On Thursday 09 April 2009 09:54:40 Musachy Barroso wrote: >> You need to use the latest xwork (built it yourself), or grab it from >> a snapshot. I think Lukasz is hosting it somewhere also. >> >> musachy >> > > You can als

Re: Problem Struts with Apache and Tomcat integration

2009-04-09 Thread abed
Dusty, Thank you very much for your reply. Attached you will find our "httpd.conf", "workers.properties" and "server.xml" files. we currently have both PHP (Apache based) and JSP/Servlet (handled by the Apache/Tomcat through the AJP) sites on this server. I removed some of the httpd.conf "VirtualH

Re: Struts Action Issue

2009-04-09 Thread Charlesmel Carino
Riya, I'm sure that if you trace the request submission from JSP to your Action class by debugging it step by step you will find where the culprit will be. I had one experience before that took me hours to figure out whats wrong in our JSP page where its not showing block of data. After debuggin

Re: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Charlesmel Carino
Hi Christian, There are two sides of the story here. One is to type those UTF-8 characters onto your properties file (probably several combination of key strokes) and make sure that file editor you are using is configured for encoding UTF-8. The other is ensuring your code to read UTF-8 encode

Re: How to suppress server console message in struts1.3.10 + tiles

2009-04-09 Thread Charlesmel Carino
Raju, Check your log level. There are different levels to this as shown below: ALL DEBUG ERROR FATAL INFO OFF TRACE TRACE_INT WARN I'm assuming your log level is turned on for INFO. I provided the link below for your reference on each log level which describes what it does. http://logging.apac

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Wes Wannemacher
On Thursday 09 April 2009 09:54:40 Musachy Barroso wrote: > You need to use the latest xwork (built it yourself), or grab it from > a snapshot. I think Lukasz is hosting it somewhere also. > > musachy > You can also download it here - http://hudson.zones.apache.org/hudson/view/Struts/job/xwork2/l

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Musachy Barroso
You need to use the latest xwork (built it yourself), or grab it from a snapshot. I think Lukasz is hosting it somewhere also. musachy On Thu, Apr 9, 2009 at 9:45 AM, Michael Obster wrote: > I know that, but is there no way to work around this bug? > > Michael > > Musachy Barroso schrieb: >> It

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Michael Obster
Ahh. I've seen that should be already resolved in current version. So I will try it with this version. Cheers, Michael Michael Obster schrieb: > I know that, but is there no way to work around this bug? > > Michael > > Musachy Barroso schrieb: >> It is a known bug: >> >> http://jira.opensymphon

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Michael Obster
I know that, but is there no way to work around this bug? Michael Musachy Barroso schrieb: > It is a known bug: > > http://jira.opensymphony.com/browse/XW-669 > > musachy > > On Thu, Apr 9, 2009 at 8:20 AM, Michael Obster wrote: >> Hi, >> >> anybody here who have already a working struts2 app

Re: Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Musachy Barroso
It is a known bug: http://jira.opensymphony.com/browse/XW-669 musachy On Thu, Apr 9, 2009 at 8:20 AM, Michael Obster wrote: > Hi, > > anybody here who have already a working struts2 application on JBoss > 5.0.1 GA? I currently try to deploy one on the JBoss but got an error, > which I attach as

Problems using Struts2 on JBoss 5.0.1GA

2009-04-09 Thread Michael Obster
Hi, anybody here who have already a working struts2 application on JBoss 5.0.1 GA? I currently try to deploy one on the JBoss but got an error, which I attach as text file. I also saw a bug report in the JBoss tracker, but this doesn't help me to solve my problem, which is actually a show stopper.

Re: Freemarker in JSP

2009-04-09 Thread Muthu Velappan
Struts 2's default markup language is Freemarker and all themes are written in this language only. Your view is using this tag "" right, in that look at the theme="simple" attribute, these are written in freemarker only. Its shipped as part ur jar. Now, coming to ur error. I think ur "permission

Aw: Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread kindlerm
It is definitely possible to develop non-English applications using resource bundles. I typically put the Unicode codes (\u) in the .properties files when developing apps which must support e. g. cyrillic text. This is not as comfortable as it could be, but there are web based converters fr

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Paweł Wielgus
Hi all, try this: http://sourceforge.net/projects/eclipse-rbe/ Best greetings, Paweł Wielgus. 2009/4/9 Cristian Peraferrer : > So, is it possible to *really* develop internationalized struts web apps? > How can I add chinese or japanese, if the way to internationalize it isn't > capable to use o

Re: It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Gordian Yuan
I forgot to say that I am using Struts 2.1.6 On Thu, Apr 9, 2009 at 6:14 PM, Gordian Yuan wrote: > Hi all, > > I encountered the issue of international and I don't know this is a bug or > just I miss something or configuration error. > > The issue is > > I have a simple page like this > > >

It's a struts2 bug? or just I miss something or configuration error

2009-04-09 Thread Gordian Yuan
Hi all, I encountered the issue of international and I don't know this is a bug or just I miss something or configuration error. The issue is I have a simple page like this and i have two properties #en_US properties createCampaign.name=Name createCampaign.submit=Create #zh_CN prop

RE: what is the equivalent of method in struts 2 for retrieve data?

2009-04-09 Thread Muthu Velappan
Have u checked this http://struts.apache.org/2.0.14/docs/iterator.html ~Muthu -Original Message- From: john lee [mailto:sh_thorn_b...@yahoo.com] Sent: Thursday, April 09, 2009 1:37 AM To: user@struts.apache.org Subject: what is the equivalent of method in struts 2 for retrieve data? in

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread Cristian Peraferrer
So, is it possible to *really* develop internationalized struts web apps? How can I add chinese or japanese, if the way to internationalize it isn't capable to use other encoding than ASCII? I can't understand that. Any idea? Thanks, Cristian. On 09/04/2009, at 11:39, kindl...@arcor.de wr

RE: Struts Action Issue

2009-04-09 Thread Muthu Velappan
Out of curiosity, I gave the same value in my application and tested, I got the exact junk back in my action not even a truncated one. So, please check whether ur action bypasses only this kind of string or even valid string like "test" or "sample". If it doesn't show valid string then there is pro

Aw: [s2] Using UTF-8 in .properties files

2009-04-09 Thread kindlerm
If you look in the Java docs, you will see this is not possible. .properties files are always ASCII. The only possibility to include non-ASCII characters is using the Unicode codes \u. I do hate this. There might be a way to extend the resource bundle framework to support files using other

[s2] Using UTF-8 in .properties files

2009-04-09 Thread Cristian Peraferrer
Hi, How I can use UTF-8 in the .properties files? (I need the .properties files for i18n, so loggically I will need characters other than the contained in ASCII or latin1). Thanks, Cristian. -- GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch --

Fwd: event onclick of nested:checkbox

2009-04-09 Thread elyes sallem
Hello, i have another problem with this checkbox in fact , this checkbox can take two value : "R" or "" if it is equal to "R", the checkbox is checked else it is uncheckd here is the code i imlemented : and in tha actionForm i added a reset method , where i affect the type to "" public void

Freemarker in JSP

2009-04-09 Thread suhas kokal
Hello experts, I am new to Struts 2.0 Even though I am using JSP as result pager I am getting Freemarker template error. I am using the follwing syntax This will retrieve the Collection from the action using getPermissionlevel() method It is printing the values from the value stack but it also