Re: How to validation/workflow with fileUpload?

2008-09-26 Thread Laurie Harper
I assumed that was a typo, or the error message would be different, but it's worth checking: is the form referencing the action you think it is? L. Martin Gainty wrote: and if you change the action name to same name references in the action attribute in s:form Martin ___

Re: [S2] Plugin supporting webapp

2008-09-26 Thread Andreas Mähler
Andreas Mähler schrieb: Hello struts-users, I am currently developing a webapp for my diploma thesis that can be extended with plugins (JARs that are dropped into a dedicated folder). I am using the Java Plugin Framework[1] to do this and I was already able to move certain policies (e.g. searc

[S2] Plugin supporting webapp

2008-09-26 Thread Andreas Mähler
Hello struts-users, I am currently developing a webapp for my diploma thesis that can be extended with plugins (JARs that are dropped into a dedicated folder). I am using the Java Plugin Framework[1] to do this and I was already able to move certain policies (e.g. search or tag cloud generation

RE: How to validation/workflow with fileUpload?

2008-09-26 Thread Martin Gainty
and if you change the action name to same name references in the action attribute in s:form Date: Fri, 26 Sep 2008 14:40:36 -0700 > From: [EMAIL PROTECTED] > Subject: Re: How to validation/workflow with fileUpload? > To: user@struts.apache.org > > Laurie, > I added the getters and received the

Re: Action and ActionForm newbie questions

2008-09-26 Thread Dave Newton
--- On Fri, 9/26/08, UseTheFork <[EMAIL PROTECTED]> wrote: > What is the proper way? There is no single "proper way". It depends on your environment, your application, and so on. In general your actions should be wrappers around calls to services, no matter how they're implemented. These quest

Re: How to validation/workflow with fileUpload?

2008-09-26 Thread Earle Flynn
Laurie, I added the getters and received the same result for the upload s:file field, 'Invalid field value for field "upload".' The message seems to be coming from the FileUploadInterceptor. Earle - Original Message From: Laurie Harper <[EMAIL PROTECTED]> To: user@struts.apache.org S

Re: Action and ActionForm newbie questions

2008-09-26 Thread UseTheFork
Hi Laurie and Dave, I am reading contradictory information from different sources on the Internet and I am getting confused. i) Assuming that I am writing a JSP page to register a new user using a form: I should implement an ActionForm to retrieve the data entered by the user, correct? I shoul

RE: [S2] OgnlException for ServletRedirectResult

2008-09-26 Thread Hoying, Ken
Thanks, Dave! I was able to get it to work, as you suggested, by setting everything in the location param. Thank you! Ken -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 4:33 PM To: Struts Users Mailing List Subject: Re: [S2] OgnlExceptio

using CompositeActionMapper

2008-09-26 Thread Allen Lee
Hey there, I'm trying to get the CompositeActionMapper working with Struts 2.1.2 (combining the Restful2ActionMapper and our own custom action mapper to handle the default index page where the Action name is null in namespace "/", i.e., http://localhost/our-app/ ) a

Re: [S2] OgnlException for ServletRedirectResult

2008-09-26 Thread Dave Newton
--- On Fri, 9/26/08, Hoying, Ken wrote: > It seems that OGNL is trying to split the name or convert > it into a number and splitting it at the 'f''. However, > this makes no sense to me what so ever. Why is OGNL even > trying to parse the param name? Why does it care? Because that's how paramet

Re: Action and ActionForm newbie questions

2008-09-26 Thread Dave Newton
I thought you were learning Struts 2. Dave --- On Fri, 9/26/08, UseTheFork wrote: > I am learning about Struts and I am trying to understand > the proper usage of > Actions and ActionForms. Can you tell me if the following > is correct? > > i) Actions are implemented as glue between the View (JS

Re: Action and ActionForm newbie questions

2008-09-26 Thread Laurie Harper
UseTheFork wrote: Hi, I am learning about Struts and I am trying to understand the proper usage of Actions and ActionForms. Can you tell me if the following is correct? i) Actions are implemented as glue between the View (JSP for example) and the Model part (Hibernate for example) in MVC. Typi

Re: [S2] Testing, getting jsp output.

2008-09-26 Thread Laurie Harper
GF wrote: Hello I'm writing tests on application that uses Struts2. To test the actions, I use about a technique similar to the one described here http://itefforts.blogspot.com/2007/08/struts2-spring-junit.html I wish to do more and test the Jsp (and Tiles) output too. That code does this: resp

Re: How to validation/workflow with fileUpload?

