Re: Access ApplicationResource from java code

2006-10-18 Thread ShiBing Chen
Actually you can do that in your action class with getText() methods. On 10/19/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi , I want to obtain the value of a key from ApplicationResource.properties file in my java code. Should i access the properties file directly or can i use some classes i

Access ApplicationResource from java code

2006-10-18 Thread Puneet Lakhina
Hi , I want to obtain the value of a key from ApplicationResource.properties file in my java code. Should i access the properties file directly or can i use some classes in the struts package to do the same?? -- Puneet

Struts2 Tiles Integration

2006-10-18 Thread Dean Crothers
Hi, I've got Struts 1 and Struts 2.0.1 working side by side, and have Tiles working with Struts 1. However, I cant get Tiiles to work with Struts 2. What I'd like to know is how do I configure Struts2 to find the tiles-def.xml? Heres what I have configured so far: org.apache.struts2.ti

Re: [s2] issue

2006-10-18 Thread Ted Husted
(ActionComponent.java:137) is writer.flush(); which implies a problem with the result rather than the action. Does the exception go away if executeResult is false? -Ted. On 10/18/06, Mark Menard <[EMAIL PROTECTED]> wrote: On 10/18/06 8:16 PM, "Ted Husted" <[EMAIL PROTECTED]> wrote: > If yo

Re: [s2] issue

2006-10-18 Thread Mark Menard
On 10/18/06 8:16 PM, "Ted Husted" <[EMAIL PROTECTED]> wrote: > If you are using the Menu action site-wide, you might want to put it > in the default "empty" namespace, which is always checked, so you > would not need to specify the namespace. > > * http://cwiki.apache.org/WW/namespace-configurati

RE: Cannot get errors to display to screen

2006-10-18 Thread Chetan Pandey
I have had this problem. Erroneous pages are validated. You are correctly diverted to the JSP Page where Errors occurred but you do not see the Errors. One Line simple Solution. Add somewhere in the JSP and they will start showing exactly at this point. Chetan -Original Message- Fro

[ANNOUNCE] Add Swap control between two list into JSControlsTags

2006-10-18 Thread Angelo zerr
Hello, I announce that there is a new Swap control between two list into JSControlsTags. This control is able to manage swap items between two list with 2 button >> << and/or with drag/drop. It's based on scriptaculous and prototype.js. You can found a demo of swap at http://jscontrolstags.source

Re: Struts2 Showcase Example and Eclipse

2006-10-18 Thread James Mitchell
Don't forget to add the profiles switch (-Papps,plugins) that will gen your eclipse files under apps and plugins... $ cd svn/struts/struts2 $ mvn eclipse:eclipse -Dwtpversion=1.0 -Papps,plugins -- James Mitchell 678.910.8017 On Oct 18, 2006, at 1:57 PM, Don Brown wrote: If you want

Re: [shale] extending clay

2006-10-18 Thread James Mitchell
Ha! Ya just had to throw that in didn't ya?!?! ;) -- James Mitchell 678.910.8017 On Oct 18, 2006, at 5:43 AM, Ted Husted wrote: Shale has its own list now: * http://shale.apache.org/mail-lists.html Along with a spiffy new logo :) -T. On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: MailReader Example Struts2

2006-10-18 Thread Ted Husted
The MailReader database is loaded through a listerner in the web.xml, which "injects" it into application scope. The data is not coming from the XML. The listerner parses the XML and creates a database object. The MailReader then addresses the database object, oblivious as to how it is loaded or w

Re: [s2] issue

2006-10-18 Thread Ted Husted
If you are using the Menu action site-wide, you might want to put it in the default "empty" namespace, which is always checked, so you would not need to specify the namespace. * http://cwiki.apache.org/WW/namespace-configuration.html -Ted. On 10/18/06, Mark Menard <[EMAIL PROTECTED]> wrote: I

Re: why hardcode the path of web.xml?

2006-10-18 Thread Jerome Gagner
If you are using the resin-specific configuration options, you should just separate that out into a resin-conf.xml. What larry said, why do you want to do that? On 10/18/06, Christopher Cheng <[EMAIL PROTECTED]> wrote: I am using version 1.3.5 and found out that that path of web.xml is hard co

