Re: WW-1677 not working (was Re: WW-167 )

2007-11-29 Thread Ted Husted
It's true that the inner text of the JSP tag is not rendering as the inner text of the HTML tag, and so I reopened the issue. If anyone had a patch, I'd be happy to apply it. -Ted. On Nov 28, 2007 11:36 PM, Eric Martin [EMAIL PROTECTED] wrote: Martin, Yes, there is a problem with the

Re: [OT] session state (was Re: Wizard like Screens)

2007-11-29 Thread Ted Husted
Just to emphasize what Jeromy is saying, the key words are scalable and cluster. In the case of an intranet application with a set user base that won't be clustered, *not* using session could be evil, since the alternatives tend to be more work to implement and maintain. In physics, we have very

Struts Context problem

2007-11-29 Thread jignesh(india)
Hi, I want to do something with urls generated by struts2. The situation like this My project name e.g XYZ if i use struts2 tags :- e.g s:form method=post theme=simple action=viewDetail.action /s:form and generated html by struts is something like form

Re: Getting context properties

2007-11-29 Thread Pablo Vázquez Blázquez
Please, it must be very simple but I´m not able to find the suitable classes which should contain that information. Regards. Pablo Vázquez Blázquez escribió: Hello, How can I red my application name and the actions' extension? For example:

Re: S2.1.1 question on validation ...

2007-11-29 Thread Giovanni Azua
hi, I managed to have it working with the following validation rule: validator type=required param name=fieldNameoutSamplePeriods/param messageAt least one Out of Sample Period must be provided/message /validator it displays the message under the s:fielderror/ entry but does not display a

adding validation leads to NullPointerException

2007-11-29 Thread Giovanni Azua
hi, I have a JSP (snippet below) that works fine without validation, I need to conditionally include certain fields, I prefer that to the other choice of having two different copies of slightly similar input form JSP that I will then have to keep in sync. Only when I add a validation xml

Re: Struts Context problem

2007-11-29 Thread Omkar Patil
Jignesh, XYZ seems to be the context root for your web application. Context root comes from application.xml of your application. Here is the snippet from application.xml module web web-urimyapp.war/web-uri context-rootXYZ/context-root /web /module If that's the case, then

Re: Getting context properties

2007-11-29 Thread Wes Wannemacher
I use 'request.getContextPath()' to get the app's name/path when I need it. I've never needed the extension though, so I can't help you there. -W On 11/29/07, Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: Please, it must be very simple but I´m not able to find the suitable classes which

Re: WW-167 not working

2007-11-29 Thread Alberto A. Flores
I apologize for sending the wrong Jira Issue reference. The correct one is as Martin stated (WW-1677, thanks Martin). And I agree with Martin, the body of the button tag is not properly built (when the s:submit type=button is used). I saw a new comment on Jira reflecting the reopened state of this

Re: Can struts2 tag embeded inside javascript

2007-11-29 Thread panpan
Thank you mgainty. It's really good to know that. I'll try it. mgainty wrote: an available option is to treat your content as Character Data script type=text/javascript /* ![CDATA[ */ // content goes here /* ]] */ /script Interestingly enough the JavascriptValidatorTag has a cdata

JSP EL on struts2 tags

2007-11-29 Thread Ing. Andrea Vettori
Hi, It's long time I was away from this list. I've found with big surprise that JSP EL is not available in JSP tags anymore. I've looked at the release notes and found it was because of a security problem similar to one I've discovered some time ago. What I haven't understand is : If in

Re: Getting context properties

2007-11-29 Thread Martin Gainty
Difficult to determine without looking at the code, web.xml, struts.xml and properties M-- - Original Message - From: Pablo Vázquez Blázquez [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, November 29, 2007 6:05 AM Subject: Re: Getting context

Re: [S2.1] problem ajax tag into a remote div

2007-11-29 Thread Musachy Barroso
Don't include it on the page that goes into the div. musachy On Nov 29, 2007 2:57 AM, Desbois Arnaud [EMAIL PROTECTED] wrote: When I put the sx:head/ tag into the included page, it work fine, but the dojo.js (564ko) is loaded twice (one for the sx:div and one for its content which contains

RE: [S2.1] problem ajax tag into a remote div

2007-11-29 Thread Desbois Arnaud
But in this case, the ajax tag don't work (I've the error message in the div: Error 404: SRVE0190E: file not found instead of the html tag) Do you have any idea or solution to solve my problem? (FYI, I use the Struts tiles plugin) Arnaud -Message d'origine- De : Musachy Barroso

Re: Getting context properties

2007-11-29 Thread Pablo Vázquez Blázquez
Thanks to all, what I want to read is StrutsConstants.STRUTS_ACTION_EXTENSION property. Pablo Vázquez Blázquez escribió: Please, it must be very simple but I´m not able to find the suitable classes which should contain that information. Regards. Pablo Vázquez Blázquez escribió: Hello,

Re: Getting context properties

