Re: Newbie question about parameters for an Action

2007-09-24 Thread Oleg Mikheev
Phil404 wrote: I don't think this is the problem since if I view source the generate code says: --img src='/surveytortoise-main/piechart.action?visual=10amp;auditory=15amp;kinesthetic=20' / So, the code seems to be correct. Why are these parameters not being set by Struts2? Please help!

RE: JAAS struts 2 Tutorial?

2007-09-24 Thread Fowler, Perryn
Better a late replay than none at all :) Is JAAS the best way to go, or there are better alternates? 'JAAS' encompasses a lot of stuff, so it depends what you are trying to do... Let me assume for the minute that you are talking about login/authentication... In this case, it depends

Re: Dojo bug?

2007-09-24 Thread Pablo Vázquez Blázquez
Please, can anybody help me? I know it´s not pretty code, but it´s just a test to know what´s not working ok... Pablo Vázquez Blázquez escribió: Hello, I have a very strange problem. I can´t specify if it is an Struts 2 problem, a Javascript problem, a Dojo problem,... The scenario is

Re: Do Tiles have access to bean defined in JSP page

2007-09-24 Thread Antonio Petrelli
2007/9/22, Arunkumar Balasubramanian [EMAIL PROTECTED]: While I do this, I am not getting part page after tiles insert. The page remains cutted off and nothing displays after tiles:insert part. Usually this happens when an exception happened during the rendering of the page. Check if you

Re: Struts Action with two or more process methods

2007-09-24 Thread michetag
OK..thanks so much cilquirm wrote: You can also map each method to a name in your struts.xml by using the method attribute of the action tag. action name=test class=mypackage.MyAction method=test/ Ganebnyi Genadii wrote: Requesting action like

Starting of Tomcat failed, the server port 8084 is already in use.

2007-09-24 Thread kushi
Hello! I have a problem when i want to start my project in NetBeans he show me next thing: Starting server Bundled Tomcat (5.5.17) Starting of Tomcat failed, the server port 8084 is already in use. C:\Program

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Adam Hardy
Guillaume, I don't see a Food getter and setter on your action. Guillaume Bilodeau on 23/09/07 18:48, wrote: Hi all, I'm quite new to Struts2 and so far I love what I see. Currently I'm having a problem trying to map a checkboxlist based on a set of enums to a model object nested in my

Re: [S2] Freemarker Configuration?

2007-09-24 Thread Zarar Siddiqi
I'm not sure what you want to do with the FreemarkerManager instance but if you're looking to do things like build results programmatically, my posting where I answered my own question on the Freemarker User list might be helpful: http://www.nabble.com/forum/ViewPost.jtp?post=12740736framed=y If

Re: question on autocompleter UI tag ...

2007-09-24 Thread Alvaro Sanchez-Mariscal
On 9/23/07, Musachy Barroso [EMAIL PROTECTED] wrote: Both will get submitted when the form is posted. ... only if the value is manually selected. If the autocompleter is preloaded with an option selected, it's key will not be submitted. https://issues.apache.org/struts/browse/WW-2126 Alvaro

Welcome page in Tiles2 with Struts2

2007-09-24 Thread wild_oscar
I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp body). In my Tiles1+Struts1 application the way I achieved this was like: 1) Create a dummy welcome.jsp file 2) Have a WelcomeServlet to listnen to that page 3) Make the servlet forward the request to a welcome.do action

Re: Welcome page in Tiles2 with Struts2

2007-09-24 Thread Antonio Petrelli
2007/9/24, wild_oscar [EMAIL PROTECTED]: I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp body). In my Tiles1+Struts1 application the way I achieved this was like: 1) Create a dummy welcome.jsp file 2) Have a WelcomeServlet to listnen to that page 3) Make the

Re: Welcome page in Tiles2 with Struts2

2007-09-24 Thread wild_oscar
Which is, in fact, easier! Thank you, Antonio! Off-topic: everytime I read your name I remember the brothers from Heroes! Antonio Petrelli-3 wrote: 2007/9/24, wild_oscar [EMAIL PROTECTED]: I want my welcome page to be a Tiles2 template (with, say, a welcome.jsp body). In my

