struts2 s:select problem

2007-10-04 Thread zul;jami
I have a action class extending actionsupport in which I have a getters and setters for a HashmapString,String in my execute I populate the hashmap. But in my select it is not showing This is code in my jsp. s:select label=DashBoard name=dashBoardSelector

Re: struts2 s:select issue- not retaining..

2007-10-04 Thread Jose4u
thank for the reply Can you please help me out, how i can do this implementation using AJAX call. Thanks in advance Joseph Zarar Siddiqi wrote: Yeah, you're going to have to load them every time. You could store the collections in session or application scope if that's feasible but other

Re: Tiles 2 setup with Struts2

2007-10-04 Thread Roberto Nunnari
Yes, tiles-default extends struts-default. Here's the content of struts-plugin.xml from the library struts2-tiles-plugin-2.0.9.jar !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts

[S2] Access to ressource Bundle

2007-10-04 Thread Julien Leonard
Hello all, In my Struts2 project, I use a custom ResourceBundle which takes i18n in a database and cache them. I have configured Struts to use it in struts.xml like this : constant name=struts.custom.i18n.resources value=com.xxx.xxx.i18n.StrutsResourceBundle/ And it works ! But I want to

S2 on JDK 1.4

2007-10-04 Thread Joshua Jackson
Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2? or use Webwork 2 instead? Thanks in advance -- It's not just about coding, it's a matter of fulfilling your core being YM!: thejavafreak Blog: http://joshuajava.wordpress.com/

Override the default behavior of Add/Remove in Select Components

2007-10-04 Thread Shoaib Gauhar
Hello: I am working in Struts 2 and would like to override the default behavior of Add and Remove button which are rendered by the OptionTransferSelect tag. Can I do this? Regards, Shoaib Ahmad

Re: S2 on JDK 1.4

2007-10-04 Thread Antonio Petrelli
2007/10/4, Joshua Jackson [EMAIL PROTECTED]: Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2? or use Webwork 2 instead? You have to use Struts 2 jars for JDK 1.4: http://struts.apache.org/download.cgi#struts209?update=200707231930 Download: struts-2.0.9-j4.zip HTH

Re: [ANN] Three Struts Tutorials or Presentations at ApacheCon US 2007 Atlanta GA

2007-10-04 Thread Lionel
Pavel Sapozhnikov wrote: Second about this ApacheCon...will the power point or pdf slides be available after the conference has ended? Comparing Java Web Frameworks from Matt Raible is already available http://raibledesigns.com/rd/entry/ja_sig_comparing_java_web

Re: Struts URLs for perfectionists like Ebay's URLs

2007-10-04 Thread Vo Van Thuong
Hi, Vinny i also try urlrewrite but cannot get it work with struts 2's action, only work with static html files. would you pls give give me some sample app or guides to have my urls go from this : /myAction.do?p1=v1p2=v2 to /myAction/p1,v1/p2,v2/ best regards, -

ognl problem ?

2007-10-04 Thread meissa . sakho
I have an object named ticket in may Action class. this object has an attributes which has an attribute which has an attribute which has an attibute. When I want to display it in a textfield, I use the synthax below: td s:textfield onkeydown=return false; name= ticket.asset.underlying.reference

Re: struts 2.1 beta

2007-10-04 Thread Ted Husted
For performance problems, be sure to follow the advice on this page. * http://struts.apache.org/2.x/docs/performance-tuning.html If you do all of these things, and still consider the performance unacceptable, then I doubt that Struts 2.1 will make a startling difference. If performance is the

Re: Struts2 Pre-Action

2007-10-04 Thread Ted Husted
On 10/2/07, Tom Holmes Jr. [EMAIL PROTECTED] wrote: web-project altogether with just Struts2 ... no Spring2 and no Hibernate. What are you using instead of Hibernate (or the like)? I mean JDBC works, but ... ugh ... those were the bad old days. Or, is the plan to use Toplink as a JPA provider?

Re: Struts2 Pre-Action

2007-10-04 Thread Ted Husted
The native Struts2 solution would be to use an interceptor, or to piggy back on an interceptor that already exists. Writing your own interceptor is not difficult * http://struts.apache.org/2.x/docs/writing-interceptors.html and I would suggest that everyone at least try writing one interceptor

Re: struts 2.1 beta

2007-10-04 Thread Ted Husted
If it does, please feel free to file a issue ticket against 2.1.0. * https://issues.apache.org/struts/browse/WW/fixforversion/21794 -Ted. On 10/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We did all of the things described in the performance-tuning tips. But we've been using