Re: Cannot get errors to display to screen

2006-10-18 Thread Niall Pemberton
You should see something - probably an error - have you checked the logs? Also have you configured your message resources in the struts-config.xml? Also, you're "resolving the message" in your action - theres no need to do that, thats what the tag does (and ), so you should have something like

Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Niall Pemberton
On 10/18/06, Michael Rush <[EMAIL PROTECTED]> wrote: > > ... > > ... > Related to this, is there a way to specify the tiles-defs file to use? For example, my application has 3 modules, each with its own tiles-defs file. In the normal way - using the tiles plugin in your

[s2] issue

2006-10-18 Thread Mark Menard
I have an action /quadran/menu/menu.action that I can go to directly. I want to include this in my site wide template using . I've put the following in my JSP to include the action: This throws the following exception: java.lang.NullPointerException at org.apache.struts2.components.Act

MailReader Example Struts2

2006-10-18 Thread Jim Reynolds
I am trying to figure out how Struts2 works, so I am going through the docs at and walking the code. Problem: I cannot figure out how the Welcome.java which subclasses MailreaderSupport gets the data to and from the xml? I see the datab

Re: Struts & Workflow

2006-10-18 Thread Rahul Akolkar
On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: Struts 2 doesn't have a specific workflow engine built in, per se, but you do have several options: 1. Spring's Web Flow 2. Continuations And then there is Commons SCXML [1], which is a generic state machine / workflow engine that can tie in