Re: JAAS struts 2 Tutorial?

2007-09-24 Thread wild_oscar
In the web app I'm currently developing (which uses JAAS authentication), I've done the following: 1) Create an HttpServletRequestWrapper to override the isUserInRole method 2) Create an AnnotationRoles class to annotate my actions if they require particular roles 3) Create an

Re: Welcome page in Tiles2 with Struts2

2007-09-24 Thread Antonio Petrelli
2007/9/24, wild_oscar [EMAIL PROTECTED]: Off-topic: everytime I read your name I remember the brothers from Heroes! LOL! I have no relatives with my surname in USA. Anyway I think I can fly :-P Antonio

Re: [S2] Issues with AJAX in IE

2007-09-24 Thread Meteora
Hi, you are welcome, i am glad it works for you too. About it being a bug... it is strange noone else (except us) is writing in this topic so i am not sure if it is a bug or not but i don't know what else it could be, i tried and tried again and i don't think my code has something wrong but...

Re: Bug in scenario

2007-09-24 Thread stanlick
I know a few developers who are fundamentally broken. I'm suggesting the S2 bean creation happens if(model==null) in the same fashion it does ordinarily. Otherwise, perhaps an exception should be thrown? What I witnessed was voodoo logic. Scott On 9/23/07, Dave Newton [EMAIL PROTECTED] wrote:

Velocity dependency

2007-09-24 Thread Martin Gilday
I am porting a WebWork application over to Struts2. I have added a dependency to struts2-core to my Maven POM. dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.0.9/version /dependency In my struts.xml I extend struts-default. When I try and start my

Re: Starting of Tomcat failed, the server port 8084 is already in use.

2007-09-24 Thread Cory D. Wiles
The problem is that the container is out of memory. There are a number of different ways to either up the memory for the container, but it might be easier to just kill the embedded tomcat process and then redeploy the app inside of netbeans. Thanks, Cory On 9/24/07, kushi [EMAIL PROTECTED]

Re: Starting of Tomcat failed, the server port 8084 is already in use.

2007-09-24 Thread Vinicius Medeiros Peretti
Hi Kushi, Try to change the server port to 8085 or another number. Select Runtime Servers right button and select properties. On tab Connection Change the Server Port and restart the Bundled Tomcat or try to start. Vinicius kushi wrote: Hello! I have a problem when i want to start my

Re: Starting of Tomcat failed, the server port 8084 is already in use.

2007-09-24 Thread Dave Newton
Cory D. Wiles [EMAIL PROTECTED] wrote: On 9/24/07, kushi [EMAIL PROTECTED] wrote: Starting of Tomcat failed, the server port 8084 is already in use. The problem is that the container is out of memory. I could be way off-base here (not using NetBeans or TC6) but isn't it likely that there's

Re: Bug in scenario

2007-09-24 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: I'm suggesting the S2 bean creation happens if (model == null) in the same fashion it does ordinarily. Otherwise, perhaps an exception should be thrown? I'd suggest filing a JIRA enhancement request; seems like a reasonable idea. d.

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Guillaume Bilodeau
Hi Adam, The action has a SimpleFoodCreationRequest getModel() method which should expose the request object to the JSP. However you are right that it doesn't have any setter, but is it really necessary since all bindings are done on the nested request object? Thanks, GB Adam Hardy-3

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