2008-09-26 Thread Laurie Harper
Glancing through your action code, you have setters but no getters. Without getters, there is no way for Struts' validation code to access the values to validate them, or for the form tags in the JSP to access them. That might be the problem... L. Earle Flynn wrote: How is it possible to use

Re: Problem with input attribute - the action doesn't progress

2008-09-26 Thread Laurie Harper
Daniele Development-ML wrote: Hello everybody, I have a problem with configuring an action mapping. The related Struts-config.xml chunk is: The input form beans are all declared: The problem is that when from the URL /insertAuthor I access to the url /showInsertedAuthor, Tomcat i

RE: How to validation/workflow with fileUpload?

2008-09-26 Thread Kawczynski, David
I won't be too much help, as I've never had this problem. But sometimes a second set of eyes helps you look at your stuff differently. To that point: I wonder what the invalid value is. Put a breakpoint in the ValidationInterceptor, ParamsInterceptor, and FileUploadInterceptor, to see what inv

[S2] OgnlException for ServletRedirectResult

2008-09-26 Thread Hoying, Ken
I am need to be able to redirect to a url from Struts2 passing in an odd looking parameter name. The parameter name is '6578706f7274'. I know.. I would love to change the name to something else a little more reasonable but I can't as it is for a call to a third party component (Thanks, DisplayTag

Re: How to validation/workflow with fileUpload?

2008-09-26 Thread Earle Flynn
Hi David, If I remove the value property from the s:file tag, then when the action returns from a validation error to the input-result the page will not fully render, stopping just before the s:file tag, presumably there is an exception in the s:file tag. Strange, I know, luckily I have a soluti

Re: Accessing UIBean property value in action class

2008-09-26 Thread Gabriel Belingueres
What do you mean by "access those attribute values in the requested action class."? By the time the custom tag is executing, the action class was already executed. 2008/9/26 ManiKanta G <[EMAIL PROTECTED]>: >> >> Put it as a hidden variable in the template??? Wont it work. >> > > Thanks for the t

RE: How to validation/workflow with fileUpload?

2008-09-26 Thread Kawczynski, David
I've used with validation without errors. I've never provided a value attribute in the tag. I don't know about struts, but I think the tag ignores value attributes. What happens if you remove the value attribute? -Original Message- From: Earle Flynn [mailto:[EMAIL PROTECTED] Sent:

Re: How to validation/workflow with fileUpload?

2008-09-26 Thread Earle Flynn
Here is some addititional and new info; -- resolved blank page issue by removing pjl compression filter from web.xml. will do gzip at apache http or discuss with pjl project owner. --on validation errors, action returns to input result as expected, which is good. --although, if value property of

Action and ActionForm newbie questions

2008-09-26 Thread UseTheFork
Hi, I am learning about Struts and I am trying to understand the proper usage of Actions and ActionForms. Can you tell me if the following is correct? i) Actions are implemented as glue between the View (JSP for example) and the Model part (Hibernate for example) in MVC. Typically, they should

Re: Struts 2.0 start error

2008-09-26 Thread lukasz . lenart
> Only two .jar files that i wrote above. Is there anything else? Now I see it, remove the older version of this plugin (struts2-pell-multipart-plugin-2.0.11) to avoid conflicts and download library from that link [1], the dependencies are not included in the plugin because of LGPL license. [1] h

Re: [S2] Testing, getting jsp output.

2008-09-26 Thread GF
Thanks for your answer. Really now i prefer to keep on standard testing from "java" side. Anyway I bookmarked selenium website. 2008/9/26 Paweł Wielgus <[EMAIL PROTECTED]>: > Hi GF, > it's not exactly answear for Your question but i find selenium family > very usefull. > But i don't know if it's

Re: Struts 2.0 start error

2008-09-26 Thread ert
Only two .jar files that i wrote above. Is there anything else? Lukasz Lenart wrote: > > Did you download all dependency for project Pell? > > http://sourceforge.net/projects/multpartrequest > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > >

Re: Struts 2.0 start error

2008-09-26 Thread Lukasz Lenart
Did you download all dependency for project Pell? http://sourceforge.net/projects/multpartrequest Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts 2.0 start error

2008-09-26 Thread ert
i will use most of them if i can start the sever successfully. Lukasz Lenart wrote: > > Are you using all this plugins??? > > 2008/9/26 ert <[EMAIL PROTECTED]>: >> >> struts2-codebehind-plugin-2.0.11.2 >> struts2-config-browser-plugin-2.0.11.2 >> struts2-core-2.0.11.2 >> struts2-jasperreports-p

Re: Struts 2.0 start error

