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 ( http://www.nabble.com/file/p23256861/MosaicUploaderTest.zi

Re: Unable to find interceptor class referenced by ref-name gwt

2009-03-16 Thread Stephan Schröder
> Unable to find interceptor class referenced by ref-name gwt solved, i forgot to extend the example-package from gwt-default instead of struts-default. Stephan Schröder wrote: > > When deploying my HelloWorld-struts2-gwt-application i get this exception: > > SCHWERWIE

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 - file:/D:/Programme/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/struts2gwt-helloworld/W

Re: Struts 2 and GWT in Hosted Mode?

2009-03-13 Thread Stephan Schröder
olkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=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 launch

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: http://www.nabble.com/Struts

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 ar

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: util.servlet.UserTimeoutListener I assume that 1) this class will be instanciated as a singleton. 2) Spring will have nothing to do with the instanciation. Am i rig

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
1 There's some tricky use of recursion. Regards, 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->...-> I

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 AuthenticationInterce

Re: DefaultWorkflowInterceptor doesn't validate anymore!?

2008-10-09 Thread Stephan Schröder
t;If true and the action is Validateable call validate()" contradict itself? 3) If booth 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]> > w

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

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

2008-08-30 Thread Stephan Schröder
gt; com.opensymphony.module.sitemesh.filter.PageFilter > > > struts-prepare > /* > > > sitemesh > /* > > > struts-execute > /* > > > musachy > > On Sat, Aug 30, 2008 at 9:24 AM, Stephan Schröder <[EMAIL

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

2008-08-30 Thread Stephan Schröder
following link helped me: > > http://www.roseindia.net/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 expor

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

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 since

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 b

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 yo

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

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? > > > > > > > > > > > Looks good (if fruit1 is accessable bei a getter in the action class). Does it work for you? > > > > > > > > > > > I'm not sure why the push

Re: RE: Action as Welcome File

2008-08-21 Thread Stephan Schröder
> > struts2 > /* > REQUEST > FORWARD > INCLUDE > ERROR > this result in an xml-error: The content of element type "filter-mapping" must match "(filter-name,(url-pattern|servlet-name))". > In my web.xml I have: > > > index.jsp > >

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 w

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: RE: [S2] Does struts set null values for pojo fields?

2008-08-21 Thread Stephan Schröder
ally remove an object just > because one of it's properties is set to null." > > This is pretty much what I was looking to do, except that I was hoping > struts2 could automatically remove an object if *all* of it's properties were > null, not just one. Would your answ

Re: [S2] Iterate through two lists

2008-08-21 Thread Stephan Schröder
doesn't work. No, there is nothing in > log. > > -- > Regards, Milan > > > newton.dave wrote: > > > > --- On Wed, 8/20/08, Milan Milanovic wrote: > >> No, this doesn't work. I get: "500 Internal Server > >> Error" if I use

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

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

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 yo

Re: struts 2.0.11.2 problem

2008-08-20 Thread Stephan Schröder
> Initially when i don't have in my session > > 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 on the freely available

Re: struts 2.0.11.2 problem

2008-08-20 Thread Stephan Schröder
your user is in the session not on the value stack therefore you should try this: /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 problem > Hi all, > > > >

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

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: > View this message in context: > http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ide

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 > http://struts.apache.org/2.x/docs/result-t

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 Pa

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 /intro.html Advantages: -no own Action class (ActionSupport is used) -your static resources don't get processed which should save time -you can still your Security interceptors to check t

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 works too. > > AFAIK the "#" syntax will work only if the variable was defined as a named > stack context variable via something like or as the value of a > "var" (&q

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

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

2008-08-17 Thread Stephan Schröder
i'm pretty sure 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 False result:

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

2008-08-15 Thread Stephan Schröder
Factory.parseValidators > > Anyone who has any ideas why this is happening? > > Stephan, are you getting this exception too? > > /Ylva > > On Fri, Aug 15, 2008 at 10:15 AM, "Stephan Schröder" <[EMAIL PROTECTED]> > wrote: > > > > actually, now

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
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 validation-fil

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" > Betref

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