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
> 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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
> > 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?
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
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
> 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
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
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
> 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
>
> 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
>
>
> 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
> 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
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
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
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
> 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
> 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
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,
>
>
>
>
> >> 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
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
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
> 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
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
> --- 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
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
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:
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
> 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"
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
> 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
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
45 matches
Mail list logo