Forward to different JSPs

2007-08-15 Thread JasDA
Hi, in my web application I want to call one single action class from different JSPs. After that the class should return to the JSP from that it was called. In my struts action tags I have to define an input JSP for every action: action path=/secure/dataChecks name=emptyForm

Problems with multiple resource files (can separate modules be a solution?)

2007-08-15 Thread struts
Hi, I just noticed that we have a problem with our resource files for our site. The problem is that I don't know how to handle more then one resource file. We have two different parts of the site that both use resource properties. One of them (a forum) is build by other persons in our projekt.

Re: Struts 1.2 using formbeans

2007-08-15 Thread Jasper Floor
hmm, I assume the input fields have the same name as the relevant form properties. Case is important. Perhaps you need an input parameter in your action definition. input=inputform.jsp or something along those lines. - To

Re: Forward to different JSPs

2007-08-15 Thread Jasper Floor
On 8/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, action path=/secure/dataChecks name=emptyForm type=org.springframework.web.struts.DelegatingActionProxy input=/secure/dataChecks.jsp / So here it is only possible to return to the given input JSP

Re: struts2 ajax jsps

2007-08-15 Thread Struts2 Fan
It worked when I change the extention to action. I am using Appfuse and it comes with html extention default. So I wonder if there is a way to make it work with html extention or I will post a message to Appfuse if it is possible to change the default extention to something else than html.

Re: Struts 2 URL parameters lost - final status

2007-08-15 Thread rakeshxp
I am using Struts 2.0.6 and the jar contains struts struts-default.xml which contains the following property bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=struts class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper / bean

S2 : Overriding interceptor class names in struts.xml

2007-08-15 Thread j alex
Hi, Is there a way we can override the implementation of certain interceptors from the default stack, without copying over all the definitions to struts.xml ? ex : i want to change the behavior of workflow interceptor in the way it handles errors and routes to input page. I defined :

Re: S2 : Overriding interceptor class names in struts.xml

2007-08-15 Thread Nils-Helge Garli
Unfortunately, you have to re-define the stack. Nils-H On 8/15/07, j alex [EMAIL PROTECTED] wrote: Hi, Is there a way we can override the implementation of certain interceptors from the default stack, without copying over all the definitions to struts.xml ? ex : i want to change the

Trouble getting to portlet render phase

2007-08-15 Thread Frederick N. Brier
I am pretty sure this is a configuration issue, probably in struts.xml. I am trying to create a JSR168 compliant portlet. I have been working with the portletunit code to get it to execute in a unit test, as well as running it with JBossPortal. The behavior is the same, so I am hoping it is

Re: How to find validation.js?

