Re: S2 Cannot get Submit button body to render as label...

2007-09-28 Thread Laurie Harper
Doh, my bad :-( I guess I was reading too fast (or with my eyes closed perhaps?...) Re-reading what you're doing, I'd say this is either a bug or a design limitation. It's probably worth a Jira ticket either way. L. billgloff wrote: Laurie, As you can see above in my sample code, I am

Re: Slow Web Page, Speed Up?

2007-09-28 Thread Oleg Mikheev
Brian Trzupek wrote: s:if test=%{(#isAdmin == true) or (#isScanner == true)} s:set name=isAdmin value=[EMAIL PROTECTED]@getRequest().isUserInRole('Administrator')}/ Both of the above constructs should execute in no time. I really think that there is something else that slows downs your

Re: OT, ajax form submission

2007-09-28 Thread Oleg Mikheev
Henry Park wrote: I could not get the packaged struts2 ajax implementation to work, so I am trying to go at it with plain javascript. I have Struts2 ajax working fine. What was the problem? - To unsubscribe, e-mail: [EMAIL

Mapping a jsp to an action

2007-09-28 Thread Jennie Moeller
Hi, I'm trying to map a jsp page to an action. When any jsp gets loaded with the recipe path on it I want it to go to an action. for example: This uri: recipes/4735/steak-with-barbecue-sauce.jsp I want it to hit my recipeDetails action My struts action looks like this: action

Map jsp to action class

2007-09-28 Thread Jennie Moeller
Hi, I'm trying to map a jsp page to an action. for example: This uri: recipes/4735/steak-with-barbecue-sauce.jsp I want it to hit my recipeDetails action My struts action looks like this: This e-mail (and any attachments) is confidential and may contain personal views which are not

Re: [ot] help on generics...

2007-09-28 Thread nicolas de loof
Thanks a lot for those detailed examples ! I don't want to setup a factory, but to expose internals as optional features : my class is a composite, with a map of features, where the key is the feature interface ( MapClass, Object) I'd like to get an optional feature using : Optional opt =

RE: struts 2.1 beta

2007-09-28 Thread Wesley Wannemacher
How are you trying to download/build the beta? Maven? What sort of problems are you having? Compile issues, deployment issues? Did you try the nightly build? If you are building from SVN using Maven, this might be helpful - http://www.nabble.com/struts-2.1-beta-tf4509951.html#a12880737

style display for html:text or any control

2007-09-28 Thread prem_gadgetquest
I have lots of control (textbox, combobox n all.) in my page..what I want is... when user logs in he shud be able to see contorls in editable format or noneditable format depending upon his role. Now in non struts ie. simple jsp page i wud hav done this way String jsEdit=;

autocompleter

2007-09-28 Thread meissa . sakho
I would like set an initial value and key to the autocompleter with one of the list elements. can someone tells if it's possible. Thanks. 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

Re: Struts Tag Question

2007-09-28 Thread Cory D. Wiles
This is how I do it: /* drugClassPropsSrv is my map */ s:if test=drugClassPropsSrvc.size 0 s:iterator value=%{drugClassPropsSrvc} id=prop tr th scope=rows:property value=#prop.key//th s:if test=#prop.value eq 'Yes'

Re: Slow Web Page, Speed Up?

2007-09-28 Thread Brian Trzupek
Martin, Our codebase is on 2.0.8 now (i know we need to upgrade asap) and we need ti finalize some other work (our real jobs) before we can run the regression tests (selenium, junit) against 2.0.9. We will know the answer to the 2.0.9 question by Monday is my guess. I will post when I

Re: autocompleter

2007-09-28 Thread Musachy Barroso
This was just fixed on trunk, see WW-2220. There will be a keyValue attribute to set the initial value of the key. The key attribute is something else, not related to the autocompleter's key musachy On 9/28/07, Giovanni Azua [EMAIL PROTECTED] wrote: Hi Meissa, Yep it is possible ... assuming

OGNL in JSP

2007-09-28 Thread stanlick
Hell, I give up! Can someone show me how to fetch the action context name off the value stack from inside a jsp? This works fine from an action but doesn't quite follow the java beans convention! invocation.getStack().findString(com.opensymphony.xwork2.ActionContext.name ) -- Scott [EMAIL

Re: Slow Web Page, Speed Up?

2007-09-28 Thread Brian Trzupek
Good idea. I sprinkled this in the page and slowly narrowed down the culprit. Drum roll please... It was the head theme=ajax tag. There is another long thread in this list on that topic entirely ( [s2] Struts head tag KILLS ( 10s) page load time ), but the short solution to my problem

Re: Breadcrumbs

2007-09-28 Thread stanlick
Thanks Brian -- I wanted it be automatic and work easily with Struts 2. After probing and searching, I realized there was no such animal so I wrote a plug-in. This was a testament to just how flexible the Struts 2 framework really is! I wrote a Bread Crumb interceptor with only a few lines of

RE: Mapping a jsp to an action

2007-09-28 Thread Jennie Moeller
Thank much Mark, I talked with a colleague and we're going to give the urlrewrite a try. Thanks! -Original Message- From: Mark McLaren [mailto:[EMAIL PROTECTED] Sent: 28 September 2007 12:02 To: Struts Users Mailing List Subject: Re: Mapping a jsp to an action Hi Jennie, I am fairly

Struts2 ... SecurePlugin?

2007-09-28 Thread Mufaddal Khumri
Hello, In Struts old we used to do this in struts.xml: !-- secure plugin -- plug-in className=org.apache.struts.action.SecurePlugIn set-property property=enable value=true/ set-property property=addSession value=true/ /plug-in What is the struts 2 way of securing your actions?

RE: [ot] help on generics...

2007-09-28 Thread Engelking, Nicholas
Unfortunately, the short answer is that you can't. The compiler will yell at you about class literals for generics because in Java they are implemented using erasure. This is in contrast to C# (which is where I first learned how to use generics) and annoys many people to no end. It was done to

Re: autocompleter

2007-09-28 Thread Giovanni Azua
Hi Meissa, Yep it is possible ... assuming you provide: s:autocompleter name=someProperty/ then include in the rendering Action associated to this JSP the following two bean property getters: // will provide the default display value that the user sees public String getSomeProperty() { //

Re: listen/notify Topics doubt

2007-09-28 Thread Pablo Vázquez Blázquez
Thank you very much! It works! Manu Mahajan escribió: Hi If you want to handle the before and after topics separately you can do something like this. Note I am publishing a separate topic for the form (submitForm) and then handling it using some javascript code s:div id=treeAndSelector

Struts Tag Question

2007-09-28 Thread Marco Carnevale
I have a java.util.Map in my action (value stack) and I simply want to print it's contents in an HTML table in my JSP showing the key value pairs. However, I am having an issue figuring out the proper syntax. My initial approach is to iterate over the Maps keys and then during each iteration,

struts 2.1 beta

2007-09-28 Thread meissa . sakho
I'm trying to download and build a beta release. I have lot of problems about that. Maybe someone has tried successfully. If so, can someone put it somewhere so that people (like me) can share it. Do we still have no date about a beta version upon 2.1 We have serious performance problems with

Re: Slow Web Page, Speed Up?

2007-09-28 Thread Martin Gainty
Brian Can you confirm this is a problem with Struts 2.0.9? https://issues.apache.org/struts/browse/WW-2182 Thanks/ Martin-- - Original Message - From: Brian Trzupek [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, September 28, 2007 7:48 AM Subject:

Re: Mapping a jsp to an action

2007-09-28 Thread Mark McLaren
Hi Jennie, I am fairly new to Struts 2 but you can certainly do action wildcard mappings with it, such as: action name=* result/{1}.jsp/result /action where foo.action would map to foo.jsp. However, my guess is that what you are asking for is a little bit more advanced (and judging by the

Re: style display for html:text or any control

2007-09-28 Thread Zarar Siddiqi
It's been a while since I've used Struts 1.x but did you try using c:set to set a variable and them dump it in cssStyle using ${} syntax? If not that, you could always add the CSS class to the input field using JavaScript. Zarar On 9/28/07, prem_gadgetquest [EMAIL PROTECTED] wrote: I have

Re: Mapping a jsp to an action

2007-09-28 Thread Zarar Siddiqi
Am I crazy or is Jennie using Struts 1.x and Mark just proposed a solution for 2.x? Jennie, your web.xml servler-mapping is overriding each other, you're first saying you want /*/*.jsp sent to action but then you're saying you want *.do's sent to action? I'm not too sure if that's valid. Have you

Re: OT, ajax form submission

2007-09-28 Thread Zarar Siddiqi
I really recommend using something like Prototype to do your Ajax stuff. There's no need to reinvent the wheel and introduce countless bugs in the process, Prototype is tested for all relevant browsers and it'll take you 10 minutes to do what you're trying to do if you use it:

Re: [ot] help on generics...

2007-09-28 Thread nicolas de loof
Thanks a lot. Nico. 2007/9/28, Engelking, Nicholas [EMAIL PROTECTED]: Unfortunately, the short answer is that you can't. The compiler will yell at you about class literals for generics because in Java they are implemented using erasure. This is in contrast to C# (which is where I first

Re: OGNL in JSP

2007-09-28 Thread Zarar Siddiqi
Did you know you have all the variables declared in this class as public static final at your disposal: http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_9/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java?revision=558805view=markup They include stackand ognl. Zarar

[S2] FTL Help - Access Properties

2007-09-28 Thread Hoying, Ken
I am new to FTL and need to access the my global properties from my resource bundle. In JSP, I would use the text tag (s:text name=myKey How do I accomplish this in FTL? Thanks in Advance! - ***Note:The information contained in this message may be

RE: [s1.35] Need help with Struts and Modules

2007-09-28 Thread Givler, Eric
Can anyone assist with this? -Original Message- From: Givler, Eric [mailto:[EMAIL PROTECTED] Sent: Saturday, September 22, 2007 1:25 AM To: user@struts.apache.org Subject: [s1.35] Need help with Struts and Modules Hello, Let me just say that I'm struggling at times writing my first

Re: [S2] FTL Help - Access Properties

2007-09-28 Thread Dave Newton
--- Hoying, Ken [EMAIL PROTECTED] wrote: In JSP, I would use the text tag (s:text name=myKey How do I accomplish this in FTL? Does @s.text name=myKey/ not work? http://struts.apache.org/2.x/docs/freemarker.html http://struts.apache.org/2.x/docs/freemarker-tags.html d.

Re: OGNL in JSP

2007-09-28 Thread stanlick
Yes, but how does solve this problem? On 9/28/07, Zarar Siddiqi [EMAIL PROTECTED] wrote: Did you know you have all the variables declared in this class as public static final at your disposal:

Re: Struts2 ... SecurePlugin?

2007-09-28 Thread Brian Trzupek
In your struts.xml for the action mapping add the roles interceptor as following. struts package name=email extends=default namespace=/email default-interceptor-ref name=crudStack/ !-- Users -- action name=list class=com.xxx.NotificationEmailAction method=list

complex tag nesting?

2007-09-28 Thread Dale Newfield
I'm pretty sure I remember someone asking this question before, but I was unable to find it either in my archives or in nabble... I basically want includeParams for a specific parameter, and I thought I could do it just by conditionally including the parameter like so: a href='s:url

Re: [S2] ScopedModelDriven issues [newbie]

2007-09-28 Thread ghodgins
Does anyone have a working example using the scopedModelDriven interceptor to work for a session bean? I've tried with the following: 1. define interceptor in struts.xml ... interceptors interceptor name=myForm

[S2.1] smarturls

2007-09-28 Thread Piero Sartini
Should smarturls 2.0.18 work with struts 2.1? I get the following error: Caused by: Unable to load bean: type:org.texturemedia.smarturls.ResultMapBuilder class:org.texturemedia.smarturls.DefaultResultMapBuilder - bean -

Re: Struts2 ... SecurePlugin?

2007-09-28 Thread Nuwan Chandrasoma
Hi, you can write your own interceptor., there was posting few months back regarding this. Thanks, Nuwan Mufaddal Khumri wrote: Hello, In Struts old we used to do this in struts.xml: !-- secure plugin -- plug-in className=org.apache.struts.action.SecurePlugIn set-property

how to avoid creating new Action class instance for every request in STRUTS2

2007-09-28 Thread Jose4u
implementation: I have .jsp in which i have two text box and a Add button. whenever i enter something in the two text box and click on Add button the values needs to be added to the html table which is right down the entry area with two text boxes. Whenver i Click on add i am calling a Action

Re: how to avoid creating new Action class instance for every request in STRUTS2

2007-09-28 Thread Chris Pratt
You're probably right, whenever the Action is created, it's initialized. In struts 1, since the Actions didn't go away, any data was retained. This was usually the source of many, many bugs. It's a very rare condition when you want the data from one invocation of the Action to carry forward to