Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread Lukasz Lenart
Hi, > This also works on my end *BUT* the Date in part of an Object (not a field) Could you show your configuration? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: validation and action names with slashes

2008-06-23 Thread Jeromy Evans
Roberto Nunnari wrote: Jeromy Evans wrote: Roberto Nunnari wrote: This is what I intend to do. At the moment the CodeBehind/Convention plugin estimates the name of view candidates (eg. package-action-result.jsp) This change would just need to extend that to check if a tile exists with that

Simple Theme - Internationalization problem

2008-06-23 Thread Narayana S
Hi, i am applying simple theme for my struts 2 page, when the theme is default it could read values from resource bundle, after i changed theme to simple, it couldn't read the values from the resource bundle. --- This is how i am creating the form. am i missing any thing? please help

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
I did what I should have done in the first place and looked it up: Form.submit() is specified to *not* call the onsubmit handler, so this is the correct behaviour (and should be consistent across all browsers). When in doubt, check the documentation :-) L. cacodemon79 wrote: Bingo! Now it wo

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread xianwinwin
This also works on my end *BUT* the Date in part of an Object (not a field) so I have Employee empl; with Date dob, thank you Lukasz Lenart wrote: > >> I did, and it doesn't work, when I click submit, I immediately get a red >> message next to the required fields...but not next to the dat

Re: Struts2 Jar on JBoss

2008-06-23 Thread Musachy Barroso
Yes, that's what I meant, but not what I said, that happens when there is too much multitasking going on :) musachy On Mon, Jun 23, 2008 at 5:47 PM, Hernandez, David <[EMAIL PROTECTED]> wrote: > That's not the case. If the jar isn't present then the deployment fails upon > reading struts.xml bec

Re: Struts2 Jar on JBoss

2008-06-23 Thread Hernandez, David
That's not the case. If the jar isn't present then the deployment fails upon reading struts.xml because the FilterDispatcher cannot be found. The classes are being loaded from the jar however it's not looking in the jar for the TLD. Regards, --Original Message-- From: Musachy Barroso To:

Re: Struts2 Jar on JBoss

2008-06-23 Thread Musachy Barroso
The taglib is in core, so somehow it is not finding struts-core jar. musachy On Mon, Jun 23, 2008 at 5:15 PM, Hernandez, David <[EMAIL PROTECTED]> wrote: > Hey Guys, > > I'm trying to deploy several apps built with Struts2 that share a common > lib directory. I'm running on JBoss. If I put all th

Struts2 Jar on JBoss

2008-06-23 Thread Hernandez, David
Hey Guys, I'm trying to deploy several apps built with Struts2 that share a common lib directory. I'm running on JBoss. If I put all the jar's in the server lib directory everything compiles and deploys fine. If I go to an action it is executed, but when it attempts to read the jsp it fails to fin

Re: validation and action names with slashes

2008-06-23 Thread Roberto Nunnari
Jeromy Evans wrote: Roberto Nunnari wrote: Maybe the convention plugin should look into the tiles.xml file, or check to see if the tiles plugin or tiles listener are in the game.. Most probably, the definition names in tiles.xml should follow the conventions, so that This is what I intend to

Grabbing the "current" Result

2008-06-23 Thread Asleson, Ryan
Hello, Is there a way to grab the current Result object after an Action method has been executed? I want to write an PreResultListener that checks the current Result and performs actions based on the Result. I see that the ActionInvocation that's passed into the beforeResult method has a g

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, 2008/6/23 cacodemon79 <[EMAIL PROTECTED]>: > > Bingo! > Now it works! > Thanks a lot. > However i can't understand why the onsubmit handler is not triggered by the > submit() function! > Maybe it depends on Web Browser, did you try with others? Regards -- Lukasz http://www.lenart.org.pl/

Re: [S2] attempts to access www.opensymphony.com on Struts startup???