2007-09-24 Thread Musachy Barroso
It is a dojo/browser thing. All we can do is done already, if you set cache=true Struts 2 will use a custom build where only one file (which will be cached) will be used. musachy On 9/24/07, Don Brown [EMAIL PROTECTED] wrote: Oh damn, why is that? Cache is critical here. Don On 9/24/07,

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Dave Newton
--- Guillaume Bilodeau [EMAIL PROTECTED] wrote: The action has a SimpleFoodCreationRequest getModel() method which should expose the request object to the JSP. The Action code you posted does not implement ModelDriven; was that a deliberate omission? Action: public class

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Guillaume Bilodeau
Yes it was deliberate. I'm not sure I see the advantages of flattening my action *and* my request object, for now I'd rather keep this nested as it currently is. Of course I'll change my mind if given the right counter-arguments :) newton.dave wrote: --- Guillaume Bilodeau [EMAIL PROTECTED]

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Dave Newton
--- Guillaume Bilodeau [EMAIL PROTECTED] wrote: Yes it was deliberate. I'm not sure I see the advantages of flattening my action *and* my request object, for now I'd rather keep this nested as it currently is. Of course I'll change my mind if given the right counter-arguments :) The most

Re: JAAS struts 2 Tutorial?

2007-09-24 Thread Ian Roughley
You can find the key features of acegi here - http://www.acegisecurity.org/. I see the advantages as being able to customize the authentication and authorization from within the scope of the web application, and not external configuration via an app server. But then, this also depends on

Re: Bug in scenario

2007-09-24 Thread Ian Roughley
This is the fundamental way the value stack works - if it can't evaluate an expression at the topmost level, it starts to work it's way down until the expression can be evaluated. I guess my question really is why are you trying to set value on a null object? It sounds to be like you need

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Guillaume Bilodeau
Ok, as I said I'm new to Struts2 so maybe I made some wrong assumptions. Please correct me if I'm wrong: 1- I'm using food.name as the text field key - not as its name - so a localized label will be shown next to it. 2- I thought the action itself was pushed on the value stack and that one could

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Dave Newton
Whoops! Guillaume Bilodeau wrote: 1- I'm using food.name as the text field key - not as its name - so a localized label will be shown next to it. You're right; I didn't even see that. 2- I thought the action itself was pushed on the value stack and that one could reference and bind

Re: Mapping multiple enums to a nested object

2007-09-24 Thread Guillaume Bilodeau
Hey no problem, I'm kind of sluggish also :) It's true that I could use a different method name to expose the nested object, it does bring some confusion. Somehow the group converter seems to work fine, so I don't understand why the nutrients doesn't. I'm knee-deep in OGNL code to see exactly

Struts 2 and struts-menu

2007-09-24 Thread Roberto Nunnari
Hello list. Is anybody successfully using struts-menu with Struts2? Thank you. -- Robi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Velocity dependency

2007-09-24 Thread Leonidas Papadakis
Hi there, i had to do the following things in order to add full velocity support. The issue is that in struts2 even if you have to parse a velocity file, it has to be a result of an action. So in order to be able to parse velocity files even if they are not result of an action : Add the

RE: Struts 2 and struts-menu

2007-09-24 Thread Al Sutton
Yes. -Original Message- From: Roberto Nunnari [mailto:[EMAIL PROTECTED] Sent: 24 September 2007 15:24 To: Struts Users Mailing List Subject: Struts 2 and struts-menu Hello list. Is anybody successfully using struts-menu with Struts2? Thank you. -- Robi

Re: Struts 2 and struts-menu

2007-09-24 Thread Roberto Nunnari
Hi Al. Thank you for your time. Glad to hear that ;) ..So here are a few more targeted questions: 1) how do you integrate? Using Spring or MenuContextListener or else? 2) is there a way to modify the menu links or add/set parameters to the menu links at runtime? Thank you again. Al Sutton

RE: Struts 2 and struts-menu