2007-08-15 Thread Joel Patton
Thanks -I figured it out. In my web.xml I had only mapped the struts FilterDispatcher to *.action, I had to change it to map it to /*. My old web.xml: filter filter-namestruts2/filter-name filter- classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class

Re: Trouble getting to portlet render phase

2007-08-15 Thread Nils-Helge Garli
Are you creating the urls correctly using the s:url tag? Do you have an example JSP? How do you invoke your portlet application? Remember that you can't access the portlet using regular urls, they all have to go through the portlet container. Nils-H On 8/15/07, Frederick N. Brier [EMAIL

Re: Dynamic Tree Example

2007-08-15 Thread Roger Varley
What I would really like to do is create a model Petshop application for Struts 2. I've setup a Google Code site for this purpose, but I haven't had a chance to seriously pursue it yet. * http://code.google.com/p/sq1-petstore/ My dream would be to have a full set of use cases, a

Re: struts2 ajax jsps

2007-08-15 Thread Ian Roughley
I think there was a discussion from Matt about this (appfuse using html extensions) a while back, you might want to check the archives. On the s2 side, there are options, but I'm not sure there is an easy solution for using .html as an extension. /Ian Struts2 Fan wrote: Opps How can I

2.0.9 UnknownClassVersionError

2007-08-15 Thread Hartrich, James CTR USTRANSCOM J6
I'm getting an UnknownClassVersion error during struts2.0.9 deployment to tomcat with java 1.5.0.0.3 Is struts 2.0.9 entirely compiled in java 6? James Hartrich

Re: struts2 ajax jsps

2007-08-15 Thread Struts2 Fan
I know that discussion but it html extention locks some of the functionality of struts2, it would be better to change it from html to something else. If you say *it is not easy*, at least I will post a message on the appfuse forum. Ian Roughley wrote: I think there was a discussion from

Re: Trouble getting to portlet render phase

2007-08-15 Thread Frederick N. Brier
In my portletunit test, I am using a url of view/viewMyPortlet.action. In JBossPortal, I create a Portlet Instance from the Portlet Definition and then under the Portlet Objects tab assign it to a region in the page layout. Is there somewhere I would specify a URL? And what would it be?

Struts 1.X validwhen

2007-08-15 Thread Viplav Kallepu
Hi, I am using struts 1.3.8 for my application. For validation I am using validator framework. In one of my pages my form is submitted either by submit button or changing the dropdown list value. action is the name of the property in the corresponding actionform which stores the submit button's

Re: struts2 ajax jsps

2007-08-15 Thread Ian Roughley
As it seems like you want to find a solution the option is to write an ActionMapper that reverses the order the URLs are currently determined. Instead of looking for an action first, you would need to look for a static resource first, and then if not found check for an action. /Ian

Re: Trouble getting to portlet render phase

2007-08-15 Thread Nils-Helge Garli
So it doesn't work in neither JBoss nor your tests? Or is it just your test that is not working? Since executeRegularServletResult is executed, the only two reasons are: - The portletrequest and portletresponse objects are not available, which means you're running outside the container. - The

Struts2 Annotation Based Validation

2007-08-15 Thread David Copeland
I'm a Struts newb and am trying to get up to speed on Struts 2. The scant documentation is throwing me a bit; I'm trying to do everything annotation-based, and for Validation, it seems to be simply not working at all. Per the docs, I have tagged my action class with @Validator and tagged my

Re: Doubled requests in TabbedPane

2007-08-15 Thread Sebastian Kolbe
Hi Ah, thanks very much. Thats exactly what i need. :-) -- Sebastian Jeromy Evans schrieb: In response to your second question: Sebastian Kolbe wrote: Another question: Is there an easy way to catch the event (something like 'onclick') when a different tab is selected? Yes : a. at

S2: OGNL beats me

2007-08-15 Thread Twins fan
Hi, I have a bean in request scope which has a List property. I cannot iterate over it or read it at all. Among the lines below only the first works. Could somebody please explain why? ${req.css[0]} s:property value=req.css[0]/ s:property value=#req.css[0]/ s:property value=%{req.css[0]}/

Re: S2: OGNL beats me

2007-08-15 Thread Musachy Barroso
try : s:property value=%{#request.css[0]}/ musachy On 8/15/07, Twins fan [EMAIL PROTECTED] wrote: Hi, I have a bean in request scope which has a List property. I cannot iterate over it or read it at all. Among the lines below only the first works. Could somebody please explain why?

Re: S2: OGNL beats me

2007-08-15 Thread Twins fan
Thanks for both of you. s:property value=#request.req.css[0]/ Only this one works for struts tags, but I still don't fully understand the notion of the value stack. It is supposed to give access to properties of all scopes, isn't it? Standard EL is not so complicated. kuvera Musachy Barroso

Re: Forward to different JSPs

2007-08-15 Thread Laurie Harper
Jasper Floor wrote: On 8/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, action path=/secure/dataChecks name=emptyForm type=org.springframework.web.struts.DelegatingActionProxy input=/secure/dataChecks.jsp / So here it is only possible to return to the given

Re: Struts2 Annotation Based Validation

2007-08-15 Thread Laurie Harper
David Copeland wrote: I'm a Struts newb and am trying to get up to speed on Struts 2. The scant documentation is throwing me a bit; I'm trying to do everything annotation-based, and for Validation, it seems to be simply not working at all. Per the docs, I have tagged my action class with

Re: Struts 1.X validwhen

2007-08-15 Thread Laurie Harper
Viplav Kallepu wrote: Hi, I am using struts 1.3.8 for my application. For validation I am using validator framework. In one of my pages my form is submitted either by submit button or changing the dropdown list value. action is the name of the property in the corresponding actionform which

Re: Using the Restful2ActionMapper

2007-08-15 Thread mraible
I'm trying to change from using the old-style URLs to Restful2ActionMapper. Here's what I've added to struts.xml: bean name=struts2 type=org.apache.struts2.dispatcher.mapper.ActionMapper class=org.apache.struts2.dispatcher.mapper.CompositeActionMapper/ constant

Re: Struts2 Annotation Based Validation

2007-08-15 Thread j alex
I think annotations give you more flexibility than XML . ex : if an Action has multiple methods and only certain fields are tied to each method, we can bunch together validations for each method using annotations, but this is not possible using XML On 8/15/07, Laurie Harper [EMAIL PROTECTED]

Re: Struts2 Annotation Based Validation

2007-08-15 Thread Dave Newton
--- j alex [EMAIL PROTECTED] wrote: ex : if an Action has multiple methods and only certain fields are tied to each method, we can bunch together validations for each method using annotations, but this is not possible using XML You can create validation XML files on an action-alias basis.

How to make initialize with struts2 action?

2007-08-15 Thread red phoenix
For general Java class,we can make construction function,like this: public class test{ String a; public test(String a){ this.a=a; } } I don't know if I can do it like above code under struts2 action,for some reason,I want to initialize some variable and assign some value to it,like

Re: How to make initialize with struts2 action?

2007-08-15 Thread meisam sarabadani
Does anybody know how to configure struts on eclipse and build anew project by struts in eclipse ? On 8/16/07, red phoenix [EMAIL PROTECTED] wrote: For general Java class,we can make construction function,like this: public class test{ String a; public test(String a){ this.a=a; }

Re: tiles DTD

2007-08-15 Thread Paul Benedict
If your code is going otu to the Internet to find the DTD, that means the DTD cannot be found locally. Depending on the type of Servlet API (= 2.2), you would have to put the DTD directly in the WEB-INF directly and reference a URI to that location. Otherwise, API = 2.3 will be able to find it

Re: How to make initialize with struts2 action?

2007-08-15 Thread Andvar Woo
You can refer to the Struts doc. The easiest way is to use the struts2-blank-2.0.9.war as a start. you can find it from the http://struts.apache.org You'd better download a struts-2.x.all.zip from the download pages. Hope that helps,good luck. 2007/8/16, meisam sarabadani [EMAIL PROTECTED]:

Re: How to make initialize with struts2 action?

2007-08-15 Thread meisam sarabadani
hey thanks for your help but the thing is that it does not work like that in eclipse, yeah I have downloaded the full pack of struts and the all exampels, and also i have deployed it manually by putting it into my container (tomcat), but when im going to use the eclipse as IDE to develop and

Serious need

2007-08-15 Thread meisam sarabadani
I have downloaded the full pack of struts and the all exampels, and also i have deployed it manually by putting it into my container (tomcat), but when im going to use the eclipse as IDE to develop and start a struts everything messes and I can`t continue, actually it is not working, I have seen

Re: How to make initialize with struts2 action?

2007-08-15 Thread Rec Floyd
Hey,red.In my opinion, to use struts, you have to supply a no-argument constructor.That is the point. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tiles DTD

2007-08-15 Thread Stephen Souness
The post at: http://article.gmane.org/gmane.comp.jakarta.struts.user/78202/ seems to go into a bit more detail about this issue. Is it possible that the version of Struts that I am using doesn't have the correct location(s) set up for pointing at the internal resources referred to in that

Re: How to make initialize with struts2 action?

2007-08-15 Thread red phoenix
If I use no-argument constructor,how can i do to initialize some information? Thanks On 8/16/07, Rec Floyd [EMAIL PROTECTED] wrote: Hey,red.In my opinion, to use struts, you have to supply a no-argument constructor.That is the point.

[S2] Type Validation Error Message

2007-08-15 Thread Struts2 Fan
When there is an integer type and the user writes non string value, an error message is displayed automaticly. Invalid field value for field xxx.yyy I want to make this message localized. I posted a message before. But I don't want to write bundles for all the integer, double and date fields in