2008-06-23 Thread Pierre Thibaudeau
Thank you, Dave! I had no problem checking out the source. Now whether I'll have time to delve into its depths to unlock this mysterious online-connect-on-startup is another matter... 2008/6/23 Dave Newton <[EMAIL PROTECTED]>: > --- On Mon, 6/23/08, Dave Newton <[EMAIL PROTECTED]> wrote: > > htt

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
Bingo! Now it works! Thanks a lot. However i can't understand why the onsubmit handler is not triggered by the submit() function! Laurie Harper wrote: > > Did you confirm whether calling the form's submit() method triggers its > onsubmit handler? It may be that calling submit() bypasses it, in

Re: Struts Themes Problem - help

2008-06-23 Thread Laurie Harper
Narayana S wrote: Hi Dave, thanks for your reply, but when i use simple theme, my application is not getting any values from resource bundle.. How is it failing? Note that the 'simple' theme generates a lot less markup, and doesn't generate everything the other themes do. Are I18N resou

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
Did you confirm whether calling the form's submit() method triggers its onsubmit handler? It may be that calling submit() bypasses it, in which case an explicit guard in your submit function might do the trick: function submitRegistrazioneUtenteForm(nomeForm){ var form = ...; if (validateRe

Re: Closing tag for html:hidden

2008-06-23 Thread Antonio Petrelli
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > A tile definition. I've tried a few combinations, but none is working. For > example if I use > > path="/home" > type="be.fedict.etendering.web.actions.common.HomeAction"> > > > > I get no exception b

RE: Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Asleson, Ryan
Thank you for your thoughts! Our model is to use one Action per JSP. So, for example, if a JSP has Add and Remove buttons, the Action has corresponding add() and remove() methods. We use this model because it cuts down on the proliferation of Action classes. Yes, Preparable is nice because it

Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
> A beta version of firebug does work with 3.0 : > http://getfirebug.com/releases/index.html Thanks! -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Dale Newfield
Lukasz Lenart wrote: Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? A beta version of firebug does work with 3.0 : http://getfirebug.com/releases/index.html -Dale - To unsubscr

Setting Dynamic Session Param in struts.xml

2008-06-23 Thread John Smith
Hello, Is it possible to do something like the below in struts.xml to access session object that have previously been set? true ${myId} output.jsp thanks, j - To unsubscribe

Re: struts2: render JSP from action class