2007-09-24 Thread Al Sutton
1) I use the MenuContextListener 2) I use static menus, but I believe there is something in the struts-menu FAQ that will help you. Regards, Al. -Original Message- From: Roberto Nunnari [mailto:[EMAIL PROTECTED] Sent: 24 September 2007 15:52 To: Struts Users Mailing List Subject: Re:

[Struts 2] Read request attribute in struts.xml

2007-09-24 Thread Xibin Liu
Hi, I set an attribute in the request in the action code, and I want to use it in the struts.xml (see below). How can I reference it at the place marked by ***? action name=actionname class=classname result type=redirect param

Re: Struts 2 and struts-menu

2007-09-24 Thread Roberto Nunnari
Great. Thank you again, Al. :) Best regards. -- Robi Al Sutton wrote: 1) I use the MenuContextListener 2) I use static menus, but I believe there is something in the struts-menu FAQ that will help you. Regards, Al. -Original Message- From: Roberto Nunnari [mailto:[EMAIL

Re: [Struts 2] Read request attribute in struts.xml

2007-09-24 Thread Dave Newton
Xibin Liu wrote: Hi, I set an attribute in the request in the action code, and I want to use it in the struts.xml (see below). How can I reference it at the place marked by ***? action name=actionname class=classname result type=redirect param name=location***/param param

Re: Velocity dependency

2007-09-24 Thread Martin Gilday
Hi Leon, Sorry I think I wasn't clear. I do not wish to use Velocity, all my views are Freemarker or JSP based. I have found that it seems to be the Struts2 Sitemesh plugin that causes problems. As soon as I declare it then I get NoClassDefFound problems until I manually add the Velocity

Re: [Struts 2] Read request attribute in struts.xml

2007-09-24 Thread Jim Cushing
Mark Menard's excellent Struts 2 Cookbook shows you how to do this. http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect If you've never seen his Cookbook, I definitely recommend taking a look. It's got some great tips. On Sep 24, 2007, at 11:02 AM, Xibin Liu wrote: Hi, I set

struts 2.1 beta

2007-09-24 Thread meissa . sakho
Hi all, I would like to build the struts 2.1 dev version. Can someone tells where I could find it. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est

Re: struts 2.1 beta

2007-09-24 Thread Dave Newton
[EMAIL PROTECTED] wrote: I would like to build the struts 2.1 dev version. Can someone tells where I could find it. http://people.apache.org/builds/struts/nightlies/2.x/ d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

addActionError and execute

2007-09-24 Thread Patrick Hesse
is the following correct? if i add a actionErrorMessage in one Action and call in the jsp-File another action, that the execute-method of the second Action is not executed? greetings Patrick -- Diplom-Informatiker Patrick Hesse E-Mail: [EMAIL PROTECTED] Web: http://www.patrick-hesse.de

Re: Bug in scenario

2007-09-24 Thread Dave Newton
I think the OP's issue is that there's a difference between XWork object creation (it will create an Action property if configured to) and ModelDriven (won't). d. --- Ian Roughley [EMAIL PROTECTED] wrote: This is the fundamental way the value stack works - if it can't evaluate an expression

RE: ModelDriven

2007-09-24 Thread Wesley Wannemacher
Yikes, what if getModel() is doing actual work, you're calling it twice for no apparent reason. Wouldn't it be significantly safer to: public String intercept(ActionInvocation invocation) throws Exception { Object action = invocation.getAction(); if (action instanceof

RE: [Struts 2] Read request attribute in struts.xml

2007-09-24 Thread Xibin Liu
I created a property for the attribute, then reference it by $propName, and it works. Thanks Dave! Also thanks Jim for pointing me to the struts 2 cookbook. That is a great resource! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 11:08

RE: Struts 2 and struts-menu

2007-09-24 Thread mraible
I agree that MenuContextListener is the best way to use Struts Menu in a non-Struts 1.x environment. Matt Lead (and only) developer on Struts Menu ;-) Al Sutton-4 wrote: 1) I use the MenuContextListener 2) I use static menus, but I believe there is something in the struts-menu FAQ that

Re: Starting of Tomcat failed, the server port 8084 is already in use.

2007-09-24 Thread Piero Sartini
Starting server Bundled Tomcat (5.5.17) Starting of Tomcat failed, the server port 8084 is already in use. ... please give me suggestions,how i can run my program. If there are errors when running tomcat (eg. not enough PermGen space / Out of Memory) netbeans 5.5.x cannot control it anymore.

Issue using Struts2's i18n interceptor and Spring actions

2007-09-24 Thread DPiedrah
Hi all, New to Struts2 (2.0.9) and testing out the Struts2 + Spring 2 + JPA + AJAX tutorial found here: http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html I got it to work just fine out of the box but then I tried to add localization to it by adding the intereceptor-ref tag

Re: Issue using Struts2's i18n interceptor and Spring actions

2007-09-24 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: s:textfield id=firstName label=%{getText('firstname')} name=person.firstName/ And the only thing that comes up is 'firstname' when in fact the value should be 'First Name' as it is in the appropriate properties file which resides in

Re: Issue using Struts2's i18n interceptor and Spring actions

2007-09-24 Thread DPiedrah
Hi Dave, The action is a Spring bean (implementing com.opensymphony.xwork2.Preparable) and the struts.objectFactory constant is set to spring. Is there a way to have Spring use ActionSupport for the execution of these classes so that getText becomes available? Also, would Struts2 AJAX Themes

Re: Issue using Struts2's i18n interceptor and Spring actions

2007-09-24 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: The action is a Spring bean (implementing com.opensymphony.xwork2.Preparable) and the struts.objectFactory constant is set to spring. Is there a way to have Spring use ActionSupport for the execution of these classes so that getText becomes available? Your

OGNL runtime viewer

2007-09-24 Thread stanlick
I remember a J1 session on WebWork a couple years back where a command window was opened and commands were being entered to set/get values from the value stack as pages were transitioned. Does anyone know if this utility is still available in S2? It would sure be handy to have visual access to

Re: OGNL runtime viewer

2007-09-24 Thread Dave Newton
http://struts.apache.org/2.x/docs/debugginginterceptor.html http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.html --- stanlick [EMAIL PROTECTED] wrote: I remember a J1 session on WebWork a couple years back where a command window

RE: OGNL runtime viewer

2007-09-24 Thread Wesley Wannemacher
Scott, Are you looking for the debug console? Try adding ?debug=console to your request. -Wes -Original Message- From: stanlick [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 2:55 PM To: user@struts.apache.org Subject: OGNL runtime viewer I remember a J1

Re: Spring tutorial

2007-09-24 Thread Leena Borle
Hi, Using a Spring JDBC Template in struts 2 is fairly simple. You can take a look at this article, http://cwiki.apache.org/WW/spring.html and also, Part-3 Ch.11 of Spring Reference manual. I have used it and I like it because you really don't have to worry about DB

Re: OGNL runtime viewer

2007-09-24 Thread Musachy Barroso
by the way, there is a new option to the debug interceptor. If you set debug=browser (by default the root object will be #context, which can be changed setting object=value) you will be able to browse the values in the context. (again, 2.1 only) musachy On 9/24/07, Wesley Wannemacher [EMAIL

Re: Issue using Struts2's i18n interceptor and Spring actions

2007-09-24 Thread DPiedrah
OK, I've extended my action class with ActionSupport...still does not work. Does that mean I can't have my action class be a simple POJO wired using Spring and use Struts2 i18n features? I'm also curious as to why the addition of interceptor-ref name=i18n/ in the action mapping would cause the

Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Cory D. Wiles
What is considered the best practice for accessing request parameters inside of an action? For example if I have a URL: steptwo.action?previousaction=index.action then how do I access previous action? Thanks, Cory

Re: Issue using Struts2's i18n interceptor and Spring actions

2007-09-24 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: OK, I've extended my action class with ActionSupport...still does not work. Not sure why that wouldn't work, and can't test now :/ I'd double-check my property files first, though. Does that mean I can't have my action class be a simple POJO wired using Spring

RE: Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Wesley Wannemacher
Make sure that the class that you have mapped to 'steptwo' has a getter/setter for previousaction Then, in your execute method (or whichever method you may have mapped in your struts.xml file), you should be able to retrieve the values because the setter(s) are called beforehand. There are a

Breadcrumbs

2007-09-24 Thread stanlick
I am writing a Breadcrumbs utility and have a question about how to easily get the current request in a format that could be wrapped in an URL. Is there a quick way to do this given a TilesRequestContext reference? Scott -- View this message in context:

Re: Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Cory D. Wiles
Thank you for the quick response. What is the purpose of implementing the Parameters Interceptor then? http://struts.apache.org/2.x/docs/how-can-we-access-request-parameters-passed-into-an-action.html Map parameters = this.getParameters(); Thanks, Cory On 9/24/07, Wesley Wannemacher [EMAIL

Re: OGNL runtime viewer

2007-09-24 Thread stanlick
We are getting warm! I am now seeing the Welcome to the OGNL console! window but do not see any way to enter commands. Come to think of it, I'm not sure what command I would send it if it were input capable! Scott newton.dave wrote:

RE: Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Wesley Wannemacher
I haven't used it, so I could be wrong, but I would imagine that there are instances where you don't want to have a getter/setter for each parameter. Such as when you may be creating parameters on the fly based on some other criteria. Most of the time, you should be able to stick to the

Re: Accessing Request Parameters from Action (Newbie Question)

2007-09-24 Thread Cory D. Wiles
That sounds pretty logical. Thanks for the tip. -Cory On 9/24/07, Wesley Wannemacher [EMAIL PROTECTED] wrote: I haven't used it, so I could be wrong, but I would imagine that there are instances where you don't want to have a getter/setter for each parameter. Such as when you may be

Re: Newbie question about parameters for an Action

2007-09-24 Thread Phil404
I think I found the source of this issue. The struts-plugin.xml for the JFreeChart plugin is as follows: struts package name=jfreechart-default result-types result-type name=chart class=org.apache.struts2.dispatcher.ChartResult 150

[S2] - How to populate select box contents from initial selection?

2007-09-24 Thread Hodgins, Grant
Hi, I have two select boxes and I was wondering if anyone has a working example of populating a second select box from the selection of the first using AJAX? Thanks in advance! -Grant Notice Regarding Confidentiality This email, including any and all attachments, (this Email) is

Add style such as bgcolor, height, width to s:optiontransferselect, s:form Tags

2007-09-24 Thread Emi Lu
Hello, May I know how to give style such as border color, bgcolor to s:optiontransferselect, s:form tags please? Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Older versions' cancel tag and security

2007-09-24 Thread Tehmina Beg
Hi, in the older versions 1.0 - 1.2.8 (i think), there was a security issue with the cancel key request parameter being able to be spoofed. I'm not sure I understand how this works, so please correct me if i'm wrong. Say you have a page with a single field and submit, if you set the cancel

img tag?

2007-09-24 Thread Adam Hardy
Is there a struts2 non-OGNL equivalent to the old html:img taglib? Or do I have to use c:url with pure HTML? c:url var=folder_shut value=/images/folder_shut.png/ img src=${folder_shut} alt=alt text/ - To unsubscribe, e-mail:

Re: [S2] - How to populate select box contents from initial selection?

2007-09-24 Thread Musachy Barroso
There is one example on the showcase application, on the ajax-autocompleter section. regards musachy On 9/24/07, Hodgins, Grant [EMAIL PROTECTED] wrote: Hi, I have two select boxes and I was wondering if anyone has a working example of populating a second select box from the selection of

Re: [S2] - How to populate select box contents from initial selection?

2007-09-24 Thread Martin Gainty
http://www.omnytex.com/articles/xhrstruts/ M- - Original Message - From: Hodgins, Grant [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, September 24, 2007 4:38 PM Subject: [S2] - How to populate select box contents from initial selection? Hi, I have

Re: Bug in scenario

2007-09-24 Thread stanlick
That is correct! On 9/24/07, Dave Newton [EMAIL PROTECTED] wrote: I think the OP's issue is that there's a difference between XWork object creation (it will create an Action property if configured to) and ModelDriven (won't). d. --- Ian Roughley [EMAIL PROTECTED] wrote: This is the

[S2] 404 handling

2007-09-24 Thread Kevin Lawrence
Went live today with a Japanese translation of the site. Thanks to the struts and tiles developers for making it so easy! I have some questions though: 1. I have found that using struts tags in error.jsp or error404.jsp in tomcat does not work because the value stack is not initialized so I

dynamicaly radio buttons from database, please help me

2007-09-24 Thread A. Lotfi
Hi, I am using struts1.3.8 I just want when the user click in a link (SurveyAction.do) , he will be presented with a form : ID Title -- O smal O medium O hight ID Title -- O smal O medium O hight

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

2007-09-24 Thread Jason Wyatt
That's sounds great Musachy, where would I put this setting? Also, what version of Struts is this available in? It would be great if it was mentioned in the Performance Tuning page. http://cwiki.apache.org/WW/performance-tuning.html Thanks, Jason -Original Message- From: Musachy

[OT] Re: dynamicaly radio buttons from database, please help me

2007-09-24 Thread Dave Newton
--- A. Lotfi [EMAIL PROTECTED] wrote: 1) How to create the data radio buttons in the database table? Are you asking what SQL to use to create the column that represents the radio button choice? d. - To unsubscribe, e-mail:

Re: [OT] Re: dynamicaly radio buttons from database, please help me

2007-09-24 Thread A. Lotfi
what I am asking is : ID is a number. Title is a string. How about the group radio buttons ? Dave Newton [EMAIL PROTECTED] wrote: --- A. Lotfi wrote: 1) How to create the data radio buttons in the database table? Are you asking what SQL to use to create the column that

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

2007-09-24 Thread Don Brown
Hmm...more info can be found here: http://dojo.jot.com/FAQ#Performance I wonder if we should require the cache=true flag when not in devmode, or at least throw all sorts of warnings in the logs. We should do everything possible to help the user avoid huge performance problems, and I'd certainly

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

2007-09-24 Thread Don Brown
Where is this cache=true flag documented? Does it require a manually-build dojo file? If so, could we automate that somehow? We could do something like keep track of what dojo tags have been used, then build a new single dojo file as needed. Don On 9/24/07, Musachy Barroso [EMAIL PROTECTED]

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

2007-09-24 Thread James Holmes
+1 -Original Message- From: Don Brown [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 9:39 PM To: Struts Users Mailing List Subject: Re: [s2] Struts head tag KILLS ( 10s) page load time Hmm...more info can be found here: http://dojo.jot.com/FAQ#Performance I wonder if we

Re: [OT] Re: dynamicaly radio buttons from database, please help me

2007-09-24 Thread Dave Newton
--- A. Lotfi [EMAIL PROTECTED] wrote: what I am asking is : ID is a number. Title is a string. How about the group radio buttons ? Whatever you want them to be, and it can depend on what DB you're using. d. - To

Re: img tag?

2007-09-24 Thread Boon Leng
Yes, you need to use pure HTML. You can use jsp tag file to create something similar to html:img (this is what i did). Adam Hardy-3 wrote: Is there a struts2 non-OGNL equivalent to the old html:img taglib? Or do I have to use c:url with pure HTML? c:url var=folder_shut

Re: Add style such as bgcolor, height, width to s:optiontransferselect, s:form Tags

2007-09-24 Thread Boon Leng
You can set the attribute cssClass, cssStyle, doubleCssClass, doubleCssStyle which is equivalent to html class and style attributes to control the style. Example: style .mystyle { background-color: #00F; } /style s:form cssStyle=border: 1px solid #F00 cssClass=mystyle Emi Lu-2 wrote:

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

2007-09-24 Thread Musachy Barroso
The cache attribute is available on 2.1, and is documented on the head tag: http://struts.apache.org/2.x/docs/dojo-head.html We could definitely make it a default, which it isn't now. The issue to automate the custom profile build is here: https://issues.apache.org/struts/browse/WW-2131 right

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

2007-09-24 Thread Don Brown
Oh, ok, so this is something that we can do once and every user doesn't have to do it manually for their application? Then yes, let's make the cache flag true by default. If the user wants to trim down the profile, they can, but at least they'll get way better performance out of the box. Don