2007-11-29 Thread Dave Newton
AFAIK this is not trivially available, although I haven't dug too deeply. Why do you want it? d. --- Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: Thanks to all, what I want to read is StrutsConstants.STRUTS_ACTION_EXTENSION property. Pablo Vázquez Blázquez escribió: Please, it

[s2] download 2.1?

2007-11-29 Thread tom` frost
This page shows a linke to download 2.1 http://struts.apache.org/2.x/ but then you are taken to a page where 2.0.11 is the newest version. Where can I download 2.1?

Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Robert Harrison
Dear All, I am working through Roughley's book (Struts-2.0.9) and am having trouble with the first example using annotations. The stack trace I get is: December 10, 2007 December 10, 2007 org.apache.maven.BuildFailureException: Compilation failure

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Dave Newton
\*Compilation\* failure? Did you import the annotation it's giving you the error for? web.xml won't affect compilation, but I don't understand why you don't have a mapping for the S2 dispatcher (does it default to /* or something? I'd map it explicitly anyway, if that's the case.) d. ---

Re: [s2] download 2.1?

2007-11-29 Thread Dave Newton
One of the people.apache.org/mumble... sites; it's been posted here before. Or run off of trunk. d. --- tom` frost [EMAIL PROTECTED] wrote: This page shows a linke to download 2.1 http://struts.apache.org/2.x/ but then you are taken to a page where 2.0.11 is the newest version.

Re: [s2] download 2.1?

2007-11-29 Thread tom` frost
Surely that's not the way it supposed to work. On 11/29/07, Dave Newton [EMAIL PROTECTED] wrote: One of the people.apache.org/mumble... sites; it's been posted here before. Or run off of trunk. d. --- tom` frost [EMAIL PROTECTED] wrote: This page shows a linke to download 2.1

[S2] dojo plugin - I don't find the resources

2007-11-29 Thread greyshine
Hi out there, I am trying to get a little Ajax running w/ the S2. On the webpage: http://struts.apache.org/2.x/docs/ajax-tags.html it says: - include the Dojo Plugin distributed with Struts 2 in your /WEB-INF/lib folder. - Add %@ taglib prefix=sx uri=/struts-dojo-tags % to your page. - Include

Re: Getting context properties

2007-11-29 Thread Gary Affonso
Pablo Vázquez Blázquez wrote: Hello, How can I red my application name and the actions' extension? For example: http://localhost:8080/scheduler-admintool-1.0/Workspace.do I'd need a code to get scheduler-admintool-1.0 and do from the context. The first part (scheduler-admintool-1.0) should

Re: [s2] download 2.1?

2007-11-29 Thread Wendy Smoak
On Nov 29, 2007 10:16 AM, tom` frost [EMAIL PROTECTED] wrote: This page shows a linke to download 2.1 http://struts.apache.org/2.x/ but then you are taken to a page where 2.0.11 is the newest version. Where can I download 2.1? As far as I know, 2.1 has not yet been released. I searched

submit to a new page

2007-11-29 Thread Brian Relph
how would i submit a form to a new window? for links, i can set target=_blank, and then my result is in a popup. But, i have 3 submit buttons, 2 of which display things on the same page, and the last needs to be a popup. any suggestions?

Re: [s2] download 2.1?

2007-11-29 Thread Ted Husted
On the site, there is a link labeled Struts 2.x Draft Docs, which leads to http://struts.apache.org/2.x/;. This link is in the Development section of the menu, and it's intended for people who are collaborating on the next version of the framework. The other Struts 2 documentation links lead to

Re: [OT] session state (was Re: Wizard like Screens)

2007-11-29 Thread Gary Affonso
Jeromy, Ted... Thanks for the education. The Blog link Jeromy provided was a good read. And the blog comments (particularly the last one from gregjor) were even more educational. Even after reading a well-written blog titled The Session is Evil I'm now feeling better than ever about using

Re: Struts 2 tree tag question

2007-11-29 Thread akash agrawal
Hi John, Thanks for the insight. If you can share some code that will be helpful to understand how you used multibox tag. ( I haven't used multibox tag before). Thanks, -akash john feng [EMAIL PROTECTED] wrote: I have created tree that each node displays several attributes of an object, i.e.,

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Ian Roughley
This is chapter 3, right? I just ran the command mvn clean compile from my local copy and everything compiles correctly. Are you compiling from an IDE? If so, do you have all the JAR files in the project? /Ian -- Ian Roughley From Down Around, Inc. Consulting * Training / Mentoring *

RE: submit to a new page

2007-11-29 Thread Slattery, Tim - BLS
how would i submit a form to a new window? for links, i can set target=_blank, and then my result is in a popup. But, i have 3 submit buttons, 2 of which display things on the same page, and the last needs to be a popup. any suggestions? I think you'll need an onclick handler for the

Re: [s2] download 2.1?

2007-11-29 Thread Dave Newton
--- tom` frost [EMAIL PROTECTED] wrote: Surely that's not the way it supposed to work. Sometimes people make mistakes, and naming the link as being for 2.1 was one of them. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [S2] dojo plugin - I don't find the resources