Re: struts 2.1 beta

2007-10-04 Thread meissa . sakho
We did all of the things described in the performance-tuning tips. But we've been using intensively ajax tag (datetime picker and autocompleter). Theses two tags force us to include the killing head tag. When we removed them (removing the head tag in the same time) our pages are faster (a least

Re: Struts2 Pre-Action

2007-10-04 Thread stanlick
It also looks like Manning has released Struts 2 in Action through their Early Access Program! http://www.manning.com/dbrown/ On 10/4/07, Ted Husted [EMAIL PROTECTED] wrote: On 10/2/07, Tom Holmes Jr. [EMAIL PROTECTED] wrote: web-project altogether with just Struts2 ... no Spring2 and no

Re: ognl problem ?

2007-10-04 Thread stanlick
Double check that your action has a public getTicket() and that it has a public getAsset() and that it has a public getUnderlying() and that it has a public getReference(). As you probably know, spelling and case matters :) Scott On 10/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have

Re: [S2] Access to ressource Bundle

2007-10-04 Thread Wes Wannemacher
The class that is handling your ResourceBundle is - http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/util/LocalizedTextUtil.html 'findResourceBundle(String aBundleName, Locale locale)' looks promising, but I'm guessing it's not what your looking for. It doesn't appear that there is

struts 1 iterate tag

2007-10-04 Thread solid
I am having some trouble with some struts 1 interface code. I have an object that contains an unknown number of key/value pairs and I want to display them in a checkbox where the checkbox value is the key and the Label is the value. I am having no problem iterating and binding the keys to

how to keep object from action to action

2007-10-04 Thread ros
Hi! I use struts2 and want to load object in action1 and then access in in action2 and result jsp, like on drawing my1.html -(myobject.id)- action1.save -(myobject)- action2.edit -(myobject)- my2.jsp - my2.html I do not want to load this object in action2.edit if it was already loaded in

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
If you use the Spring framework, you can define your object as Spring beans and have them injected to your action. -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 10:21 AM To: user@struts.apache.org Subject: how to keep object from action to

RE: ognl problem ?

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
So you have no problem if you only nest attribute less than 4 times? I thought you have to use the value parameter to pull the value to the page. Were you able to set the attribute? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007

Re: struts 1 iterate tag

2007-10-04 Thread solid
nevermind. I figured it out I am having some trouble with some struts 1 interface code. I have an object that contains an unknown number of key/value pairs and I want to display them in a checkbox where the checkbox value is the key and the Label is the value. I am having no problem

How do you populate s:select with action or for that matter from any other file which can be commonly used to populate s:select on other pages?

2007-10-04 Thread naveen472-m
How do you populate s:select with action or for that matter from any other file which can be commonly used to populate s:select on other pages? Please help me with this Its URGENT - Forgot the famous last words? Access your message archive online.

s:select onchange and validation

2007-10-04 Thread Jason Deffenbaugh
Hello, I have two s:select drop downs on my page, lets call them x and y. When I change the value of x I populate y using the onchange attribute calling a javascript function. If the user then tries to submit the form with errors my validation kicks in and refreshes the page showing the field

Re: Session scoped ActionForm causing strange behaviour

2007-10-04 Thread Ramita Gambhir
Hi, Thanks a lot for your replies :-) I found the solution to my problem. It was a case of missing name parameter in the html:select. I had used html:select property=xyz. It was showing the values from previous form object. Thanks a bunch! Regards, Ramita Antonio Petrelli-3 wrote:

Re: struts2 s:select issue- not retaining..

2007-10-04 Thread Ramita Gambhir
Hi, You can try using DWR for AJAX implementation...Its very easy to use. There are few other libraries like prototype.js, DOJO toolkit...I haven't used them but you may want to explore them too... I have worked on DWR and its really helpful... Regards, Ramita Jose4u wrote: thank for the

RE: how to keep object from action to action

