class in applet-jar not found

2009-04-27 Thread Stephan Schröder
this is actually not a struts2-problem, but it came up in a struts2 projet of mine: a applet of mine won't start because the main-class can't be found, which is of course present in the applet. I appended the applet and a test.html-file (

Unable to find interceptor class referenced by ref-name gwt

2009-03-16 Thread Stephan Schröder
When deploying my HelloWorld-struts2-gwt-application i get this exception: SCHWERWIEGEND: Exception starting filter struts2 Unable to load configuration. - interceptor-ref -

Re: Struts 2 and GWT in Hosted Mode?

2009-03-13 Thread Stephan Schröder
=google-web-toolkit-doc-1-5t=FAQ_HostedModeNoServer Stephan Schröder wrote: Am i right in saying that if you use struts 2 as the server backend of gwt, you can't use the hosted mode browser!? The hosted mode browser seems only capable of launching gwt modules not normal webapps. I'm i right

Struts 2 and GWT in Hosted Mode?

2009-03-11 Thread Stephan Schröder
Am i right in saying that if you use struts 2 as the server backend of gwt, you can't use the hosted mode browser!? The hosted mode browser seems only capable of launching gwt modules not normal webapps. I'm i right? Regards, Stephan -- View this message in context:

ActionMapper doesn't add Parameter

2009-01-24 Thread Stephan Schröder
the objectiv is to be able to have url like .../public/123.mp3 so this customized ActionMapper was written. public class MyActionMapper extends DefaultActionMapper { static ActionMapper fallback = new DefaultActionMapper(); private static String getSongIdFromUrl(String s, String

How to use a localised enum in a checkboxlist

2009-01-04 Thread Stephan Schröder
i have a checkboxlist which entries are derived from possible values of an enum (named TrainingAttribute). This usage of the checkboxlist works @s.checkboxlist label=Attribute name=trainingAttributes list=@domainobjects.util.trainingattrib...@values()}/ trainingAttributes gives an array of

Is HttpSessionListener a singleton and/or initialized by Spring?

2008-12-10 Thread Stephan Schröder
I have a Struts 2 webapp with Spring 2.5 as ObjectFactory. I have a HttpSessionListener-Class which is configured in web.xml: listener listener-classutil.servlet.UserTimeoutListener/listener-class /listener I assume that 1) this class will be instanciated as a singleton. 2) Spring will have

different tiles definition depending on the package of the action mapping

2008-10-28 Thread Stephan Schröder
hi, my app has three packages public, sucurity (login,register,...) and private. These packages correspond in that all actions within this package should be displayed with the same menus. Therefore (i guess) i have (not yet, but this is my idea) three base layouts from which to extend:

Re: Confused by Result-generation

