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 (
When deploying my HelloWorld-struts2-gwt-application i get this exception:
SCHWERWIEGEND: Exception starting filter struts2
Unable to load configuration. - interceptor-ref -
=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
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:
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 array of
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
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:
,
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
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:
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
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
/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
-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
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
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
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
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?
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
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
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.
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
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:
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
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
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
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
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
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:
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.
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
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
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
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
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
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
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
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
--- 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
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
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
?
/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
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
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
44 matches
Mail list logo