2007-10-04 Thread ros
Yes, I use spring. I will describe question in details: Same situation my1.html -(mypojo.id)- action1.save -(mypojo)- action2.edit-(mypojo)- my2.jsp - my2.html action1 loads mypojo: class action1 { .. private mypojo; setMypojo().. getMyPojo() ... public String save () { mypojo =

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your object factory, and you define mypojo in your action to match your bean id in the application context, mypojo will be automatically injected for you by the spring framework. You don't need to use myManager.loadPojo(). You

Re: struts2 s:select issue- not retaining..

2007-10-04 Thread Jose4u
thanks Ramita Can u send a sample code and if any help material and can u provide how it can be done in this implementation. Ramita Gambhir wrote: Hi, You can try using DWR for AJAX implementation...Its very easy to use. There are few other libraries like prototype.js, DOJO toolkit...I

RE: how to keep object from action to action

2007-10-04 Thread ros
Yes, this is it. How to setup StrutsSpringObjectFactory as current? web.xml? struts.xml? Thanks. Jiang, Jane (NIH/NCI) [C] wrote: If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your object factory, and you define mypojo in your action to match your bean id in the

Re: Struts debug mode

2007-10-04 Thread Viplav Kallepu
Thanks for the replies. I haven't tried jadeclipse and eclipse europa. I will try them to and see how debug mode works. One thing I wansn't able to figure out. why do we need source files of third party jars. Even the java jre we include is like third party to eclipse. Still it is able to debug

Re: s:select onchange and validation

2007-10-04 Thread Jason Deffenbaugh
I just used a hidden field to save the index. Easier way? -Jason On Thu, 2007-10-04 at 11:07 -0400, Jason Deffenbaugh wrote: Hello, I have two s:select drop downs on my page, lets call them x and y. When I change the value of x I populate y using the onchange attribute calling a

Re: Struts debug mode

2007-10-04 Thread Dave Newton
--- Viplav Kallepu [EMAIL PROTECTED] wrote: why do we need source files of third party jars. So you can see the source if you're debugging/executing something in a class contained in one of the third party jars. You don't *have* to have them, especially if you don't care about what's going on in

actionPackages parameter provokes PermGen memory error

2007-10-04 Thread wild_oscar
Dear all, I've been struggling with a Permgen error on my application's development: after a number of re-deployments, I get a permgen memory error in Tomcat 6 (described in more detail here http://www.nabble.com/forum/ViewPost.jtp?post=12984476framed=y

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
You must be using Spring framework but not the Spring plug-in. Here is the link to help you setup. http://struts.apache.org/2.x/docs/spring-plugin.html -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 12:18 PM To: user@struts.apache.org Subject:

Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread rapsy
Hi, I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper IDE ver 10.1.3.3.0. I have created the following validation in validation.xml file. field property=size depends=floatRange msg name=floatRange key=error.SizeRange /

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
Hey Rapsy, just a quick thought, shouldn't the arguments start at index 0? this meaning that you should have arg0 name=floatRange key=${var:min} resource=false/ arg1 name=floatRange key=${var:max} resource=false/ ?? -Cesar - Original Message From: rapsy

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread Wes Wannemacher
There is probably very little difference between the nightly build and trunk, I have found it's pretty easy to just build from trunk. If you don't have them already, get subversion and maven (both small downloads) and build it yourself. Follow the instructions from this thread -

RE: Disabling struts UI objects

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
I found that same problem trying to use the disabled parameter of the form tag. I did a search on the generated html and found not one element with the disabled attribute. Any one else? -Original Message- From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08,

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread rapsy
I don't think that matters but I gave a try just in case. The error message is now changed to: (Error) Invalid element 'arg0' in content of 'field', expected elements '[msg, arg, var]'. Thanks for your reply! Cesar Arevalo wrote: Hey Rapsy, just a quick thought, shouldn't the arguments

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread chengas123
Thank you for the suggestion, but unfortunately I still can't figure out how to get it to build as this is my first experience with Maven. I noticed someone placed struts-2.1.0-SNAPSHOT-lib.zip in the nightlies directory which I appreciate greatly, but while it includes most of the plugins, the

Re: Where are the logic: tags?

2007-10-04 Thread Marcos Hernandez
Thanks guys, I didn't know the c:forEach tag could be used that way. But now I've found a Struts related problem: according to the Struts taglib, the list attribute is obligatory for the s:select tag, therefore I can't use a inside s:param tag with a FOR loop to fill it. Thanx anyway :-) On

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread chengas123
Wes Wannemacher wrote: There is probably very little difference between the nightly build and trunk, I have found it's pretty easy to just build from trunk. If you don't have them already, get subversion and maven (both small downloads) and build it yourself. Follow the instructions

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread Musachy Barroso
The dependency seems to be fine (it was broken before). On core: dependency groupIdcom.opensymphony.xwork/groupId artifactIdxwork/artifactId version2.1-SNAPSHOT/version /dependency on xwork trunk: groupIdcom.opensymphony.xwork/groupId artifactIdxwork/artifactId

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread Wes Wannemacher
On 10/4/07, chengas123 [EMAIL PROTECTED] wrote: Wes Wannemacher wrote: There is probably very little difference between the nightly build and trunk, I have found it's pretty easy to just build from trunk. If you don't have them already, get subversion and maven (both small downloads)

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread Dave Newton
--- chengas123 wrote: I was trying to build myself, but I'm afraid I can't agree that it's pretty easy. It appears the pom.xml files are broken along with who knows what else. As I said, aside from the XWork pom.xml issue I found building trunk was very straight-forward. Perhaps if you

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread chengas123
Yes, it is working for me now. I checked out the project and did not have to change any of the pom.xml files. I will let you know how my performance tests go with the new plug in. Thanks, Ben Musachy Barroso wrote: The dependency seems to be fine (it was broken before). On core:

combining Struts-2 with Struts-1 application.

2007-10-04 Thread Leena Borle
Hi , I have started developing my application using Struts-2. Now my requirement is I need to use another application(separate WAR file) with this new one. This other application is written strut1 framework. My question is how do I make calls to the actions in struts-1 from my jsps/actions.

Re: Struts validation error on Jdeveloper 10.1.3.3

2007-10-04 Thread Cesar Arevalo
These pages help you: http://www.penguin-soft.com/penguin/developer/struts/userGuide/dev_validator.html http://wiki.apache.org/jakarta-commons/ValidatorXmlFile The error is telling you that the 'arg0' should not be put there, maybe there is something wrong, hope those pages help you. -Cesar

RE: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-04 Thread Engelking, Nicholas
One thing to keep in mind is that you will have to migrate from the old struts tags with theme=ajax to the new ajax specific struts tags. I found that the new tags were basically the same as the old ones, but I did have to go through, drop the theme, and change the tag library. It's probably

calling action

2007-10-04 Thread Henry Park
How can I forward to a url from within my action class? For example, instead of 'return SUCCESS' I just want to call another action... something like 'return SomeAction!doit.action. Any ideas? Thanks in advance. _ Windows Live

Re: calling action

2007-10-04 Thread Wes Wannemacher
How about - action name=YourFirstAction class=... result type=redirect-action param name=actionNameYourSecondAction/param /result http://struts.apache.org/2.0.9/docs/redirect-action-result.html The downside is that it is a redirect, so you any data from YourFirstAction that

Re: calling action

2007-10-04 Thread Dave Newton
--- Henry Park [EMAIL PROTECTED] wrote: How can I forward to a url from within my action class? For example, instead of 'return SUCCESS' I just want to call another action... something like 'return SomeAction!doit.action. Any ideas? Thanks in advance. Define a result that either chains or

Re: combining Struts-2 with Struts-1 application.

2007-10-04 Thread Wes Wannemacher
I would start here - http://struts.apache.org/2.0.9/docs/struts-1-plugin.html -W On 10/4/07, Leena Borle [EMAIL PROTECTED] wrote: Hi , I have started developing my application using Struts-2. Now my requirement is I need to use another application(separate WAR file) with this new one.

[ActionServlet] /WEB-INF/web.xml was not found

2007-10-04 Thread ROWLAND, CLAY, ATTSI
hi. i'm trying to deploy my first struts 1.3.8 web app on jboss-4.2.1 on windows and am getting an exception when i deploy my .war file. 18:15:43,744 ERROR [ActionServlet] The /WEB-INF/web.xml was not found. (please let me know if you'd like to see the full exception text) however, web.xml

Re: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-04 Thread Cesar Arevalo
Hey, what version of the jboss-web.dtd are you using, see here for the types: http://www.jboss.org/j2ee/dtd/ I see that the context-root element is not in the http://www.jboss.org/j2ee/dtd/jboss-web.dtd, it is until http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd that this element is present.

Re: S2 on JDK 1.4

2007-10-04 Thread Joshua Jackson
Thanks Antonio, I didn't know about that. Cheers, joshua On 10/4/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/10/4, Joshua Jackson [EMAIL PROTECTED]: Has anyone been able to run S2 on JDK1.4, or do we must use JDK 1.5 with S2? or use Webwork 2 instead? You have to use Struts 2

Struts 2.0.10 jars please

2007-10-04 Thread Sekhar, Raja
Hi I am behind a firewall, and also donot have proxyHost to change settings of maven and svn to work properly. Can somebody please pass me the jars that comprise struts2.0.10 . I need the tiles plugin as well. Kindly please point me to a location where I can download or mail the jars to my