2007-11-29 Thread Dave Newton
The docs regarding the sx prefix are for S2.1. d. --- greyshine [EMAIL PROTECTED] wrote: Hi out there, I am trying to get a little Ajax running w/ the S2. On the webpage: http://struts.apache.org/2.x/docs/ajax-tags.html it says: - include the Dojo Plugin distributed with Struts 2 in

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Robert Harrison
Ian/Dave, Thanks for the advice. I constructed the project from the command line using Maven2 (First time). My OS is Suse10.0. I have imported the project into Eclipse but I've just used the IDE for editing and hints and have still used the command line for compilation. The ZCAction.java

Re: Getting context properties

2007-11-29 Thread Gary Affonso
I knew I had interacted with the runtime configuration before. Just found the code... RuntimeConfiguration runtimeConfiguration = ConfigurationManager.getConfiguration().getRuntimeConfiguration(); ActionConfig actionConfig = runtimeConfiguration.getActionConfig(,

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Ian Roughley
Weird. I opened the ZCAction.java file, and I can see the imports right there :-) -- Ian Roughley From Down Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Robert Harrison wrote: Ian/Dave, Thanks for the

Getting Headers out of the ActionContext

2007-11-29 Thread Hernandez, David
Does anyone know the best way to get Header values out of the ActionContext? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not

Re: Getting Headers out of the ActionContext

2007-11-29 Thread Dave Newton
Cast to the underlying ServletActionContext and get them from the request? d. --- Hernandez, David [EMAIL PROTECTED] wrote: Does anyone know the best way to get Header values out of the ActionContext? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Dave Newton
If you Organize Importsed it may have removed the imports it couldn't find. I'd try using one of the Maven plugins and allowing Maven dependency management and either turning off automatic project building or set up appropriate output directories for all the relevant source directories. d. ---

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Robert Harrison
Okay. Problem solved. My confusion was that, in the book, the imports are not shown. Eclipse suggested the correct imports and, when included in the file, the file compiles. My error was in assuming that the filter in web.xmlwas all that was needed. Thanks. Bob On Nov 29, 2007 1:55 PM, Dave

Re: Getting context properties

2007-11-29 Thread Gary Affonso
Dave Newton wrote: Why do you want it? That's a good question for Dave to be asking. Even though you now know how to get it, are you really sure you want it? The framework shields you from this data for a reason. :-) - Gary

Download button logic:iterate

2007-11-29 Thread SandipGaikwad
please can anybody tell me how to use Download button functionality (DownloadAction) in logic:iterate of struts 1.2.9 -- View this message in context: http://www.nabble.com/Download-button-logic%3Aiterate-tf4901761.html#a14041195 Sent from the Struts - User mailing list archive at Nabble.com.

How to make Optiontransferselect Tag vertical in Struts2?

2007-11-29 Thread DJR
Optiontransferselect Tag in Struts2 usually looks like the image below: http://www.nabble.com/file/p14039295/optiontranshorizental.png But how can we make it vertical like the image below: http://www.nabble.com/file/p14039295/optiontransvertical.png -- View this message in context:

Re: How to make Optiontransferselect Tag vertical in Struts2?

2007-11-29 Thread Jeromy Evans
DJR wrote: Optiontransferselect Tag in Struts2 usually looks like the image below: http://www.nabble.com/file/p14039295/optiontranshorizental.png But how can we make it vertical like the image below: http://www.nabble.com/file/p14039295/optiontransvertical.png You'll need to override the

Re: [S2] Struts/JPA Design Practices

2007-11-29 Thread Ted Husted
On Nov 16, 2007 11:09 AM, Adam Hardy [EMAIL PROTECTED] wrote: To answer your question, I haven't had to do much to plug in OpenJPA and Struts2 together - in fact, I haven't had to do anything apart from decide whether I wanted to have a filter or a Struts2 interceptor or a Spring interceptor

S2 Jasper Reports plugin - exporter parameters

2007-11-29 Thread j alex
Hi, In my app, i need to override some Jasper Report exporter parameters' default only for certain actions. For example, i need to set : exporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,true); for a report where the data columns can be very long and need to break ; while this

Re: Struts 2 Session Timeout

2007-11-29 Thread j alex
Struts 2 (I think) will recreate your session when it times out. I assume that you mean Struts 2 will create a fresh session, but not have any values in it. Did you find why this is happening and any workaround ? - seems i'm facing the same issue. What's the best way to detect that the session

Re: adding validation leads to NullPointerException

2007-11-29 Thread j alex
From the code you've provided it's failing at request.getAttribute(buttonLabel).equals(Simulate)) Can you please specify how/where buttonLabel is set in the code. The only thing i can think of is that validation is stopping the flow to execute() and some variable set there may not be visible