Re: struts2 jsp s:set question

2008-07-16 Thread Lukasz Lenart
In struts1.x, there is tag like bean:define. Anything like in struts2? The problem is in OGNL, which is using ValueStack, it's totally separated from common request objects. I don't understand why you want to access variable in % % ? It's is good for constants and not for logic. As I show you,

Re: Submit a struts form using javascript

2008-07-16 Thread Lukasz Lenart
I am trying to submit two forms at once. Khe? As I know, it isn't possible. If you send them to the same action, just use one form for all the fields. If you send them to separated actions (different action attribute), you have to made two request at the same time, but there isn't something like

Re: struts menu problem

2008-07-16 Thread Lukasz Lenart
Try with other browser than IE, it looks like a common problem in IE with layering. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts menu problem

2008-07-16 Thread nauke .
Hi, Thanks for replying. It occurs in firefox too. the customer for this will predominantly use IE so will have to get it working for IE in the end anyway :( :( :( On Wed, Jul 16, 2008 at 4:04 PM, Lukasz Lenart [EMAIL PROTECTED] wrote: Try with other browser than IE, it looks like a common

[ANN] Struts 2.0.11.2 General Availability Release with Important Security Fix

2008-07-16 Thread Rene Gielen
Apache Struts 2.0.11.2 is now available from http://struts.apache.org/download.cgi#struts20112. This release is a fast track security fix release, including a security fixed version 2.0.5 of XWork, which corrects a serious vulnerability in ParametersInterceptor allowing malicious users to

Re: struts menu problem

2008-07-16 Thread Al Sutton
Have you looked at using the zindex property in your stylesheet? (http://www.w3schools.com/Css/pr_pos_z-index.asp) nauke. wrote: Hi, Thanks for replying. It occurs in firefox too. the customer for this will predominantly use IE so will have to get it working for IE in the end anyway :( :( :(

Re: Struts tags ID generation

2008-07-16 Thread Phan Le
What if I dont want to put Id at all and leave it blank? Cheers On 16/07/2008, at 3:49 PM, Wes Wannemacher wrote: Sure, specify your own id attribute... -Wes On Wed, 2008-07-16 at 15:45 +1000, Phan Le wrote: Thanks for the response Wes, I do use maven to build. Is there anyway that I can

Re: struts menu problem

2008-07-16 Thread Antonio Petrelli
2008/7/14 nauke. [EMAIL PROTECTED]: Hi! I'm using struts version 2.0.11. I am using struts menu, which works provided it is not on top of a table ... Please see screenshot of issue here: http://mytmpdir.googlepages.com/menu.jpg No idea how I can fix this! Does anyone? Probably you have

RE: struts menu problem

2008-07-16 Thread Jishnu Viswanath
Can you put the code some where, if you are using IE 6, it has a known problem with z-index attribute. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original

Re: 'include' struts.xml stuff is broken?

2008-07-16 Thread Gabriel Belingueres
In your struts-editevent.xml: http://pastebin.stonekeep.com/4956 action tags must be inside a package, and they are inside struts. See the http://struts.apache.org/dtds/struts-2.0.dtd file 2008/7/16 Dave Belfer-Shevett [EMAIL PROTECTED]: This seems like it should work, but I'm getting all sorts

autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Piotr Dzeviarylin
In the html form I have this tag: sx:autocompleter list={'apple','banana','grape','pear'} id=stnnzn name=name keyName=nameKey / It works fine but doesn't pass values to action name and nameKey properties. I test it in ie6 and everything is alright. Does anybody knows the problem?

Re: 'include' struts.xml stuff is broken?

2008-07-16 Thread Dave Newton
In addition to the other replies, I'll add my own. --- On Tue, 7/15/08, Dave Belfer-Shevett [EMAIL PROTECTED] wrote: [...] the documentation page for this, naturally, provides no examples of what the include file should look like. Naturally? Sniping aside: the include documentation [1]

RE: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jishnu Viswanath
I am not sure... Struts in turn uses dojo for its Ajax (it was .4) there are lot of issues with dojo and ff3. I am not sure because of this it's failing. Can you tell me what exactly it's the error, if you have firebug installed, tell is there any request in red? Regards, Jishnu Viswanath

Re: Struts tags ID generation

2008-07-16 Thread Dave Newton
--- On Wed, 7/16/08, Phan Le [EMAIL PROTECTED] wrote: What if I dont want to put Id at all and leave it blank? Modify the theme/template, I suppose [1, 2]? Is there any particular reason you don't want it to have an id? Dave [1] http://struts.apache.org/2.x/docs/themes-and-templates.html [2]

Re: struts2 validation

2008-07-16 Thread Pierrot52
Hi Nicole, This is an action class that does validation of two parameters: public class SignonAction extends ActionSupport { private String username; private String password; @Override public String execute() throws Exception { Map session = null; boolean

Re: Problem with s:set and s:if

2008-07-16 Thread Othon Reyes Sanchez
thanks!!!. that solved my problem On Sat, Jul 12, 2008 at 12:23 PM, Gabriel Belingueres [EMAIL PROTECTED] wrote: Looking at the docs: http://struts.apache.org/2.1.2/docs/ognl.html there is no #page notation when using struts taglibs, since they all use OGNL syntax. If you need to access a

Re: Struts tags ID generation

2008-07-16 Thread Phan Le
Thanks Dave. We want to have more control of when to throw in IDs and when NOT to throw in IDs. Basically, what we want is in the struts tags, if we specify id attribute, struts should render it, otherwise, dont put auto-generated ones in. Excessive IDs are a lot harder to maintain, and

Re: Struts tags ID generation

2008-07-16 Thread Dave Newton
--- On Wed, 7/16/08, Phan Le [EMAIL PROTECTED] wrote: Anyone know which Java class or place in the source code that the IDs are generated? It might be easier to modify the template(s) as I suggested earlier; extracting the existing templates and modifying/extending a theme is a simpler

RE: ActionSupport.input()-- what's it for?

2008-07-16 Thread Brad A Cupit
Tuesday, July 15, 2008 4:52 PM, Dave Newton wrote: It's the default implementation of a method designed for form input; validation is skipped by default. When you have an action implementing Prepareable it's a convenience, before annotation-based configuration you'd configure two action

Re: struts menu problem

2008-07-16 Thread Alberto A. Flores
This is clearly not a Struts2 question, but a Struts menu question (name is misleading since it can be used outside the context of struts. I'm using it like that). A few thought: - Have you checked the generated HTML code? - Have you checked the generated CSS? - If using velocity, have you

Fw: RE: ActionSupport.input()-- what's it for?

2008-07-16 Thread Dave Newton
Oops, meant to send this to the list. --- On Wed, 7/16/08, Brad A Cupit wrote: So, before annotation-based configuration, you'd setup action chaining to have it go from the input() method to the execute() method? No, you'd go to form display via input(), and submit to execute().

Re[2]: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Piotr Dzeviarylin
Yes, dojo in firefox3 works with bugs. Only loading dojo libs requires manually change some firefox defalt parameters and this a big problem for deploying web project with dojo running on ff3. I have firebug installed but it doesn't show any error. autocompleter simply doesn't pass it's values in

Re: 'include' struts.xml stuff is broken?

2008-07-16 Thread Dave Belfer-Shevett
On Wed, 16 Jul 2008, Dave Newton wrote: --- On Tue, 7/15/08, Dave Belfer-Shevett [EMAIL PROTECTED] wrote: [...] the documentation page for this, naturally, provides no examples of what the include file should look like. Naturally? Sniping aside: the include documentation [1] states the

RE: Re[2]: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jishnu Viswanath
Opera does not work with dojo, by the way try in safari can u see what is the generated code, I am using dojo 1, so had re written almost all the ftl's. Dojo uses a hidden field where we store the data. Check if it has given the proper name in generated code. Regards, Jishnu Viswanath Software

RE: RE: ActionSupport.input()-- what's it for?

2008-07-16 Thread Brad A Cupit
No, you'd go to form display via input(), and submit to execute(). Oh that makes perfect sense! Got it now. the input() method always skipped validation That makes sense too. The input method is listed in struts-default.xml as an excludeMethod for the validation interceptor. Even then, I

Re[4]: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Piotr Dzeviarylin
I've already check the generated code in firebug. Yes, hidden fields are in place. Here is html code: select dojoType=struts:ComboBox id=synnzn name=name keyName=nameKey initialValue=grape visibleDownArrow=true onblur=validate(this); option value=appleapple/option option

Re: 'include' struts.xml stuff is broken?

2008-07-16 Thread Dave Newton
--- On Wed, 7/16/08, Dave Belfer-Shevett [EMAIL PROTECTED] wrote: And was completely unmentioned in the document I was looking at: Sorry we didn't put it where you looked. In general I usually recommend looking at core documentation in addition to FAQs, it provides context for the more

Re[5]: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Piotr Dzeviarylin
I Think I find the bug. See here: input dojoattachpoint=comboBoxValue value= name=name tabindex=-1 style=display: none;/ input dojoattachpoint=comboBoxSelectionValue value= name=nameKey tabindex=-1 style=display: none;/ We don't have id param here, only name. And FF I think use

Re: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jeromy Evans
Piotr Dzeviarylin wrote: I Think I find the bug. See here: For the sake of completeness, does your form work in Firefox 2.x? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] good logging

2008-07-16 Thread Musachy Barroso
Every time I see this code in S2, it makes me laugh so I will share it here (DefaultActionInvocation.java): ... if (proxy == null) { gripe = Whoa! No ActionProxy instance found in current ActionInvocation. This is bad ... very bad; } else if (proxy.getConfig() == null) { gripe = Sheesh.

Can't access bean from jsp

2008-07-16 Thread holod
My task is: 1. Action PrepareLawDraft has private field LawDraft lawDraft ; it has public getter and setter. This action fills LawDraft object fields. 2.On ActionSupport.SUCCESS I go to processlaw.jsp On this jsp I want to output some fields of LawDraft and allow user to modify 3.Then user

Re: Can't access bean from jsp

2008-07-16 Thread Lukasz Lenart
s:form action=# method=post action is not the action attribute for particular form, but it's the name of the action in struts.xml, so you should put # in there. Could you post the whole stack trace? Regards -- Lukasz http://www.lenart.org.pl/

[S2] Jscalendar plugin does not work in S2.1.x

2008-07-16 Thread Giovanni Azua
hi, I followed the instructions here: http://code.google.com/p/struts2jscalendarplugin/wiki/FAQ but the jscalendar does not render ... is there anything extra to do when using with S2.1.x? is it confirmed to work/not work with that version? TIA, Giovanni

S2: /action/* - is it possible?

2008-07-16 Thread Paul Benedict
I've done *.do or /do/* in S1. Is it possible in S2 to map a URI fragment (not extension) to invoke the action? Can someone show me an example how? Paul

Re: S2: /action/* - is it possible?

2008-07-16 Thread Becky . L . O'Sullivan
It's possible - we're doing it: (Struts.xml) constant name=struts.enable.SlashesInActionNames value=true / ... action name=web** class=... ... /action We also noticed Struts accepts web.action or just web, so our URLs look like this http://ourdomain.com/web/path/to/an/xml/file -- web action

parameters from url

2008-07-16 Thread piltrafeta
hello, i have a jsp code like this: s:textfield name=myName key=myKey maxlength=12 s:param name=value value=%{#parameters.myParameter}/ s:param name=labelcolspan value=%{1} / s:param name=inputcolspan value=%{1} / /s:textfield myParameter is passed by url. If i execute this in tomcat(i've

Re: Struts tags ID generation

2008-07-16 Thread Wes Wannemacher
I took a quick look at the templates, and found that there is id generation logic in UIBean.java - http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java?view=markup So, forcing an element to not have an ID might be a bit tough. I still

RE: Re[5]: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jishnu Viswanath
I noticed that but I don't think id is a mandatory field... id is give for users to do manipulation on the widget, other wise it would be mandatory field. Any way did you check what is the value sending to server? I mean the HTTP header? Regards, Jishnu Viswanath Software Engineer

Re: Struts tags ID generation

2008-07-16 Thread Dave Newton
--- On Wed, 7/16/08, Wes Wannemacher [EMAIL PROTECTED] wrote: I still agree with Dave though, that creating a custom template is your best choice, it will require some decent freemarker skills though. It's more work than I thought originally; somehow in my head I was thinking Oh, just check to

RE: [OT] good logging

2008-07-16 Thread Jishnu Viswanath
That was funny, any way I checked the code. catch (Exception e) { String gripe = ; if (proxy == null) { gripe = Whoa! No ActionProxy instance found in current ActionInvocation. This is bad ... very bad; } else if (proxy.getConfig() ==

s:action/ and redirect problem

2008-07-16 Thread Griffith, Michael *
Hello All, I have a JSP that includes a struts action as such: ]--- begin edit.jsp ---[ %@ include file=../fragments/taglibs.jsp% link rel=stylesheet href=../css/datacall.css type=text/css s:action name=form executeResult=true flush=false ignoreContextParams=false/ ]--- end

RE: [S2] Jscalendar plugin does not work in S2.1.x

2008-07-16 Thread Giovanni Azua
Sorry, it does work, I did a mistake. Regards, Giovanni -Original Message- From: Giovanni Azua [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 6:12 PM To: Struts Users Mailing List Subject: [S2] Jscalendar plugin does not work in S2.1.x hi, I followed the instructions

RE: DateTimePicker

2008-07-16 Thread Giovanni Azua
http://issues.apache.org/struts/browse/WW-2353 -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 1:54 PM To: Struts Users Mailing List Subject: DateTimePicker Hello, I have several problems with DateTimePicker widget used for

RE: struts2 validation

2008-07-16 Thread Nicole Luneburg
Hi Pierre, Thanks for your code. Yes I did get it working with annotation, phew! Nicole -Original Message- From: Pierrot52 [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 July 2008 9:48 PM To: user@struts.apache.org Subject: Re: struts2 validation Hi Nicole, This is an action class

Re: struts menu problem

2008-07-16 Thread nauke .
Hi, Oops sorry wasn't aware of a struts menu mailing list. I will post there, thank you! On Wed, Jul 16, 2008 at 5:57 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/7/14 nauke. [EMAIL PROTECTED]: Hi! I'm using struts version 2.0.11. I am using struts menu, which works provided it

ExecAndWait (navigating back to the progress page)

2008-07-16 Thread Chase
I want my users to be able to leave the wait page and return. Can this be done, what is the best way? I've got two actions. ActionA displays a form and the form submits to ActionB. ActionB is using the ExecAndWait interceptor. Right now users have to resubmit the form to get back to their status

Re: [OT] What slows you down?

2008-07-16 Thread Piero Sartini
Am Freitag, 20. Juni 2008 13:43:00 schrieb Ted Husted: But why does web application still seem so difficult or so time-consuming? Are there time bandits that still suck days or weeks out of your development schedule? Are there time gremlins that nickel-and-dime you every hour of every day? Is

how to use logical operator in struts logic:equal

2008-07-16 Thread hmkmajeed
Hi All, I need to translate: if ( a == 'option1' || a == 'option2' ) to struts code I don't know how to put || or in logic:equal ?�?�?�? Thanks in advance -- View this message in context: