Re: tiles DTD

2007-08-15 Thread Laurie Harper
It's more likely that you are using the wrong public identifier in your document type declaration. With the wrong public identifier, the resource (DTD file) won't be resolved locally and the parser will try to use the system identifier to locate the resource, as a fall back. Check that the doc

Re: How to make initialize with struts2 action?

2007-08-15 Thread red phoenix
static { //doSomeInit,this only run once } above code can't run in struct2 action,it will say "can't use in non-static class" I use Struts2+spring2.1+hibernate3.2,I am puzzled with it for many many days! I am looking for an example,but I don't find it,would you give me an example project which c

Re: How to make initialize with struts2 action?

2007-08-15 Thread Nils-Helge Garli
So you're using Spring? In that case, maybe parts of this tutorial can help: http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html And here's the documentation for the Spring-plugin: http://struts.apache.org/2.x/docs/spring-plugin.html Nils-H On 8/16/07, red phoenix <[EMAIL PROTECTED

Re: Serious need

2007-08-15 Thread meisam sarabadani
dude, Let me try then I let you know quickly. :), but before that would you answer my questions : >That needs some plug-ins to support,you can try "Lomboz" how to install Lomboz ? should i only get it and put it in a eclipse plugins dir ? >thirdly,configure the web.xml , below is a sample confi

Re: How to make initialize with struts2 action?

2007-08-15 Thread Andvar Woo
You may try the static block, a no-arg constructor is needed to initialize a Action object by struts static { //doSomeInit,this only run once } 2007/8/16, red phoenix <[EMAIL PROTECTED]>: > > I know your meaning,but the question I want to Initialize in struts > action,not in common class,becaus

Re: How to make initialize with struts2 action?

2007-08-15 Thread red phoenix
I know your meaning,but the question I want to Initialize in struts action,not in common class,because I want to get WebApplicationContext in struts action,and then I will transfer WebApplicationContext into dao to get data. I don't know if there is a init method in struts2 action? Any idea will be

Re: Serious need

2007-08-15 Thread Andvar Woo
Firstly,create a empty dynamic web project. That needs some plug-ins to support,you can try "Lomboz" sencondly,copy/import the following 5 essential jars to the /WEB-INF/lib folder struts2-core.jar xwork.jar ognl.jar freemarker.jar commons-logging.jar you can find these jars in the strtus pack you

Re: How to make initialize with struts2 action?

2007-08-15 Thread Leonidas Papadakis
I think you can use the setters after you initialize your class i.e.instead of MyType mt = new MyType(...parameters...); to do : MyType mt = new MyType(); mt.setParam1() e.t.c. I am not exactly sure if this is what you are after though Why do you want to do this ? Leon red phoenix

[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

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. > > ---

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 pos

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]

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 so

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 start

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: 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 i

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=

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 foll

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 bas

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]> wr

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: I have a UserAction that does CRUD (below). And the following action definitions: userList.jsp userList.jsp

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 @Valid

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 st

Re: 2.0.9 UnknownClassVersionError

2007-08-15 Thread Laurie Harper
Hartrich, James CTR USTRANSCOM J6 wrote: 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? Struts 2.0.9 targets the JDK 1.5 runtime. It shouldn't matter which JDK was used to compile, unless ther

Re: Forward to different JSPs

2007-08-15 Thread Laurie Harper
Jasper Floor wrote: On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, So here it is only possible to return to the given input JSP "dataChecks.jsp". How can I return to the calling JSP without defining one action tag for every single JSP? If you don't close your actionmappin

Re: S2: OGNL beats me

2007-08-15 Thread Twins fan
Thanks for both of you. 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 írta: > try : > > > > musachy

Re: S2: OGNL beats me

2007-08-15 Thread Musachy Barroso
try : 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? > > ${req.css[0]} > > > > > > Tha

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]} Thanks, kuvera - To uns

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? >> >> >

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 setXX

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 url

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 Strut

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: 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? W

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 fro

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 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 m

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

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 PROTECTE

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: struts2 class>org.apache.struts2.dispatcher.FilterDispatcher struts2 *.action New, cor

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: 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 t

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: 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 We have a struts.xml in WEB-INF/classes folder and I was trying to override the default actionmapper by having the following lines in my struts.xml ( just for testing

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: Forward to different JSPs

2007-08-15 Thread Jasper Floor
On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > >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

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 unsubsc

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. Th

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: So here it is only possible to return to the given input