2008-06-23 Thread Esteve Camps Chust
He, it worked Jeromy. Thanks you very much for this solution. Esteve 2008/6/23 Jeromy Evans <[EMAIL PROTECTED]>: > Esteve Camps Chust wrote: > >> The problem is "renderJSP" method, so it constructs a customized JSP with >> username data. For example, "renderJSP" should return something like:

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread Lukasz Lenart
> I did, and it doesn't work, when I click submit, I immediately get a red > message next to the required fields...but not next to the date. That strange, I made a test and it works, I've annotated at setter level @RequiredFieldValidator(message = "Date is required") public Date getToday(

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
No suggestions? :( I also tried to use document.registrazioneUtenteForm.submit()") instead of eval("document."+nomeForm+".submit()") but the result is the same. The form is submitted but I can't see any javascript alerts. I can't understand where is the problem. I hope you can help me. Thanks.

Re: Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: What exactly is this "home"? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Aw: Re: minimal app server for embedded Struts1 or 2 solution

2008-06-23 Thread kindlerm
Scott, this is a little internal application which imports data from several systems into our CMS. We support a lot of these "importers". These run typically on dedicated machines and should be rapidly installable. If I would choose to make it a web application deployable on an application serv

Struts 2 links and Internet explorer problem

2008-06-23 Thread Milan Milanovic
Hi, I have one simple and stupid problem, but this problem is serious because users could be confused. For example, I defined following link in my jsp: http://www.nabble.com/Struts-2-links-and-Internet-explorer-problem-tp18071984p18071984.html Sent from the Struts - User mailing list archive at

Re: Closing tag for html:hidden

2008-06-23 Thread Antonio Petrelli
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > path="/home" > forward="home" /> What exactly is this "home"? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: minimal app server for embedded Struts1 or 2 solution

2008-06-23 Thread Al Sutton
Scott, Most customers don't want to know about or get involved in installing an appserver. The app my company produces has been sold for over 4 years, is purely web based, and started live as a JSP/.Servlet combo, and I beleive that less than 20% of sales have gone to companies who know what

Re: Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Antonio Petrelli wrote: 2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: One thing to note though is we're using xdoclet 1.2.3 to create struts-config.xml for us. As I understand this version of xdoclet supports up to struts 1.2.x. Could this be the culprit?

RE: Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Brad A Cupit
Asleson, Ryan wrote: > I'm familiar with the Struts 2 Preparable interface, but I don't > like this because prepare() is always called -- even on form posts Do you have one Action with two public methods that are called by Struts 2? For example view() and submit() methods? If that's the case, I ca

[s2] error nesting custom components

2008-06-23 Thread mdiazf
I'm getting a NullPointerException when I pass a custom component as a parameter to another custom component. The files are: test_fail.jsp (throws NPE): <%@ page contentType="text/html; charset=ISO-8859-1"%> <%@ taglib uri="/struts-tags" prefix="s"%> test_work.jsp (works ok): <%@

Re: Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: One thing to note though is we're using xdoclet 1.2.3 to create struts-config.xml for us. As I understand this version of xdoclet supports up to struts 1.2.x. Could this be the culprit? Probably. According to t

Re: Closing tag for html:hidden

2008-06-23 Thread Antonio Petrelli
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > One thing to note though is we're > using xdoclet 1.2.3 to > create struts-config.xml for us. As I understand this version of xdoclet > supports up to struts 1.2.x. > Could this be the culprit? Probably. According to the source file: http://svn

Re: Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: Caused by: java.lang.NullPointerException at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113) Mmm... Just a shot in the dark, did you put the commons-chain.jar

Re: minimal app server for embedded Struts1 or 2 solution

2008-06-23 Thread stanlick
This sounds a little suspicious! When you say " I cannot assume a Servlet container to be installed on machines my app will run on" what do you mean? I would hope you are planning to host this from a server someplace, right? Not sure about your environment, but you could always use an ISP to host

Re: Closing tag for html:hidden

2008-06-23 Thread Antonio Petrelli
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > Caused by: java.lang.NullPointerException > at > org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113) Mmm... Just a shot in the dark, did you put the commons-chain.jar in your classpath? Antonio -

Re: Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: Thanks for the info for the form tag. The problem is we use tiles, so html:xhtml is not really an option. Why? does not produce any markup code, only tells Struts tags to render in XHTML. Antonio ---

Re: Closing tag for html:hidden

2008-06-23 Thread Antonio Petrelli
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > Thanks for the info for the form tag. The problem is we use tiles, so > html:xhtml is not really an option. Why? does not produce any markup code, only tells Struts tags to render in XHTML. Antonio ---

Re: minimal app server for embedded Struts1 or 2 solution

2008-06-23 Thread Nils-Helge Garli Hegvik
I know of several projects using Jetty to embed and distribute their web applications. Jetty is easy to configureand embed (with xml or programatically). Take a look at http://docs.codehaus.org/display/JETTY/Embedding+Jetty to get started. Nils-H On Mon, Jun 23, 2008 at 2:08 PM, <[EMAIL PROTECTE

Re: Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: Notice that it doesn't close the tag properly like /> as required by xhtml. Is there a way to tell struts to close properly for xhtml or we have to upgrade? Use before the first tag of every JSP page. BTW I s

