Hi XML
You can write your own ActionMapper.
Look:
http://struts.apache.org/2.x/docs/actionmapper.html
I used debuger and I watched DefaultActionMapper. It help me.
Jeromy Evans - Blue Sky Minds wrote:
XML User wrote:
Hi,
How can I implement the URL mapping so that our URL will
Hi,
We are using struts2 2.0.6 and now we have a requirement to have some Access
Control into it,
That is we got some functions points and each ROLE got different access rigts
against each function, if someone login to the System the UI will be presented
based on these configurations.
What I
Hi there,
I've been using sx tags for a while now and I still think they are very nice
and simple to use, however I found some critical problems which make me move
from them.
One of the problems is that if in the returned AJAX content is included any
sx tag then if there is any javascript in the
Hi Everybody,
First I wanted to say hello to everybody here, as this is my first mail in
the list. I also wanted to apologize if my english is not good enough, but
i'll do my best!
This is the problem I am having:
I am building an application using tomcat 5.5 and struts. Let's say that the
base
On Thu, Aug 14, 2008 at 1:56 PM, tom tom [EMAIL PROTECTED] wrote:
Hi,
We are using struts2 2.0.6 and now we have a requirement to have some Access
Control into it,
That is we got some functions points and each ROLE got different access rigts
against each function, if someone login to the
Hi,
I have an action class which implements preparable . It works fine but i
noticed that the prepare method inside the action class gets invoked twice
before getting to the intended method.In first invocation the variables
inside the action class are all null , However in second invocation they
I have an action class which implements preparable . It works fine but i
noticed that the prepare method inside the action class gets invoked twice
before getting to the intended method.In first invocation the variables
inside the action class are all null , However in second invocation they
Thanks Lukasz for quick reply.But the action class that has the prepare
method has four methods .
Lukasz Lenart wrote:
I have an action class which implements preparable . It works fine but i
noticed that the prepare method inside the action class gets invoked
twice
before getting to the
Thanks Lukasz for quick reply.But the action class that has the prepare
method has four methods .
Just leave prepare() empty (you can also setup interceptor to don't
call prepare() method) and implement prepareYourMethod()
Regards
--
Lukasz
http://www.lenart.org.pl/
--- On Thu, 8/14/08, Jayeshpowar wrote:
Thanks Lukasz for quick reply. But the action class that has
the prepare method has four methods.
The salient point was that prepare() will be called before any method in the
class, regardless of how many methods the class has.
If you're calling a
hi all,
i'm using struts 2.0.11.2 with portlets (Apache Pluto 1.1.5).
I have problem with struts url tag. I have something like this:
-
%@ page contentType=text/html; charset=UTF-8 %
%@ taglib prefix=s uri=/struts-tags%
[..]
s:iterator value=%{menu}
lt;a href=s:url
You're right, that is indeed a missing feature. Please register a JIRA
issue for this.
Nils-H
On Thu, Aug 14, 2008 at 1:29 PM, cvx22 [EMAIL PROTECTED] wrote:
hi all,
i'm using struts 2.0.11.2 with portlets (Apache Pluto 1.1.5).
I have problem with struts url tag. I have something like
--- On Thu, 8/14/08, Lukasz Lenart wrote:
Just leave prepare() empty (you can also setup interceptor to don't
call prepare() method) and implement prepareYourMethod()
IMO it's preferable to simply not implement prepare() rather than leave it
blank (which is misleading).
Configuring a
Hi,
I think you can handle this by the tomcat configuration.
see this link for instructions:
http://tomcat.apache.org/tomcat-6.0-doc/proxy-howto.html
but i have not test it myself.
Miguel Cohnen schrieb:
Hi Everybody,
First I wanted to say hello to everybody here, as this is my first mail
I'm using Struts 2.0.11 release.
Within my JSP page, I'm displaying a list of elements which all have an
image. Those images are displayed using an action with stream result.
In Firefox, everything works fine, in IE 7.0, all images shown are the same,
I didn't have a chance to take a look with
Hi,
I am trying to implement a hibernate UserType for all the monetary
amounts in my application. I follow the example given in Manning - Java
Persistence with Hibernate Chapter 5.3 .
I am having difficulties to set and retrieve the value from a jsp due to
a lack of understanding how this is
( also tried: s:textfield key=bid.amount.amount / )
This is correct
public Monetary getAmount() { return amount; }
and Monetary beeing:
public class Monetary implements Serializable{
private final BigDecimal amount;
private final Currency currency;
public Monetary(BigDecimal
Hi.
I am wondering if it is possible to hook into the render and action phase of
the portlet execution?
If there is not yet such a possibility, where to look for to do this
(something like extending dispatcher portlet ... anything else).
--
Bitte senden Sie mir keine Word- oder
It worked like a charm! You just need to add a special connector that handle
proxy requests like explained in the link below.
Thank you very very much!
On Thu, Aug 14, 2008 at 2:08 PM, duschhaube [EMAIL PROTECTED] wrote:
Hi,
I think you can handle this by the tomcat configuration.
see this
Lukasz-
relvant doc located at
http://www.docjar.com/docs/api/com/opensymphony/xwork2/conversion/impl/InstantiatingNullHandler.html
what is the value of property named ReflectionContextState#CREATE_NULL_OBJECTS
?
so coding the constructor fixes the problem in which case your Null object is a
I am trying to retrofit the Ajax JSP Tag Library server side *servlet *code
to fit the S2 lifecycle. I have a particular situation where my custom
result works if I:
PrintWriter pw = response.getWriter();
pw.write(request.getParameter(blah, blah, blah);
pw.close();
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
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
script language=JavaScript
window.history.forward(1);
/script
Is there a way to disable the back button in Struts ?
Thanks
=
Ce message et toutes les
Lukasz Lenart schrieb:
( also tried: s:textfield key=bid.amount.amount / )
This is correct
public Monetary getAmount() { return amount; }
and Monetary beeing:
public class Monetary implements Serializable{
private final BigDecimal amount;
private final Currency currency;
Hi,
I have class structure as follows:
class Store {
ListFruit fruits;
Fruit choosenFruit;
}
So, I need in my jsp to represent fruits, but one of those fruits must be
choosen any time (in choosenFruit object, which select one Fruit object from
fruits list) during user input, e.g. when
Hi,
In sx:autocompleter tag in struts2, i am unable to call any javascript
event(functions).
for example,
sx:autocompleter list=practiceList name=emailList onclick =getData();/
and in the getData() function i am just checking with one alert message.
I want to know
Hello,
I have recently integrated my struts2 apps with spring security for
authentication. We use an implementation CAS for single-sign-in/out. I am now
looking to add authorization, and I was wondering if anyone had implemented an
authorization interceptor with spring-security, and how
On Thu, Aug 14, 2008 at 10:38 PM, Relph,Brian [EMAIL PROTECTED] wrote:
Hello,
I have recently integrated my struts2 apps with spring security for
authentication. We use an implementation CAS for single-sign-in/out. I am
now looking to add authorization, and I was wondering if anyone had
Hi everyone,
I'm trying to use the Validation framework by creating a file called
NameAndCvAction-validations.xml, for my action NameAndCvAction, but
it's not working the way it should.
I've stepped through the code and it seems that the validations that
should have been made through the xml file
Did you check also the deployment, on the server? Eclipse will not
copy other files then Java classes when you will deploy. Check if xml
file is in the same package after deploy to the server.
Regards
--
Lukasz
http://www.lenart.org.pl/
Maybe it's just because of the misspelling.
If you'd like to do validation this way,
your xml-file should be named
NameAndCvAction-validation.xml without
the s at the end.
Ylva Degerfeldt wrote:
Hi everyone,
I'm trying to use the Validation framework by creating a file called
Lukasz, I'm not sure how to check the deployment but I was thinking
that too. (I'm using NetBeans 5.5.1 and Sun App. server.)
André, it's funny you should mention that because I just changed the
name From .-validation.xml to -validations.xml because they
must have misspelled it in one
how can map all request to struts action servlet ?
will this work
url-pattern/*/url-pattern
Worked fine using dispatcher.forward(request, response);
On Thu, Aug 14, 2008 at 8:23 AM, [EMAIL PROTECTED] wrote:
I am trying to retrofit the Ajax JSP Tag Library server side *servlet *code
to fit the S2 lifecycle. I have a particular situation where my custom
result works if I:
Hi
When you see struts-default.xml, you find out that the
paramsPrepareParamsStack call the interceptor params twice.
You can set up your struts-default.xml or in struts.xml define your own
modified interceptor stack:
struts
package name=manager namespace=/ extends=struts-default
Kibo wrote:
Hi
When you see struts-default.xml, you find out that the
paramsPrepareParamsStack call the interceptor params twice.
You can set up your struts-default.xml or in struts.xml define your own
modified interceptor stack:
struts
package name=manager namespace=/
Pascal_ wrote:
I'm using Struts 2.0.11 release.
Within my JSP page, I'm displaying a list of elements which all have an
image. Those images are displayed using an action with stream result.
In Firefox, everything works fine, in IE 7.0, all images shown are the same,
I didn't have a chance to
Fernandes Celinio SGCF wrote:
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
Well, obviously; Javascript runs on the client, actions run on the server.
script language=JavaScript
window.history.forward(1);
/script
Is there a way to disable the back button
Milan Milanovic wrote:
Hi,
I have class structure as follows:
class Store {
ListFruit fruits;
Fruit choosenFruit;
}
So, I need in my jsp to represent fruits, but one of those fruits must be
choosen any time (in choosenFruit object, which select one Fruit object from
fruits list) during
Might be a caching issue
in the action pass something random as a param and see if it works like
s:url id=imageUr1l
value=/Something/displayExerciceImageAction.action?position=One
for the next image
s:url id=imageUrl2
value=/Something/displayExerciceImageAction.action?position=Two
etc..
have u tried
sx:autocompleter list=practiceList name=emailList onclick
=javascript:getData();/
rajanikanth786 wrote:
Hi,
In sx:autocompleter tag in struts2, i am unable to call any javascript
event(functions).
for example,
sx:autocompleter list=practiceList
Try to use the topics instead, check the documentation.
On 8/14/08, dynamicd [EMAIL PROTECTED] wrote:
have u tried
sx:autocompleter list=practiceList name=emailList onclick
=javascript:getData();/
rajanikanth786 wrote:
Hi,
In sx:autocompleter tag in struts2, i am unable to
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
yes .. vanilla config from struts-default.xml
!-- Sample validation and workflow stack --
interceptor-stack name=validationWorkflowStack
interceptor-ref name=basicStack/
interceptor-ref name=validation/
interceptor-ref
I think he was asking the original poster if *his* stack included those
interceptors in the correct order, since it's his validation that isn't working
properly.
Dave
--- On Thu, 8/14/08, Martin Gainty [EMAIL PROTECTED] wrote:
yes .. vanilla config from struts-default.xml
!-- Sample
Hi guys
I'm close to finishing my 1st project with struts2, which I'm quite excited
about. I've gotten around to validation (!).
I'm having some issues getting validation to work on one of my actions. I
can't reference the variables from the web page in order to validate them.
I've named the
46 matches
Mail list logo