2008-09-26 Thread Lukasz Lenart
Are you using all this plugins??? 2008/9/26 ert <[EMAIL PROTECTED]>: > > struts2-codebehind-plugin-2.0.11.2 > struts2-config-browser-plugin-2.0.11.2 > struts2-core-2.0.11.2 > struts2-jasperreports-plugin-2.0.11.2 > struts2-jfreechart-plugin-2.0.11.2 > struts2-jsf-plugin-2.0.11.2 > struts2-pell-mul

Re: Struts 2.0 start error

2008-09-26 Thread ert
struts2-codebehind-plugin-2.0.11.2 struts2-config-browser-plugin-2.0.11.2 struts2-core-2.0.11.2 struts2-jasperreports-plugin-2.0.11.2 struts2-jfreechart-plugin-2.0.11.2 struts2-jsf-plugin-2.0.11.2 struts2-pell-multipart-plugin-2.0.11 struts2-pell-multipart-plugin-2.0.11.2 struts2-plexus-plugin-2.0

Re: Struts 2.0 start error

2008-09-26 Thread Dave Newton
--- On Fri, 9/26/08, ert <[EMAIL PROTECTED]> wrote: > i did but same error again Are you *trying* to use the Pell plugin? How about showing us what you have in your config files and what libraries you're using? It would make diagnosing... possible. Dave ---

Re: Struts 2.0 start error

2008-09-26 Thread ert
i did but same error again Lukasz Lenart wrote: > > You have to name it struts.properties > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e

Re: Struts 2.0 start error

2008-09-26 Thread Lukasz Lenart
You have to name it struts.properties Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2.0 start error

2008-09-26 Thread ert
Although i put and configure the srusts-default.properties file, same error occured again. Lukasz Lenart wrote: > > Here [1] and put the struts.properties on class path > > [1] http://struts.apache.org/2.0.11.2/docs/strutsproperties.html > > > Regards > -- > Lukasz > http://www.lenart.org.pl

Re: Struts 2.0 start error

2008-09-26 Thread Lukasz Lenart
Here [1] and put the struts.properties on class path [1] http://struts.apache.org/2.0.11.2/docs/strutsproperties.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Struts 2.0 start error

2008-09-26 Thread ert
i can't find struts.properties file in my project. So i can't configure it for stuts-pell-multipart plugin. Where can i reach the struts.properties file? ert wrote: > > Server give an error while it starts struts 2.0 application. The error is > this: > > > Unable to load bean: > type:org.apach

Re: [S2] Testing, getting jsp output.

2008-09-26 Thread Paweł Wielgus
Hi GF, it's not exactly answear for Your question but i find selenium family very usefull. But i don't know if it's an option for You. Best greetings, Paweł Wielgus. 2008/9/26 GF <[EMAIL PROTECTED]>: > Hello > I'm writing tests on application that uses Struts2. > To test the actions, I use about

Re: Accessing UIBean property value in action class

2008-09-26 Thread ManiKanta G
> > Put it as a hidden variable in the template??? Wont it work. > Thanks for the tip. But it doesn't suites my requirement. I need to specify that as the attribute. I've to access total of 6 attributes in the action class. Is there any other solution? ManiKanta

Tree default expanded ??

2008-09-26 Thread Narayana S
Hi Is it possible to display a tree expanded by default? I am using struts 2.1.2 dojo-plugin to create the tree structure. any one used tree...plz help me

RE: Accessing UIBean property value in action class

2008-09-26 Thread Jishnu Viswanath
Put it as a hidden variable in the template??? Wont it work. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: ManiKanta G [mailto:[EMA

[S2] Testing, getting jsp output.

2008-09-26 Thread GF
Hello I'm writing tests on application that uses Struts2. To test the actions, I use about a technique similar to the one described here http://itefforts.blogspot.com/2007/08/struts2-spring-junit.html I wish to do more and test the Jsp (and Tiles) output too. That code does this: response = new M

Re: IDE for Tiles 2?

2008-09-26 Thread Antonio Petrelli
This question should be addressed to the Tiles Users mailing list: http://tiles.apache.org/mail.html Antonio 2008/9/26 Alexander Baetz <[EMAIL PROTECTED]>: > Hi, > > since my tiles definition file is getting a little big and complex, i'm > looking for tools that make it easier to work with tiles.

IDE for Tiles 2?

2008-09-26 Thread Alexander Baetz
Hi, since my tiles definition file is getting a little big and complex, i'm looking for tools that make it easier to work with tiles. is there any kind of IDE (eclipse plugin would be great) that is worth a try? greetings, Alexander ---