RE: does not include parameter

2009-04-14 Thread Martin Gainty
Good Evening John i found this link helpful for explaining namespace and action resolution http://struts.apache.org/2.0.14/docs/namespace-configuration.html HTH Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / N

Re: sample CRUD application question

2009-04-14 Thread musomesa
Sorry i was not very clear: when you configure your application to allow the bang (!) notation, the client gets to choose *any* of the public methods on your action and use them as action methods as opposed to you listing what your action methods are explicitly. So?the developer has to be cautiou

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-14 Thread thanuja
Hi Nikhil, Thanks for the suggestion. I tried, but it is still not working. I am using struts tags and instead of . If my class structure was like the below one, then the values will be updated without any problem when the form submitted. The problem comes when I have two logic iterates(as shown

Re: EJB3 plugin struts2

2009-04-14 Thread Ignacio de Córdoba
Are you including the interceptor in your interceptor-stack? Stefano Tranquillini wrote: > > I'd try. > i've use the @InjectEJB(name="..") > > but the variable is null > > tomorrow i take a better look. > > thanks. > > anyway, i can use the ejb2 jndi method, works and no contradiction (or >

Re: EJB3 plugin struts2

2009-04-14 Thread Stefano Tranquillini
I'd try. i've use the @InjectEJB(name="..") but the variable is null tomorrow i take a better look. thanks. anyway, i can use the ejb2 jndi method, works and no contradiction (or not?) 2009/4/14 Ignacio de Córdoba : > > Hi there...just google "struts2 ejb3 plugin" > > In the 2 first links you'

Re: sample CRUD application question

2009-04-14 Thread Dave Newton
Bhaarat Sharma wrote: Again, for reference here is the link for the sample application wiki: http://struts.apache.org/2.0.14/docs/crud-demo-i.html In this sample there is a page called employee.jsp where there is a link for Edit. code is:

Re: does not include parameter

2009-04-14 Thread John Cartwright
OK, makes perfect sense now. Thanks to both Dave and Jeroen for your prompt replies! --john Dave Newton wrote: john.c.cartwri...@noaa.gov wrote: I'm trying to understand why the following does not produce a URL w/ the requested parameter appended. Can someone please help me? var url = "nam

Re: sample CRUD application question

2009-04-14 Thread Bhaarat Sharma
I will definitely look into that. I have another question regarding this same sample. Again, for reference here is the link for the sample application wiki: http://struts.apache.org/2.0.14/docs/crud-demo-i.html In this sample there is a page called employee.jsp where there is a link for Edit. co

Re: reference variable in struts 1 and 2

2009-04-14 Thread Dave Newton
john lee wrote: Yes, i need to further do variable processing at scriptlet(jsp) page, > the reason is to do different kind of summary etc... but how? can i still use Context...same as i did in Struct 1.X's example? You *could* put it in a scope (request, most likely) and retrieve it in a sc

Re: reference variable in struts 1 and 2

2009-04-14 Thread Wes Wannemacher
On Tuesday 14 April 2009 17:22:25 john lee wrote: > Yes, i need to further do variable processing at scriptlet(jsp) page, the > reason is to do different kind of summary etc... > but how? can i still use Context...same as i did in Struct 1.X's example? > > tks > > john > There is a way to g

Re: reference variable in struts 1 and 2

2009-04-14 Thread john lee
Yes, i need to further do variable processing at scriptlet(jsp) page, the reason is to do different kind of summary etc...   but how? can i still use Context...same as i did in Struct 1.X's example?   tks   john   --- On Tue, 4/14/09, Dave Newton wrote: From: Dave Newton Subject: Re: referen

Re: does not include parameter

2009-04-14 Thread Dave Newton
john.c.cartwri...@noaa.gov wrote: I'm trying to understand why the following does not produce a URL w/ the requested parameter appended. Can someone please help me? var url = "namespace="/secure/json">"; //produces '/scufn/secure/json/ListFeatures.action' You probably don't have an action pr

RE: reference variable in struts 1 and 2

2009-04-14 Thread john lee
i know   for further processing as the demo i show that i did in struts 1.X   john   --- On Tue, 4/14/09, Security Management wrote: From: Security Management Subject: RE: reference variable in struts 1 and 2 To: "'Struts Users Mailing List'" Date: Tuesday, April 14, 2009, 4:02 PM http://

Re: does not include parameter

2009-04-14 Thread Jeroen De Ridder
It's evaluating "ALL" as an OGNL expression, not a string literal. Use either name="status">ALL or name="status" value="'ALL'" /> (notice the extra single quotes in the second one). Hello All, I'm trying to understand why the following does not produce a URL w/ the requested parameter ap

Re: reference variable in struts 1 and 2

2009-04-14 Thread Dave Newton
Security Management wrote: http://struts.apache.org/2.1.6/docs/set.html AFAIK that doesn't make the variable available to scriptlets, which would be the equivalent of the OP's example. That said, @John, I'd question the need and/or wisdom of performing that kind of computation on the JSP pa

does not include parameter

2009-04-14 Thread John . C . Cartwright
Hello All, I'm trying to understand why the following does not produce a URL w/ the requested parameter appended. Can someone please help me? var url = ""; //produces '/scufn/secure/json/ListFeatures.action' Thanks! --john

RE: reference variable in struts 1 and 2

2009-04-14 Thread Security Management
http://struts.apache.org/2.1.6/docs/set.html -Original Message- From: john lee [mailto:sh_thorn_b...@yahoo.com] Sent: Tuesday, April 14, 2009 4:52 PM To: user@struts.apache.org Subject: reference variable in struts 1 and 2 in struts 1   if need to get variable from action, and do further

reference variable in struts 1 and 2

2009-04-14 Thread john lee
in struts 1   if need to get variable from action, and do further processing, could do following    <%   qty_available=((CartForm)pageContext.findAttribute("plist")).getQty_available();   ...    %>   but in struts 2    public class Cart {     int qty_available;  

RE: sample CRUD application question

2009-04-14 Thread Security Management
Spring Security is worth every minute of the learning curve, too. M. -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: Tuesday, April 14, 2009 2:08 PM To: Struts Users Mailing List Subject: Re: sample CRUD application question so what would be a way to avoid tha

Re: sample CRUD application question

2009-04-14 Thread Dave Newton
Bhaarat Sharma wrote: so what would be a way to avoid that? use this instead? I don't see any difference there. I'm not sure what the original response had in mind; the same thing could happen with a POST form. Normally one would check for delete access rights on the server si

Re: Issue with RequestAware

2009-04-14 Thread Dave Newton
sateesh_chand...@harvardpilgrim.org wrote: Here is the use case. It is for a small bi reports triggering application. On the screen 1, user makes a selection of what reports they want to run. Screen 2 will display the filters (could be text box, list box or a multi select list box) applicable

Re: sample CRUD application question

2009-04-14 Thread Bhaarat Sharma
so what would be a way to avoid that? use this instead? > > > On Tue, Apr 14, 2009 at 1:06 PM, wrote: > You might want to be cautious about that -- essentially you are allowing > the client by typing > a URL in their browser to delete material in your database in an adhoc > fashio

RE: Struts 2 Portlet - Intermittent Session Problems

2009-04-14 Thread Kofford, C Todd
Hi Nils, Well this issue cannot be reproduced on a consistent basis. I can do the same operation 4 times and 3 of the 4 times it works properly, but one time it doesn't and the session disappears. It's very random. One thing that might be noteworthy is that I have 2 portlets defined for the sa

Re: EJB3 plugin struts2

2009-04-14 Thread Ignacio de Córdoba
Hi there...just google "struts2 ejb3 plugin" In the 2 first links you'll find the plugin and the doc page about it. I personally use a the JBoss plugin, which includes a cache. I've extended it to do lookups annotated on parent classes. Try which ever fits you and write here abut any concrete pr

Re: sample CRUD application question

2009-04-14 Thread musomesa
You might want to be cautious about that -- essentially you are allowing the client by typing a URL in their browser to delete material in your database in an adhoc fashion. Chris M -Original Message- From: Bhaarat Sharma To: Struts Users Mailing List Sent: Tue, 14 Apr 2009 11:03

Re: Issue with RequestAware

2009-04-14 Thread Sateesh_Chandra2
Here is the use case. It is for a small bi reports triggering application. On the screen 1, user makes a selection of what reports they want to run. Screen 2 will display the filters (could be text box, list box or a multi select list box) applicable to the reports selected in the screen 1. Map

Re: Issue with RequestAware

2009-04-14 Thread Dave Newton
sateesh_chand...@harvardpilgrim.org wrote: Update. RequestAware seems to be working fine with regular dispatcher. We are seeing the issue when the result type is tiles. I'd wonder if there's another request being made from Tiles to get the tile contents. It's a pretty rare occasion I need to

Re: Issue with RequestAware

2009-04-14 Thread Sateesh_Chandra2
Update. RequestAware seems to be working fine with regular dispatcher. We are seeing the issue when the result type is tiles. Any thoughts? Regards Sateesh Sateesh Chandra2/CORP/HPHC 04/14/2009 12:37 PM To "Struts Users Mailing List" cc Subject Issue with RequestAware Hello, I have

Issue with RequestAware

2009-04-14 Thread Sateesh_Chandra2
Hello, I have a quick question regarding RequestAware interface. When implemented by an action class, what would be the contents of the Map? I am always seeing the following three. My expectation was, it would contain the input from JSP as well (like text from textbox, selection from a list box

Re: Validation - Simple Theme

2009-04-14 Thread Dave Newton
Andre L DINIZ-POLITEC wrote: How can I use the Struts validation approach using "simple" theme? The only issue is displaying field error messages. Checking for field error messages is as simple as checking the fieldErrors map for values using the field name as the key: OGNL is your friend.

Validation - Simple Theme

2009-04-14 Thread Andre L DINIZ-POLITEC
Hi Guys, How can I use the Struts validation approach using "simple" theme? Any sample? Thanks, André. - This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of

EJB3 plugin struts2

2009-04-14 Thread Stefano Tranquillini
Someone can explain me how to use (and find) the ejb3 plugin for sturts2? thanks folks -- Stefano - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: sample CRUD application question

2009-04-14 Thread Dave Newton
Bhaarat Sharma wrote: oh cool so i can just add method parameter myself. damn the shorthands. we need a wiki that explains all these There *is* a wiki that explains all these. See the "Dynamic Method Invocation" section: http://struts.apache.org/2.0.14/docs/action-configuration.html Dave -

Re: AJAX Theme - text fields side-by-side

2009-04-14 Thread Musachy Barroso
You can extend one of the themes, or use the simple theme(very close to plain html). There is no way to create a layout that will fit all possible designs. regards musachy On Tue, Apr 14, 2009 at 10:32 AM, Andre L DINIZ-POLITEC wrote: > Hi All, > > I'd like to use the ajax theme to build my jsp

RE: AJAX Theme - text fields side-by-side

2009-04-14 Thread Security Management
I have a blog post about extending a theme, this is for making the checkboxlist a little prettier for the xhtml theme, but the idea should be the same: http://mikeski.net/site/node/16 Mike. -Original Message- From: Andre L DINIZ-POLITEC [mailto:andre.l.diniz-poli...@hsbcglt.com.br] Sent

Re: sample CRUD application question

2009-04-14 Thread Bhaarat Sharma
oh cool so i can just add method parameter myself. damn the shorthands. we need a wiki that explains all these On Tue, Apr 14, 2009 at 11:01 AM, Security Management < list-subscripti...@secmgmt.com> wrote: > I *think* it's the method name of the action? > > In other words, the equivilant of: >

RE: sample CRUD application question

2009-04-14 Thread Security Management
I *think* it's the method name of the action? In other words, the equivilant of: Mike. -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: Tuesday, April 14, 2009 10:55 AM To: Struts Users Mailing List Subject: sample CRUD application question I was loo

Re: sample CRUD application question

2009-04-14 Thread Wes Wannemacher
On Tuesday 14 April 2009 10:55:06 Bhaarat Sharma wrote: > > I am lost as to why > shouldnt the action be just "crud" what does the exclamation mark and > delete do?? is that a shorthand for something or is that just an action > name and if it is an action name then why is it not defined in struts.

sample CRUD application question

2009-04-14 Thread Bhaarat Sharma
I was looking at the CRUD sample application in struts2 http://struts.apache.org/2.0.14/docs/crud-demo-i.html in one of the jsp's they have this code and some part of the struts.xml is: index /WEB-INF/jsp/employeeForm.jsp

AJAX Theme - text fields side-by-side

2009-04-14 Thread Andre L DINIZ-POLITEC
Hi All, I'd like to use the ajax theme to build my jsp forms and use those smart features like validation, autocomplete, etc. The problem is: how can put my "textfields" side-by-side? I know that I can use "simple" theme, but many nice features will be disabled. I can't believe that I have to

RE: Removing the align="right" from tag

2009-04-14 Thread Ignacio de Córdoba
Hi again, I have successfully extended css_xhtml theme but I am having a problem form sx:submit. I specify struts.ui.theme=servengine in struts.properties and the new theme works OK (servengine y the name of my new theme) My problem is... sx:submit still uses ajax theme (I had to replace submit:f

Re: struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-14 Thread Eric Zhao
Turns out JQuery does Ajax much better, I suppose the struts2 team made a good decision to deprecate those ajax tags. If anyone ran into the same situation as myself, check out this youtube video for JQuery, took me just a few hours to work out the examples and solve my problem. I was clearly k

RE: Removing the align="right" from tag

2009-04-14 Thread Martin Gainty
applying the patch is easy..testing is non-trivial a very quick scan I did'nt see anything jump out with ftl ..the java classes have some possibly indeterminant results..testing all possible permutations is 'non-trivial' pls keep the list apprised on what works for your testcase Saludos Cordi

Re: Removing the align="right" from tag

2009-04-14 Thread Ignacio de Córdoba
Hi there, Maybe this helps someone else... I just solved my problem by unpacking struts2-core-2.1.6.jar and placing submit.ftl file in webapp dir /WEB-INF/classes/template/... commenting the following: <#--if parameters.align??> align="${parameters.align?html}"<#t/> (Lines 20->30) I noted

Re: Removing the align="right" from tag

2009-04-14 Thread Dave Newton
Ignacio de Córdoba wrote: Hi again Dave, I am using Struts 2.1.2 (I believe it is last public version). 2.1.2 was never a GA (IIRC); the latest version is 2.1.6. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.

Re: Removing the align="right" from tag

2009-04-14 Thread Ignacio de Córdoba
Hi again Dave, I am using Struts 2.1.2 (I believe it is last public version). I'll try to make that patch. Got a private message from other user with directions about which classes to check (SubmitTag, AbstractUITag and AbstractClosingTag)... anyway, I've never made such a patch so I'm sure I'll

Re: Removing the align="right" from tag

2009-04-14 Thread Dave Newton
Ignacio de Córdoba wrote: Thanks Dave, I did that (myClass) but the class is only added to the tag, not to the div enclosing it, which is the one that has that magnificent align parameter. I'm on my way extending css_xhtml them to try to solve this. I'll post about it here... Oh, right. Which

Re: Removing the align="right" from tag

2009-04-14 Thread Ignacio de Córdoba
Thanks Dave, I did that (myClass) but the class is only added to the tag, not to the div enclosing it, which is the one that has that magnificent align parameter. I'm on my way extending css_xhtml them to try to solve this. I'll post about it here... newton.dave wrote: > > > > Or you could a

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-14 Thread Dave Newton
Martin Gainty wrote: Original Op: feel free to ping me offline for specific details .. It's better to keep Struts-related topics on the mailing list/forum, that way everybody benefits. To quote from the JavaRanch FAQ: "The whole point of [it] is that the whole community can benefit from pub

Re: Removing the align="right" from tag

2009-04-14 Thread Dave Newton
Ignacio de Córdoba wrote: renders: As you see, enclosing the input tag has no class. Just "align" and "id" fields. To override that align i'll have to add a entry for every s:submit in my application. I don't know how to add a "class" to that div. Anyway, that would make me change all s:sub

Re: Removing the align="right" from tag

2009-04-14 Thread Paweł Wielgus
Hi Ignacio, it's pretty easy to overwrite s:submit, just follow the docs about that, also You can extract original s:submit ftl file from struts jar to see how it's made and what and where to make changes. Still what You have found looks like a bug. Best greetings, Paweł Wielgus. El día 14 de ab

RE: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-14 Thread Martin Gainty
Great Answer! Original Op: feel free to ping me offline for specific details .. Thanks Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you s

Re: Removing the align="right" from tag

2009-04-14 Thread Ignacio de Córdoba
Thanks for your reply... ... my tag: renders: As you see, enclosing the input tag has no class. Just "align" and "id" fields. To override that align i'll have to add a entry for every s:submit in my application. I don't know how to add a "class" to that div. Anyway, that would make me c

Re: Removing the align="right" from tag

2009-04-14 Thread Felipe Lorenz
You can change it by using CSS! 2009/4/14 Ignacio de Córdoba > > Hi there, > i am using css_xhtml them and renders all form elements quite ok but it > inserts a align="right" in the enclosing every submit button. > Is there anyway to remove that right alignment? I guess all this should be > a >

Removing the align="right" from tag

2009-04-14 Thread Ignacio de Córdoba
Hi there, i am using css_xhtml them and renders all form elements quite ok but it inserts a align="right" in the enclosing every submit button. Is there anyway to remove that right alignment? I guess all this should be a matter of css and not an alignment in the HTML code. Don't know if it is a b

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-14 Thread Terry Gardner
yes. On Apr 13, 2009, at 1:15 AM, 白鹏 wrote: Has anyone use the validation framework of struts 2.1.6?? ?? == terry.gard...@sun.com Blog: http://blogs.sun.com/terrygardner Blog: http://dtfar.blogspot.com Twitter: http://twitter.com/tgardner SLAMD: http://slamd2.dev.java.net Skype: Terry

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-14 Thread 白鹏
Oh , I have fixed it. :) The bug is in the login.jsp , I wrote .. *login.action is a Url .. So the client side validation did not work. * 2009/4/14 白鹏 > I try to use the validation framework in the *client side* But failed. > > It is a ' login' scenario. In the html source , I find > >

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-14 Thread 白鹏
I try to use the validation framework in the *client side* But failed. It is a ' login' scenario. In the html source , I find but there isn't the function *validateForm_login(); in the validation.js or utils.js. * The browser told me that there was something wrong with *the validateForm