Hi All,
I am facing a similar problem. I am using Struts 1.2.
I am setting session attributes in an Action -- say Action A. Then I move to
the next page and on this page I open a pop-up which calls another Action
-- say Action B.
Now, when I try to access the attributes set by Action A in
When I try to use s:doubleselect/ ,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
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.
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
submit
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
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
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.
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
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:
s:bean name=dk.frojonck.pingtest.graphic.ResultsDetail id=result
s:param
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
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.
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:
s:bean
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
Perhaps someone can order this XML to produce the desired result?
field name=model.password
field-validator type=requiredstring
message key=requiredstring /
/field-validator
/field
field name=model.confirmPassword
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)
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
--- stanlick [EMAIL PROTECTED] wrote:
validator type=expression
model.password.equals(model.confirmPassword)
message
${getText(nomatch)} ${model.password} and
${model.confirmPassword}
/message
/validator
I wouldn't even think that would pass DTD validation;
doesn't the
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
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
I'm pretty sure you need to have param name=expression /param around
your expression.
Z.
Perhaps someone can order this XML to produce the desired result?
field name=model.password
field-validator type=requiredstring
message key=requiredstring /
/field-validator
/field
field
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
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?
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:
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.
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
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
You might also consider Tiles-2 but not using the S2 plugin. Then you aren't
limited by the need to declare the result type= 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
Hi,
Can anyone please help me with loading a s:select 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 :
s:select
name=stateList
list=%{#{getText('list.states')}}
/
but this
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,
I have this code in my jsp:
html:select property=selectedList multiple=true
html:optionsCollection property=oList value=id
label=description/
/html:select
the property oList is a typed List in the form and it works fine.
The problem is that i can only map the property
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:
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 Dojo
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
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
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 s:datetimepicker/, it works well except that the
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 countryOptions
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
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
maybe you forget to add s:head theme=ajax/ between the head/ 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
39 matches
Mail list logo