Eric
How would I prevent this from occurring?
[Questions]
1. Is it simply a matter of making my service an instance
variable of this action and making the login method synchronized? 2.
Are there situations where I would not want there to be a single
service
Hello,
Since struts2 actions are not shared amongst requests and if these
actions are Aware of one of the scopes they essentially have a copy
of that scope's parameters in a map. Lets say the application has
about 15 attributes and the session has about 7 attributes.
Que1. When you add a
in your
server? if
its other than 443 you need to specify it in your URL. try to see
your URL
is working in with out ajax.
if you like have a look at this plugin
http://code.google.com/p/struts2-ssl-plugin/
Thanks,
Nuwan
On 1/11/08, Mufaddal Khumri [EMAIL PROTECTED] wrote:
I am using
I am using prototype with Struts2.
One of my Ajax calls submits the login form (username and password)
to a struts action like this:
new Ajax.Updater(
'modal',
'/blog/authentication/login.action',
{
method: 'post',
parameters:
I am using ftl templates for the view and want to have access to the
collection that has all the error messages in the view.
(@s.actionerror/ just lists all the error messages one after the
other.)
So, if i have a form like such:
form
Email: input type='textfield' name='email'
Anyone who needs it:
You can access ${fieldErrors['your-field-name']}
-Mufaddal.
On Jan 11, 2008, at 2:53 PM, Mufaddal Khumri wrote:
I am using ftl templates for the view and want to have access to
the collection that has all the error messages in the view.
(@s.actionerror/ just lists all
, Mufaddal Khumri wrote:
Anyone who needs it:
You can access ${fieldErrors['your-field-name']}
-Mufaddal.
On Jan 11, 2008, at 2:53 PM, Mufaddal Khumri wrote:
I am using ftl templates for the view and want to have access to
the collection that has all the error messages in the view
Okay that actually works , I had some problem else where that
resulted in what I saw. So the solution to my original problem works
if anybody needs it.
On Jan 11, 2008, at 4:06 PM, Mufaddal Khumri wrote:
Apparently thats not working any pointers as to how i could get my
errors out
Hi,
Struts2 actions can implement one or all the interfaces to become
Application, Session, Request aware. Struts2 then basically injects
all the attributes in that particular scope in a map in your action.
Have 3 questions so far:
Que 1. Since these actions have their own copy of lets
I have a struts config file with the following:
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
package name=authentication namespace=/authentication
extends=mypackage
action
That was an oversight on my part .. I just changed the type to
redirect. Instead of the URL I send the action a
request.getRequestURI + request.getQueryString (if any) and that now
works good as a champ.
-Mufaddal.
On Jan 9, 2008, at 9:23 AM, Dave Newton wrote:
--- Mufaddal Khumri
Hi,
I am using struts 2.0.9 ... where do you find the dojo plugin?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Lets say I have an action and some of the properties being set on
that action are to be validated which I can do a number of ways. Is
there a way in Struts2 to tell the system not to valid the framework
the first time the action is accessed:
[Turn validation off]
.x/docs/can-we-use-acegi-security-with-
the-framework.html
HTH, Ted.
http://www.StrutsMentor.com/
On Jan 3, 2008 11:47 PM, Mufaddal Khumri
[EMAIL PROTECTED] wrote:
Am trying to understand the best practice if any for a
ValidateLoginInterceptor of sorts. In the code below, if the login is
valid
Basically I am trying to access some parameters in an interceptor
since the interceptor needs to do something based on the values of
these parameters. Any action that this interceptor is applied to does
not need these parameters.
In order to do this:
If I have an ftl file with a form like
Am trying to understand the best practice if any for a
ValidateLoginInterceptor of sorts. In the code below, if the login is
valid then we make a call to:
return actionInvocation.invoke();
In case the login information was incorrect, what should one do?
return ActionSupport.ERROR
I need to break my struts.xml into modules. So I came across this
page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-
strutsxml-file-into-smaller-pieces.html
Accordingly, I tried this:
struts.xml:
==
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts
at this pretty quickly it looks like you left out the class
for your
action=test
On Jan 2, 2008 2:03 PM, Mufaddal Khumri
[EMAIL PROTECTED] wrote:
I need to break my struts.xml into modules. So I came across this
page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-
strutsxml-file
Dave,
I managed to get it working. The problem was that I had my struts.xml
and struts-cw.xml inside of WEB-INF/ instead of WEB-INF/classes/
Thanks.
On Jan 2, 2008, at 8:50 PM, Dave Newton wrote:
--- Mufaddal Khumri [EMAIL PROTECTED] wrote:
package name=cw namespace=/cw extends=struts
Hello,
In Struts old we used to do this in struts.xml:
!-- secure plugin --
plug-in className=org.apache.struts.action.SecurePlugIn
set-property property=enable value=true/
set-property property=addSession value=true/
/plug-in
What is the struts 2 way of securing your actions?
Hello,
===
My web.xml:
===
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-nameGlop/display-name
filter
filter-namestruts2/filter-name
21 matches
Mail list logo