Re: Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Antonio Petrelli
2008/6/23 Asleson, Ryan <[EMAIL PROTECTED]>: > One thing we miss with from Tiles is the ability to back a JSP with a > Controller. The Controller guaranteed that whenever a JSP was rendered, > certain behavior was executed to prepare data for the JSP. For example, > the loading of data for drop-d

EJB3 dependancy injection on for WAS 6.1

2008-06-23 Thread Struts Two
I have modified the EJB3 plugin(interceptor) to inject Local EJB3 beans into you action classes for Websphere V6.1 and it is working great. If anyone is interested in the code, let me know and I would send him/her the code. I was planning to send it to mailing list but my email is being rejected

Struts 2: Providing Tiles Controller-like Functionality

2008-06-23 Thread Asleson, Ryan
Hello, We're moving from a Struts 1.x with Tiles development model to Struts 2 and Sitemesh. One thing we miss with from Tiles is the ability to back a JSP with a Controller. The Controller guaranteed that whenever a JSP was rendered, certain behavior was executed to prepare data for the JSP

Re: Validation

2008-06-23 Thread Struts Two
Make sure your validation xml is named as  "ActionClass-alias-validation.xml", if you want to apply it only to one method in ur action class  Naming it as "Actionclass-validation.xml" would apply your validation to all methods in your action. __

Re: struts2: render JSP from action class

2008-06-23 Thread Jeromy Evans
Esteve Camps Chust wrote: The problem is "renderJSP" method, so it constructs a customized JSP with username data. For example, "renderJSP" should return something like: Welcome [EMAIL PROTECTED] this is a welcome email. Do this: http://freemarker.sourceforge.net/docs/pgui

Re: Closing tag for html:hidden

2008-06-23 Thread Antonio Petrelli
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > Notice that it doesn't close the tag properly like /> as required by xhtml. > Is there a way to tell struts to close properly for xhtml or we have to > upgrade? Use before the first tag of every JSP page. BTW I suggest to upgrade to Struts 1.

Re: struts2: render JSP from action class