Re: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Don Brown
If you want to tweak the showcase app, the easiest way to run it is from the source code. In the source distribution of 2.0.1 or a checked out trunk, change to the apps/showcase directory. From there, you can run the eclipse and jetty maven plugins. Don On 10/18/06, Jim Reynolds <[EMAIL PROTEC

Re: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Ted Husted
The Maven command reads the pom.xml files to obtain the dependencies and basic project structure. I don't think there are POM files in the exploded WAR, so you would have to work from the source distribution or checkout. Starting from the root of the struts2 source distribution (you see all folde

RE: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Wesslan
Maybe I should add that the excellent Maven has support for creating project-files for IDEA IntelliJ also. Cheers, Peter -Original Message- From: Wesslan [mailto:[EMAIL PROTECTED] Sent: den 18 oktober 2006 20:02 To: 'Struts Users Mailing List' Subject: RE: Struts2 Showcase Example and Ec

RE: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Wesslan
Try http://maven.apache.org/. http://maven.apache.org/download.html#installation for installation instructions. Hth, Peter -Original Message- From: Jim Reynolds [mailto:[EMAIL PROTECTED] Sent: den 18 oktober 2006 19:49 To: Struts Users Mailing List Subject: Re: Struts2 Showcase Example a

RE: Struts & Workflow

2006-10-18 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED] > If Struts2 is WebWork, is Spring Configured anywhere for its IOC? Spring is its IoC container... Have you looked at the documentation pages at all? It talks about all this stuff like validation, IoC, Spring Actions (if you want to, but don't need to)

Re: Struts & Workflow

2006-10-18 Thread Don Brown
Struts 2 has built-in Spring support. This means if you choose the spring object factory (by changing struts.properties), your actions will be autowired by name with Spring. In addition, you can have your Action class itself be created and wired by Spring, simply by using the spring id where you

Re: why hardcode the path of web.xml?

2006-10-18 Thread Larry Meadors
Why in the name of all that is right in the universe would you name your web.xml something else? Obfuscation? Larry On 10/18/06, Christopher Cheng <[EMAIL PROTECTED]> wrote: I am using version 1.3.5 and found out that that path of web.xml is hard coded at line 1723 InputStream input =

RE: ValidatorForm vs. ValidatorActionForm

2006-10-18 Thread Dave Newton
From: Jennifer Jacobs [mailto:[EMAIL PROTECTED] > There are reasons to use ValidatorActionForm over ValidatorForm, > but none that I can think of to use ValidatorForm over > ValidatorActionForm. Am I missing something? Can anyone think of a > reason why I would not want to use this as our standar

Re: Struts & Workflow

2006-10-18 Thread Don Brown
Struts 2 doesn't have a specific workflow engine built in, per se, but you do have several options: 1. Spring's Web Flow 2. Continuations For point 2, Struts 2 has built in support for RIFE's continuations library. A good example can be found in the showcase. It basically lets you code a workfl

Re: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Jim Reynolds
Don, Where do I run the mvn command from? From the exploded code in Tomcat? Or from the download? Sorry, a bit lost here. Thanks, On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote: Simply type, from the command line, "mvn eclipse:eclipse" and Maven will generate all the Eclipse-related project f

RE: why hardcode the path of web.xml?

2006-10-18 Thread Wesley Wannemacher
A quick search of the servlet spec doesn't mention web.xml as being configurable. In fact, page 70 suggests that the contents of 'WEB-INF/' should include it. If you choose not to call it 'web.xml' and place it in 'WEB-INF/' that's really your choice, but I wouldn't expect portability. -Wes > -

ValidatorForm vs. ValidatorActionForm

2006-10-18 Thread Jennifer Jacobs
Hello, I'm in the process of writing all the Java standards for my company right now, and I'm making my way through our Struts standards and I realized we have some projects that are using ValidatorForm and some that are using ValidatorActionForm. I understand the difference between them, and it

Re: Struts & Workflow

2006-10-18 Thread Jim Reynolds
If Struts2 is WebWork, is Spring Configured anywhere for its IOC? When working with it a while back, I really liked the fact that you could create the datasource, and inject the datasource into DAOs. Or does WebWork have an IOC that mimicks Spring? Thanks, On 10/18/06, Dave Newton <[EMAIL PROTEC

why hardcode the path of web.xml?

2006-10-18 Thread Christopher Cheng
I am using version 1.3.5 and found out that that path of web.xml is hard coded at line 1723 InputStream input = getServletContext().getResourceAsStream("/WEB-INF/web.xml"); In resin, I use to change the path of web.xml for example myapp-web.xml. As I start the application, the servle

RE: Struts & Workflow

2006-10-18 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED] > [...] also appears to include WebWork. Struts2 *is* WebWork. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Don Brown
Simply type, from the command line, "mvn eclipse:eclipse" and Maven will generate all the Eclipse-related project files. Add the '-Dwtpversion=1.0' flag to also generate Web Tools Project files. For running the thing, I've had good experiences using the Jetty Maven 2 plugin. See our Bootstrap t

Re: Struts & Workflow

2006-10-18 Thread Jim Reynolds
Hello Roger, I know for sure that Spring has a wizard-like approach for multi-screen data entry. I believe it is called Spring Web Flow. Now, I am getting a feeling that Struts2 supports portions of Spring (Still trying to figure this out) and also appears to include WebWork. So to the point of

Struts2 Showcase Example and Eclipse

2006-10-18 Thread Jim Reynolds
I have downloaded and deployed the showcase examples for Struts2 as a learning tool. I have been going through the code file by file, and was wondering if there was a better way to handle this. I have Eclipse IDE and was wondering if the project could be imported into Eclipse, so I can walk the cl

Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Michael Rush
... ... Related to this, is there a way to specify the tiles-defs file to use? For example, my application has 3 modules, each with its own tiles-defs file. - To unsubscribe, e-mail: [EMAIL PROTECTE

Want to make a IS0-8859-1 compliant application to UTF-8

2006-10-18 Thread navin mca
Hi Friends, Problem Description : I am working on a web application(3 tier) which is IS0-8859-1 compliant. Want to convert it to UTF-8 for cyrillic language support. Application architecture: Jsp , Strurts , I18N,JSTL. I had performed following steps to make it UTF-8. 1) JSP pg/ html pg : <[

Cannot get errors to display to screen

2006-10-18 Thread Perry Minchew
Hi all. Struts newb reporting. I have been working on a new web app for our company to streamline registration, and am still stumbling through the basic building blocks of struts. I am using Struts 1.3.5 on Tomcat v5.5. I am trying to add error handling into my process now. The current pro

Struts & Workflow

2006-10-18 Thread Roger Varley
Hi I'm looking at the possibilty of using Struts for my next project, which is to replace an internal intranet application that uses an applet with a servlet based framework. Among the many "challenges" is the need, because the applet is basically a multi-screen data entry program, to have absolu

Unable to forward to anything but a jsp

2006-10-18 Thread Darren Hall
I'm having two issues - 1) I cannot forward (or map) to an individual file - only to a path. I'd like to find a way to be able to forward to a specific file (html, pdf, etc.). Is this a configuration issue? 2) When I execute a forward action in struts config, I can only forward to a j

[ANN] security component 1.0-beta (incl struts integration)

2006-10-18 Thread Nathan Coast
Hi, The codeczar team is pleased to announce the 1.0-beta release of the codeczar security component. This component enables db-resident user/role/group security within your webapps. This release includes: * admin webapp to manage users, roles & groups. * client jars to integrate with your we

RE: On Error repopulating the data entered by user on the screen....! how.?

2006-10-18 Thread Dave Newton
From: Anil Kumar T [mailto:[EMAIL PROTECTED] > As you guys asked me here are the details. Need the JSP; might even need the form classes. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: problem?

2006-10-18 Thread Dave Newton
From: Mallik [mailto:[EMAIL PROTECTED] > i have a problem with , i am not getting where i am > going worng Um... you neglected to mention what the problem was. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

problem?

2006-10-18 Thread Mallik
Hi friends i have a problem with , i am not getting where i am going worng this is my code ... this is action class -- public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletRe

RE: On Error repopulating the data entered by user on the screen....! how.?

2006-10-18 Thread Anil Kumar T
Hi All, As you guys asked me here are the details. The TIMForm and TIMAction are the super classes. Apart from this we have some other forms and actions which works fine. If you need more details let me know. Below are he action mapping and the form bean definition in struts config file.

Re: [shale] extending clay

2006-10-18 Thread Ted Husted
Shale has its own list now: * http://shale.apache.org/mail-lists.html Along with a spiffy new logo :) -T. On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Did you ever do this Gary? Hermod -Original Message- From: Opstvedt, Hermod Sent: Monday, June 12, 2006 7:39 AM To:

Re: R: UTF-8 encoding & tag problem

2006-10-18 Thread Philippe Schober
Hi, navin mca schrieb: Wht should I do should I write a programe to convert from IS0-8859 to UTF-8 all those test?. The application resources shouldn't be anything else than Latin-1. Use a simple editor like Notepad and paste your UTF-8 stuff into that file. Be sure to save it as UTF-8 enc

RE: test -- ignore me

2006-10-18 Thread Pillay, Kiren KN
Hi Antonio, Your unsubscribe facility doesn't work, I tried about 3 times, are you aware of this? Regards -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: 18 October 2006 09:37 AM To: Struts Users Mailing List Subject: test -- ignore me This is a test... Please

Re: R: UTF-8 encoding & tag problem

2006-10-18 Thread navin mca
Hi Marcello, Thanks for ur suggestion it's really helpful for me. My all property file text were genereted using IS0-8859 char set & now I had convereted it to UTF-8 in editor setting of my eclipse. Aftre doing that few of the special symbols got wiered. Wht should I do sho

[tiles] Re: Tiles "put" page using tiles:insert

2006-10-18 Thread Antonio Petrelli
Irv Salisbury ha scritto: First, is this the appropriate list for tiles questions? If not, sorry, and can someone tell me a better one... Yes it is! But just a note: next time put a "[tiles]" prefix in your subject field. I have the following two defintions in my tiles-def.xml file:

[tiles] Re: Tiles "put" page using tiles:insert

2006-10-18 Thread Antonio Petrelli
Irv Salisbury ha scritto: First, is this the appropriate list for tiles questions? If not, sorry, and can someone tell me a better one... Yes it is! But just a note: next time put a "[tiles]" prefix in your subject field. I have the following two defintions in my tiles-def.xml file:

displaying resultset in jsp(view) from Action(model)?

2006-10-18 Thread Mallik
HI friends i new to this struts and now i come to presenting the data in view how to present the data in view? can i use my ActionForm to create ArrayList or i need to code another simple bean. how to pass that ArrayList to View or it defaultly available to View? what are the meaings of attribu

test -- ignore me

2006-10-18 Thread Antonio Petrelli
This is a test... Please ignore - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]