The problem is cause by the apache httpserver.
I integrate Tomcat and Apache server together,When i just use
Tomcat as the server,it works.I have checked Apache's configure
file and found that all gifs and pngs are routed for apache to handle. I
comment these commands,then it works again.
But that
Add the result type :
action2
...
(redirect-action if you are in version before 2.0.9)
Sawan <[EMAIL PROTECTED]>
21/08/2007 08:50
Veuillez répondre à
"Struts Users Mailing List"
A
user@struts.apache.org
cc
Objet
Action within Action result
Hello Experts,
I want to
Hello Experts,
I want to call an Action within the Action result and I am trying following
Struts XML.
/Action2.action
But its not working.
How can I fulfill this requirement..?
I am really looking forward to get any solution as soon as possible...
Thanks
Sawan
--
View this messag
Thank you very much Zarar and Alvaro for your hints.
Yes. I'm using spring, and I'll take a look at Acegi, and maybe
Berkano, too.
Best regards.
--
Robi.
I'll take a look at the
Alvaro Sanchez-Mariscal wrote:
I agree. You should first try Acegi.
If your auth needs are very specific, you ca
*in the struts-default.properties file,the struts.serve.static is set true;
*
*why the icons still couldnot be displayed?*
*What should i do?Any other suggestions?*
2007/8/21, Jeromy Evans <[EMAIL PROTECTED]>:
>
> The resources are in the 2.0.9 jar under /org/apache/struts2/static
> They are ser
Please help me.
Action class code
/*
* AbstractUserRecordsAction.java
*
* Created on August 20, 2007, 6:04 PM
*/
package struts.action;
import hibernate.pojo.AbstractDetailsPojo;
import hibernate.pojo.AbstractLoginPojo;
import hibernate.pojo.AbstractUserInfoPojo;
import hibernate.pojo.Abstr
maybe you forget to add between the tag
2007/8/21, vamsi <[EMAIL PROTECTED]>:
>
> I am facing some problem with datetimepicker
> datetimepicker not showing up any thing on the browser(any browser)
> But the all the dojo scripts are getting loaded everything is happening
> Even the error console
I am facing some problem with datetimepicker
datetimepicker not showing up any thing on the browser(any browser)
But the all the dojo scripts are getting loaded everything is happening
Even the error console in FireFox browser is also clear without any error
is any specific reason for this I am us
The resources are in the 2.0.9 jar under /org/apache/struts2/static
They are served from the /struts path by the struts FilterDispatcher if
"struts.serve.static" is true (default)
If it successfully served the javascript from that path it should have
served the images. Perhaps have a look with
Hi Zarar,
I managed to solve the problem by using PreResultListener and find the
action info in ActionProxy.
Now I can load the collections base on method and result type :)
Thanks for your help.
Regards,
Boon Leng
Zarar Siddiqi wrote:
>
> You could implement Preparable and load countryOption
Nobody encountered this problem?
by the way,I use struts2.0.9. I type the path of the icon in the address bar
of IE,only got a Not found error ? Anyone knows why?
Seriously need your help.
2007/8/20, Andvar Woo <[EMAIL PROTECTED]>:
>
> when I use , it works well except that the icons of
> that
>
Hi Dilip Ladhani-2,
Thanks for you reply, I know your solution works on struts 1, but I'm using
struts 2.
How can I call validate method in my Action class explictly?
Thanks.
Regards,
Boon Leng
Dilip Ladhani-2 wrote:
>
> Well, here's what I do.
> 1) Have a private method (prepare??) in your a
Hi,
I have tried using Preparable and putting all the collections loading in
prepare(), but because my action contains multiple methods and each load
different kind of collections, end up every method call will retrieve all
the collections even though it's not using it. Is there anyway I able to
Hi,
Just checking one more time if someone has an answer to my below email. We
decided to go with XML validation, and as i understand it, we cannot have
validation files based on action methods, but can only name it by action
alias. This makes me create a new action alias entry in struts.xml for e
The ajax tags are just becoming stable using Dojo 0.4.2, which will be
included in Struts 2.1, I don't think Dojo 0.9 is going to make it
into that version.
musachy
On 8/20/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Dojo 0.9 have just been released. Struts 2.0.X includes Doj
Is it possible to use Zero Configuration in a JUnit test? It works great when
running my Actions in a container, but I'd like to have a similar feature
when running tests - just "new" an Action and it'll be autowired with
dependencies.
Thanks,
Matt
--
View this message in context:
http://www.n
Hi,
I have this code in my jsp:
the property oList is a typed List in the form and it works fine.
The problem is that i can only map the property selectedList to an array.
I wold like to map this property to a List or a Set. Is that possible?
Thanks,
JP
--
View this message in co
Hi,
Dojo 0.9 have just been released. Struts 2.0.X includes Dojo 0.4. When
will be included Dojo 0.9?.
Alvaro.
--
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL
Hi,
Can anyone please help me with loading a tag with a OGNL
list that's been configured in globalMessages.properties as follows :
list.states = 'AL':'Alabama', 'AK':'Alaska'
In the JSP, i'm having :
but this doesnt show me the list, but renders a single with
the list coming up as a String
You might also consider Tiles-2 but not using the S2 plugin. Then you aren't
limited by the need to declare the attribute. This leaves
you free to do other things with the 'type', like jsf, for instance.
- Ray Clough
Jeromy Evans - Blue Sky Minds wrote:
>
> Sol, I think they're both great a
My application has several modules (several struts-config files )and
each module has its own application.resources files.
How to handle multiple application.resource files ?
Sairam
-
Luggage? GPS? Comic books?
Check out fitting gift
Well, here's what I do.
1) Have a private method (prepare??) in your action class which is
responsible for populating all your Select boxes. This method is
called from your main Action method.
2) Call the validate method from your Action class explictly, instead
of setting "validate=true" in the s
I agree. You should first try Acegi.
If your auth needs are very specific, you can always develop a custom
interceptor.
Alvaro.
On 8/20/07, Zarar Siddiqi <[EMAIL PROTECTED]> wrote:
> If you're using Spring, it's probably a great idea to use Acegi
> Security to handle authentication/authorization
You could implement Preparable and load countryOptions in the prepare() method.
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
Zarar
On 8/20/07, Boon Leng <[EMAIL PROTECTED]> wrote:
>
> In my form, I have a select box which get the option value populate
If you're using Spring, it's probably a great idea to use Acegi
Security to handle authentication/authorization. I can't think of
anything it can't do.
http://www.acegisecurity.org/
There's also Berkano which doesn't do nearly as much as Acegi but can
handle most general AA problems:
http://ber
Hi all.
I need to implement Authentication and Authorization in
a S2 web application, and before reinventing the wheel, I'd
like to ask the list for hints and advice.
1) Is there built-in support in Struts2 for Authentication and
Authorization?
2) What are the best practices for AA in S2?
3)
This is not one of the supported patterns. Although, you should be able
to provide a TextProvider implementation to do what you want, rather
than using the implementation provided in ActionSupport.
/Ian
Hari Prasad wrote:
Hi frends,
I'm able to load my properties from classpath, provided all
I'm pretty sure you need to have around
your expression.
Z.
>
> Perhaps someone can order this XML to produce the desired result?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> model.password.equals(model.confirmPassword)
>
>
> ${getText("nomatch")} ${model.password} and
> ${model.confirmPas
Greetings,
I want to get the text of an url from a resource bundle. I have the
following test snippet from a jsp:
test:
test:
What I get on the output is something like this:
1. test:
2. test: /images/en/flash/intro.swf
Can anyone explain why the first version does not work
Hi,
Can I put the resource bundles in folder structure, so that all bundles of a
particular language will be in one folder and
like.. under
WEB-INF/classes/resources
can we have folders like fr,en,de and so on and in these folders bundles of
that language will present
will struts2 support this
Hi frends,
I'm able to load my properties from classpath, provided all are in the same
folder..
I mean, all my property files in different languages are in a single folder
and its working for me.
but now, since i have more property files, i want to make it more organised
and so
i want to put all p
--- stanlick <[EMAIL PROTECTED]> wrote:
>
> model.password.equals(model.confirmPassword)
>
> ${getText("nomatch")} ${model.password} and
> ${model.confirmPassword}
>
>
I wouldn't even think that would pass DTD validation;
doesn't the expression need to be in a param tag?
d.
--
I would choose sitemesh too beacause I found it more powerful, but I
would not choose it for speed !
I think that jsp includes are a lost more fast than page parsing ...
Alvaro Sanchez-Mariscal a écrit :
My recommendation is sitemesh. Absolutly.
Sitemesh uses servlet filters to decorate pa
Sol, I think they're both great and your should try both out You need
to decide which is more suitable for each application you're building.
If you use a lot of similar pages you'll appreciate the decorator
approach used by sitemesh. If you reuse a lot of components within a
page (and ajax) you
Perhaps someone can order this XML to produce the desired result?
model.password.equals(mod
Hi ,
I am newbie to Struts2. I have the following issue while configuring the
container managed security in Struts2 with Websphere Application Server 6.1.
..Need urgent assistance Please...
Issue:
I want to secure my web application using Container managed security by
using Websphere
isharatbabu wrote:
>
>
>
> Hi,
>
> I am facing with similar problem. Did u get the solution? if yes please
> help me soon.
>
> Response will be appreciated.
>
>
> torben wrote:
>>
>> Struts 2 question.
>>
>> In a jsp page I have a reference to a bean:
>>
>>
>>
>>
>>
>> My probl
My recommendation is sitemesh. Absolutly.
Sitemesh uses servlet filters to decorate pages (faster), while tiles
uses jsp includes (slower).
Alvaro.
On 8/20/07, sol myr <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We're just migrating to Struts2, and we're trying to decide between Tiles
> and Sitemesh
Hi,
We're just migrating to Struts2, and we're trying to decide between Tiles and
Sitemesh.
We've noticed that struts distribution (2.0.9) includes jars for both
frameworks.
Could anyone please tell if one of them is recommended over the other, or
serves as "standard de-facto" for
Hi,
I am facing with similar problem. Did u get the solution? if yes please help
me soon.
Response will be appreciated.
torben wrote:
>
> Struts 2 question.
>
> In a jsp page I have a reference to a bean:
>
>
>
>
>
> My problem is to set the parameter jobIdText, which need the val
that was very useful..Thank you sir. thank you very much..
Laurie Harper <[EMAIL PROTECTED]> wrote: Basically, the suggestion is to send a
redirect after processing the
form submission. Just set redirect="true" on the forward mapping for the
page you show after handling the form.
L.
abhiram w
In my form, I have a select box which get the option value populated from
database.
But when validation fail and return to input page (jsp page), I get the
error where the option value cannot be found.
I know this is because the method (e.g search) is not called to retrieve
data from database. I
Harper,
For display the details over a Iterator is not my problem.
It works fine for me
The problem with assigning values to the same List
U explained something like this
here irs in the sense it is a list in my action class which give a ir
object
if I want to reassign some
Hi Laurie,
The JSESSIONID is being appended to the URL, but what I noticed is that the
URL displayed at the bottom of the browser when I hover over the button that
opens the pop-up has a wrong action in the URL.
Say it should ideally have
http://localhost:8080/VWS/surveyorLookUp.do;jsessionid=12
red phoenix wrote:
I want to know how to get directory information in struts2 action,when I run
following action:
http://localhost:8080/struts2-blank-2.0.9/example/HelloWorld.action
I want to get the path value http://localhost:8080/struts2-blank-2.0.9 in
HelloWorld.action,such as:
public Str
Basically, the suggestion is to send a redirect after processing the
form submission. Just set redirect="true" on the forward mapping for the
page you show after handling the form.
L.
abhiram wrote:
! thanks for the response.. as i am new to struts, i did not understand the meaning of
"submi
If you have cookies disabled, the most likely explanation would be that
the URL you use to open the pop-up is not correctly encoded; make sure
it includes the jsessionid. If that's not the problem, try posting the
JSP and/or Javascript code responsible for opening the 'faulty' page.
L.
Shardu
When I try to use ,it does not work.
below is a segment of the exception thrown
Expression parameters.formName is undefined on line 76, column 43 in
template/simple/doubleselect.ftl.
The problematic instruction:
--
==> ${parameters.formName} [on line 76, column 41 in
template/simple/double
48 matches
Mail list logo