2008-06-23 Thread Esteve Camps Chust
Ok. The subject: render a JSP/Freemaker/Velocity file in a Struts Action, to send an email. I mean, the "problem" is getting the HTML email body from an Action. The action skeleton would be: public void sendEmail extends ActionSupport { private String username; public String execute()

Re: [OT] What slows you down?

2008-06-23 Thread Greg Lindholm
Sorry, I don't understand your response. Was this about one of my questions or of list of "slows"? mgainty wrote: > > Greg- > > RhinoScript only works with JS files (not ftl or jsp) > > Your Best option is to configure in jspc task thru ant using the compiler > option > http://tomcat.apache.

Closing tag for html:hidden

2008-06-23 Thread Dimitris Mouchritsas
Hi all, We're using struts 1.2.4 in our project and we just noticed something; When rendering a element the html produced is: Notice that it doesn't close the tag properly like /> as required by xhtml. Is there a way to tell struts to close properly for xhtml or we have to upgrade? Thanks

Re: struts2: render JSP from action class

2008-06-23 Thread Dave Newton
--- On Mon, 6/23/08, Esteve Camps Chust <[EMAIL PROTECTED]> wrote: > May you help me once again and guide me on the code? I've been > trying to do what you said me, but I cann't get it run. What specifically are you having issues with? If it's FreeMarker issues you might have better luck on a mo

Re: struts2: render JSP from action class

2008-06-23 Thread Esteve Camps Chust
Thanks Martin, I have found some tricks in mailerReader, but not what I'm looking for. Jeromy, thanks for your suggestion. May you help me once again and guide me on the code? I've been trying to do what you said me, but I cann't get it run. Thanks again. Esteve 2008/6/23 Jeromy Evans <[EMAIL P

minimal app server for embedded Struts1 or 2 solution

2008-06-23 Thread kindlerm
Hi, I am currently working on a little application which needs a user interface for administration. I think an embedded app server with a Struts based application might be a good choice. But one big obstacle is in the way, I fear: the size of such a solution. What do you think is the minimal so

Re: s:submit name attribute problem

2008-06-23 Thread Lukasz Lenart
Hi, > Just look for source of your page and you will see why. If you want to use either method or action (not both), maybe it will be better to add hidden field? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe,

Re: [S2] attempts to access www.opensymphony.com on Struts startup???

2008-06-23 Thread Dave Newton
--- On Mon, 6/23/08, Dave Newton <[EMAIL PROTECTED]> wrote: > http://opensymphony.com/xwork/ > > See the "source repository" link. (Having said that, of course, I'm not able to check out the source from there. I was on Saturday, IIRC.) Dave

Re: [S2] attempts to access www.opensymphony.com on Struts startup???

2008-06-23 Thread Dave Newton
--- On Mon, 6/23/08, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > (Subsidiary question: where does one get hold of the source > code for com.opensymphony.xwork2? I briefly looked on opensymphony.com > and quickly got confused!) http://opensymphony.com/xwork/ See the "source repository" link.

s:submit name attribute problem

2008-06-23 Thread mjw_85uk
hi, i am having a problem with the name attribute of s:submit tag. I may be using it in the wrong context as i am farily new to Struts 2. My problem is that i want to set a property of a class with the value of the submit button, which i assume would be "submit". The problem is that the proper

Re: [S2] OGNL and enum

2008-06-23 Thread Pierre Thibaudeau
> You'll need to enable OGNL's access to static methods. > > struts.ognl.allowStaticMethodAccess=true > Ah, I didn't know that! > > I try not to use this myself. Instead I expose a property that provides > the values so it can sort, lookup I81N text, and minimize dependencies on > OGNL-specifi

Re: [S2] Validator Framework

2008-06-23 Thread Lukasz Lenart
Hi, Struts2 use XWork Validation Framework, so you can use it http://www.opensymphony.com/xwork/wikidocs/Validation%20Framework.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Special Characters in s:text tag

2008-06-23 Thread sudipto.dey
Hi, I am using the struts s:text tag to print a number of values from the stack. It was working fine untill I got the '[' and ']' characters in the stack and had to show these values. When we are trying to display the string it does not show the page. Please provide me some pointers so that I ca

Re: struts2: render JSP from action class

2008-06-23 Thread Jeromy Evans
Esteve Camps Chust wrote: hi all, this is my first email at struts list. I am a new user to struts2. I'm trying to get working the next scenario: having a mailer class, I want the message text be a rendered JSP. The action class calls a mailer class; this composes the mail from the rendering res

Re: my Own CSS

2008-06-23 Thread Jeromy Evans
Narayana S wrote: Hi, i used struts 2 default theme to develop the pages. but recently i got the CSS from the designer now i need to apply those styles to my project. the problem is when i change theme to simple, it is not letting me to read values from properties file(Resource bundle). ho

Re: [S2] OGNL and enum

2008-06-23 Thread Jeromy Evans
Pierre Thibaudeau wrote: It is possible to refer to an enum value within OGNL: [EMAIL PROTECTED]@MARS} But how can I refer to the collection of all the values of an enum? In Java, that would be: com.myapp.Planets.values() With OGNL, I tried the following without success: [EMAIL PROTECTED]@valu

my Own CSS

2008-06-23 Thread Narayana S
Hi, i used struts 2 default theme to develop the pages. but recently i got the CSS from the designer now i need to apply those styles to my project. the problem is when i change theme to simple, it is not letting me to read values from properties file(Resource bundle). how can i apply my own

[S2] OGNL and enum

2008-06-23 Thread Pierre Thibaudeau
It is possible to refer to an enum value within OGNL: [EMAIL PROTECTED]@MARS} But how can I refer to the collection of all the values of an enum? In Java, that would be: com.myapp.Planets.values() With OGNL, I tried the following without success: [EMAIL PROTECTED]@values()} [EMAIL PROTECTED]@val