2008-10-21 Thread Stephan Schröder
, Stephan Stephan Schröder wrote: hi, as far as i understand it, the calling sequenze of an action mapping looks like this: Interceptor 1- Interceptor 2-...- Action- Result-...- Interceptor 2- Interceptor 1 (see http://struts.apache.org/2.0.11.2/docs/big-picture.html) But what happens

Confused by Result-generation

2008-10-20 Thread Stephan Schröder
hi, as far as i understand it, the calling sequenze of an action mapping looks like this: Interceptor 1- Interceptor 2-...- Action- Result-...- Interceptor 2- Interceptor 1 (see http://struts.apache.org/2.0.11.2/docs/big-picture.html) But what happens when i use this AuthenticationInterceptor:

DefaultWorkflowInterceptor doesn't validate anymore!?

2008-10-09 Thread Stephan Schröder
Hi, i'm using Struts2.1.2 which uses Xwork2.1.2. When i tried to figure out why my validate-Method wasn't called anymore, i found out that the DefaultWorkflowInterceptor just doesn't invoke it anymore, which seems to be on purpose (-b-This interceptor does not perform any validation-/b-.) Which

Re: DefaultWorkflowInterceptor doesn't validate anymore!?

2008-10-09 Thread Stephan Schröder
are true, is validate() called twice? Regards, Stephan Musachy Barroso wrote: The validation one. On Thu, Oct 9, 2008 at 9:13 AM, Stephan Schröder [EMAIL PROTECTED] wrote: Hi, i'm using Struts2.1.2 which uses Xwork2.1.2. When i tried to figure out why my validate-Method wasn't

Re: There is no Action mapped for namespace / and action name ...

2008-08-30 Thread Stephan Schröder
/tutorialhelp/comment/58280 regards, Simson Stephan Schröder wrote: having the same problem: i use Struts2.0.11.2. and tomcat 6.0.16. On my Windows desktop everything works fine. I exported the project as war and imported it on my Linux laptop (so i can work a little bit in my hollidays

Re: There is no Action mapped for namespace / and action name ...

2008-08-30 Thread Stephan Schröder
-pattern /filter-mapping filter-mapping filter-namestruts-execute/filter-name url-pattern/*/url-pattern /filter-mapping musachy On Sat, Aug 30, 2008 at 9:24 AM, Stephan Schröder [EMAIL PROTECTED] wrote: no, deleting the namespace-attribute on the package

Re: There is no Action mapped for namespace / and action name ...

2008-08-29 Thread Stephan Schröder
having the same problem: i use Struts2.0.11.2. and tomcat 6.0.16. On my Windows desktop everything works fine. I exported the project as war and imported it on my Linux laptop (so i can work a little bit in my hollidays). But on the Linux laptop i only get a There is no Action mapped for action

Re: help in build.xml

2008-08-25 Thread Stephan Schröder
why do you need a build.xml to run a struts2 application? Of course it's a good idea to use ant or maven2 as Build tools but it's not required. I uploaded a helloWorld.war (http://www.file-upload.net/download-1066806/struts2helloworld.war.html) which you can download and then import in Eclipse

only serializable objects into Session?

2008-08-25 Thread Stephan Schröder
hi, i read the other day that only Objects which implement Serializable should be put into an HttpSession. I gues this is valid for the Session in Struts2, too?! This seems to indicate that all the objects reachable through this object should be serializable, too?! That would be a problem

Re: only serializable objects into Session?

2008-08-25 Thread Stephan Schröder
This seems to indicate that all the objects reachable through this object should be serializable, too?! No, only the ones you want serialized. So properties which don't implement Serializable will just be null afterwards? What about Lists of nonserializable classes, will these be empty?

Re: [OT] S2 Stream Result, downloading large file, advice needed

2008-08-23 Thread Stephan Schröder
I'm still interested in hear any suggestions. I know that this is not strictly an S2 issue but it is related to using a Stream result type. If I was writing a servlet I would just get the OutputStream and write directly to it, putting the burden of buffering etc. onto the container. If you

Re: [S2] Iterate through two lists

2008-08-22 Thread Stephan Schröder
If all you're trying to do is set message properties why are you bothering with the push? s:iterator value=fruits1 status=rowstatus s:text name=names s:param value=someObject.fruits2[#rowstatus.index].name/ /s:text /s:iterator Looks good (if fruit1 is accessable bei a getter

Re: struts-hibernate-mysql date problem

2008-08-22 Thread Stephan Schröder
quick and dirty solution: i know that this works if you use hibernate with annotations so i'm certain that there is a possibility to do it with xml. With annotations you can declare whether the data is extracted directly from the property or indirectly over the getter-method of the property.

Re: OGNL

2008-08-22 Thread Stephan Schröder
Here are the language and developer guides: http://www.opensymphony.com/ognl/ I'm pretty sure that neither %{} nor ${} are actually part of OGNL. %{} is a marker for struts2 that the content should be evaluated as OGNL-Statement and not as String while ${} is the marker for freemarker, which is

Re: [S2] Does struts set null values for pojo fields?

2008-08-21 Thread Stephan Schröder
I think you cann't expect Struts 2 to automatically remove an object just because one of it's properties is set to null. Ok, in your case it's the id-property but struts 2 (or better OGNL) doesn't know that. So i don't think this is worth a feature request. But here is the workaround i'd use:

Re: [S2] Iterate through two lists

2008-08-21 Thread Stephan Schröder
this code here works for me: @s.set name=list1 value=%{{'apple','banana'}} / @s.set name=list2 value=%{{'juice','cream'}} / @s.iterator value=#list1 status=rowstatus @s.property / @s.push value=#list2[#rowstatus.index] @s.property / /@s.push br /@s.iterator (Notice: this is

Re: RE: [S2] Does struts set null values for pojo fields?

2008-08-21 Thread Stephan Schröder
an object if *all* of it's properties were null, not just one. Would your answer be the same given this minor difference? -Original Message- From: Stephan Schröder [mailto:[EMAIL PROTECTED] Sent: 21 August 2008 09:10 To: Struts Users Mailing List Subject: Re: [S2] Does struts set

Re: RE: [S2] Does struts set null values for pojo fields?

2008-08-21 Thread Stephan Schröder
Can you define an interface that is common across all the actions/model objects. Then you can have the relevant Actions implement the interface and write an interceptor to check the value of the specified fields and set them to null if required after checking that the object is of the

Re: Struts 2.1 Tree Problem

2008-08-21 Thread Stephan Schröder
some example i tried on struts-blank-2.1.2 it is working and recognizing events and responding. am i missing any imp step in migration, is that replacing jar files is not enough for migration? many of the struts2-tags use the var-attribute instead of name and id, now. I'm not sure whether id

Re: RE: Action as Welcome File

2008-08-21 Thread Stephan Schröder
filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher dispatcherINCLUDE/dispatcher dispatcherERROR/dispatcher /filter-mapping this result in an xml-error: The

Re: [S2] Iterate through two lists

2008-08-20 Thread Stephan Schröder
I'm not sure whether the syntax is completly right but it should work like this: s:iterator value=fruits1 status=rowstatus s:property value=name / s:push value=fruits2[#rowstatus.count] s:property value=name / /s:push /s:iterator View this message in context:

Re: is this right?

2008-08-20 Thread Stephan Schröder
12:35:31,491 WARN [OgnlUtil] Caught OgnlException while setting property 'searchText' on type 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. well, the problem is that ServletActionRedirectResult has no property called searchText which is of course clear if you think of it.

Re: struts 2.0.11.2 s:if test= problem

2008-08-20 Thread Stephan Schröder
your user is in the session not on the value stack therefore you should try this: s:if test=#session.user.roleId==0 /Stephan Original-Nachricht Datum: Wed, 20 Aug 2008 15:11:51 +0530 Von: ravindra [EMAIL PROTECTED] An: user@struts.apache.org Betreff: struts 2.0.11.2 s:if

Re: struts 2.0.11.2 s:if test= problem

2008-08-20 Thread Stephan Schröder
Initially when i don't have in my session s:if test=%{user.roleId==0} it is working if i write getters and setters for user object in my action class Exactly, because the action is pushed onto the value stack automatically. You might want to read the short section on the Value Stack / OGNL

Re: Why do s:select and s:submit add a tr ?

2008-08-20 Thread Stephan Schröder
http://struts.apache.org/2.x/docs/xhtml-theme.html http://struts.apache.org/2.x/docs/themes-and-templates.html short version: use the theme=simple attribute Are you user a html-form or the struts2-form-tag? I guess it's the html-form from what you write (which wouldn't be that good). If you

Re: Struts2 Application Structure

2008-08-18 Thread Stephan Schröder
Annother middle way would be to use the plain text result and no separate class attribute like this action name=intro interceptor-ref name=myAuth/ result type=plaintext/intro.html/result /action Advantages: -no own Action class (ActionSupport is used) -your static resources don't get

Re: [S2] 2.1.3GA?

2008-08-18 Thread Stephan Schröder
Is there an ETA on when 2.1.3 (or greater) will go GA? not that i know of (which doesn't say much) but the bugtracker (https://issues.apache.org/struts/secure/Dashboard.jspa) site says it's 87% finisched. /Stephan -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry

Re: struts2 getInputForward()

2008-08-18 Thread Stephan Schröder
look for Redirect (Action) Result. /Stephan Maybe these resources can help: http://struts.apache.org/2.x/docs/bootstrap.html http://struts.apache.org/2.x/docs/selecting-results.html http://struts.apache.org/2.x/docs/result-configuration.html

Re: Object put in HttpSession can't be found by S2

2008-08-17 Thread Stephan Schröder
i'm pretty sure s:if test=#skillsFound != null works too. /Stephan use #session.skillsFound or #session[''skillsFound'] musachy In my action I put a Set called skillsFound in the HttpSession. Then I want to access it (and iterate through it) from a jsp, but this line of code gives a

Re: Validate associate Map

2008-08-17 Thread Stephan Schröder
i guess the short answer is: write it validateSave()-Method. The workflow interceptor should only call it if save is the invoke method. I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but

Re: Object put in HttpSession can't be found by S2

2008-08-17 Thread Stephan Schröder
--- On Sun, 8/17/08, Stephan Schröder wrote: i'm pretty sure s:if test=#skillsFound != null works too. AFAIK the # syntax will work only if the variable was defined as a named stack context variable via something like s:set... or as the value of a var (id in S2.0) attribute and so

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Stephan Schröder
actually, now i have the same problem (or a variation of it) :-) I develop under Vista with eclipse. When i deploy the webapp from eclipse (to Tomcat6) validation works fine. But when i export to war-file and deploy it on my xubuntu laptop with Tomcat6, validation is omitted. The

Re: Session ID

2008-08-15 Thread Stephan Schröder
That would work for a action, but how to it for interceptor? Try this one: ServletActionContext.getRequest().getSession().getId(); /Stephan Original-Nachricht Datum: Fri, 15 Aug 2008 10:27:35 +0200 Von: Hrvoje Ban [EMAIL PROTECTED] An: Struts Users Mailing List

Re: RE: [S2]Validation with xml file not working

2008-08-15 Thread Stephan Schröder
? /Ylva On Fri, Aug 15, 2008 at 10:15 AM, Stephan Schröder [EMAIL PROTECTED] wrote: actually, now i have the same problem (or a variation of it) :-) I develop under Vista with eclipse. When i deploy the webapp from eclipse (to Tomcat6) validation works fine. But when i export to war-file

Could not find property [struts.valueStack] using struts 2.1.2

2008-08-14 Thread Stephan Schröder
hi, this is my first post to the mailing list so i hope this is the right place/email address. I wrote a 'hello world'-application using struts 2.1.2 using freemarker-result. The application works fine but the following warnings are displayed: INFO: Server startup in 757 ms 14.08.2008 15:12:34

Re: [S2]Validation with xml file not working

2008-08-14 Thread Stephan Schröder
What could it be? i don't know which interceptors are on your default stack. Does 'workflow' come after 'validation'? /Stephan Original-Nachricht Datum: Thu, 14 Aug 2008 18:20:33 +0200 Von: Ylva Degerfeldt [EMAIL PROTECTED] An: Struts Users Mailing List