Hello,
i had the same task and I did the following:
- my loginAction starts a method loginService. My service method calls
the dao (for example userDAO) to get the encrypted password, which is
saved in the database. Now my service method calls a method to encrypt
the form given password (i take t
hello friends,
I am developing a struts+hibernate application which
contains a login page. I am not sure of which tools or API's to use for
logn
Authentication and encription.
Can any bady suggest me which is best for login Authentication and what way
can i proceed for
Jeromy Evans wrote:
It would be simple enough for the DefaultActionMapper to check a flag as
well except I think this would also prevent the method="METHOD_NAME"
notation from being used in struts.xml as well.
Urk! I didn't realize that. If true, that definitely means the simple
solution is
Dale Newfield wrote:
Dave Newton wrote:
Does that deal with the submit button name thing?
--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:
I don't believe so. It just makes /home_update.do execute the
doUpdate() method (assuming it does the camelcase stuff implied). It
doesn't change the
Dale Newfield wrote:
Jeromy Evans wrote:
I always use the following configuration to minimise the vulnerability::
With that setting, only methods with the prefix "do" in their name
can be executed.
ie. ?method:update calls doUpdate()
Even if that does exactly what you expect it does (whi
Dave Newton wrote:
Does that deal with the submit button name thing?
--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:
I don't believe so. It just makes /home_update.do execute the
doUpdate() method (assuming it does the camelcase stuff implied). It
doesn't change the naming scheme for all
Jeromy Evans wrote:
I always use the following configuration to minimise the vulnerability::
With that setting, only methods with the prefix "do" in their name can
be executed.
ie. ?method:update calls doUpdate()
Even if that does exactly what you expect it does (which I'm not
convinced
Hi,
I am using Struts2, Tile2, Spring2, Display Tag.
I am implementing tabbed panel and all the tabs make remote calls. Each Tab
will contain a table which are implemented using DisplayTag. I am
implementing this table in a separagte JSP and want its content to be added
to tab in the main jsp after
Does that deal with the submit button name thing?
d.
--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:
> Dale Newfield wrote:
> > Don Brown wrote:
> >> Little known fact, but you can specify the method
> via:
> >>
> >> "?method:MY_METHOD_NAME"
> >>
> >> This code exists to support the method attribute
Dale Newfield wrote:
Don Brown wrote:
Little known fact, but you can specify the method via:
"?method:MY_METHOD_NAME"
This code exists to support the method attribute on the submit tag,
allowing you to submit the form to different methods based on what
button is clicked.
I wondered how the s
On 11/12/07, Gary Affonso <[EMAIL PROTECTED]> wrote:
> Ted Husted wrote:
> > Submit a patch :)
>
> I thought about it. But then I thought that I'm not feeling qualified
> to add generics support to a public API (and a heavily used one, at that).
>
> I'm pretty good at being a *user* of generic cla
--- Emi Lu <[EMAIL PROTECTED]> wrote:
> Using Struts2.0.11, I have this line in my jsp,
> which always cause the exception?
>
> "
> rel="stylesheet" type="text/css">
>
> Did I do something wrong?
You didn't say what the exception was.
Is an S1 tag?
d.
--
Don Brown wrote:
Little known fact, but you can specify the method via:
"?method:MY_METHOD_NAME"
This code exists to support the method attribute on the submit tag,
allowing you to submit the form to different methods based on what
button is clicked.
I wondered how the submit tag argument wor
Ted Husted wrote:
Submit a patch :)
I thought about it. But then I thought that I'm not feeling qualified
to add generics support to a public API (and a heavily used one, at that).
I'm pretty good at being a *user* of generic classes but I confess that
creating generic classes/methods inti
That approach works except in your following note it should be
c:out value="${item}" />
Thanks a lot.
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Monday, November 12, 2007 11:07 AM
To: Struts Users Mailing List
Subject: Re: Ti
For posterity (and to embrace my schizo tendencies by continuing this
conversation with myself)...
It now turns out that setting the FieldErrors via getFieldErrors() may
not be such a good idea after all. Reading the code makes it look OK,
but the API docs for XWork's ActionSupport.getFieldEr
But... how to remove them?? It prints thousand of warnings on my app.
Jeromy Evans - Blue Sky Minds wrote:
>
>
>> This is somehow connected to my question before on a migration guide, is
> it needed?
>
> There's no migration guide from 2.0.x to 2.1.x. I agree one will be
> needed because yo
Hello,
Using Struts2.0.11, I have this line in my jsp, which always cause the
exception?
" rel="stylesheet"
type="text/css">
Did I do something wrong?
Thanks!
-e
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Little known fact, but you can specify the method via:
"?method:MY_METHOD_NAME"
This code exists to support the method attribute on the submit tag,
allowing you to submit the form to different methods based on what
button is clicked.
Don
On Nov 13, 2007 2:29 AM, Jim Theodoridis <[EMAIL PROTECTE
If you send in a param named "method:${aMethodName}"
would that work? Isn't that how the submits (for
example) work? I was looking at this a couple of weeks
ago but forgot already :(
d.
--- Ian Roughley <[EMAIL PROTECTED]> wrote:
> I wonder if you could use OGNL, i.e. ${paramName},
> although I
I wonder if you could use OGNL, i.e. ${paramName}, although I have not
tested it.
[EMAIL PROTECTED] wrote:
as far as I know, no :-(
How can i use a parameter to choose wich action executed?
I have a crud action etc user.action
is it possible to choose the action fires with a paramenter
In the action mapping you can also use the method attribute, so for a single
action class you could have multiple actions, each using a different method.
Here is one of my actions where I have a list method.
/securitySelector.jsp
In the same class I use the execute method to save the data
This worked! Thank you, Wes!!
<@s.property value="@[EMAIL PROTECTED]('${Session.USER.customer.phone}')"/>
On Nov 9, 2007 9:29 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
> Have you tried to use a struts2 tag with OGNL? If I am understan
Not out of the box, correct (AFAIK, anyway :)
I'd probably take a look at your implementation,
however: if these are coming off of a link then
they're built easily with tags, and
submits can define a "method" attribute.
(It's also a pretty no-brainer implementation, if
you're dead-set on doing i
as far as I know, no :-(
> How can i use a parameter to choose wich action executed?
>
> I have a crud action etc user.action
> is it possible to choose the action fires with a paramenter like
> user.action?action=list rather than user!list.action?
>
>
>
> [EMAIL PROTECTED] wrote:
>> using wil
2007/11/12, Zhang, Larry (L.) <[EMAIL PROTECTED]>:
>
>
>
>
>
>
>
>
>
>
>
I think that you could use the list attribute:
My problem is:
I have 10 (or more ) css files, some pages use 2 of those, some of those
uses 5 of those, some pages use 6 of those, and this combination is
totally random. Then we I create tiles template, I can't put all these
css in the template, instead I thought I can do the following:
My temp
--- Emi Lu <[EMAIL PROTECTED]> wrote:
> I'd like to use all nice features of the new tags,
> such as label,
> tooltips, etc. Even on the tutorial page:
>
http://www.roseindia.net/struts/struts2/struts2uitags/checkbox-tag.shtml
>
> If users want to display checkbox in new line, users
> can just a
2007/11/12, Zhang, Larry (L.) <[EMAIL PROTECTED]>:
>
> Can I define a constant in tiles-def.xml so that I can used it in all
> places inside this file?
No, but probably you can do it in another way.
What do you want to do exactly?
Antonio
P.S.: If you are using Tiles 2, please ask this questio
How can i use a parameter to choose wich action executed?
I have a crud action etc user.action
is it possible to choose the action fires with a paramenter like
user.action?action=list rather than user!list.action?
[EMAIL PROTECTED] wrote:
using wildcard:
action URL for method login
Can I define a constant in tiles-def.xml so that I can used it in all
places inside this file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Use . This will allow you to have 100% control
over the form html. Notice that by dong this you will have to handle
all the formatting of the table by yourself.
I'd like to use all nice features of the new tags, such as label,
tooltips, etc. Even on the tutorial page:
http://www.roseindia.net
Probably not, but you can create your own theme that
does whatever you want, or you can do the "grunt work"
that the existing themes do for you by hand.
d.
--- Emi Lu <[EMAIL PROTECTED]> wrote:
>
>
> > The default struts2 tags use themes that determine
> how they are
> > formatted as html[1].
Hello,
I am using Struts 2.0.9. Updownselect sent to action ALL its options.(Throgh
javascript on submissions all options are set to "selected". Can I change it
so, that it will send only selected by user option?
I think I must change something in javascript, but where?
Thanks
Julia
--
The default struts2 tags use themes that determine how they are
formatted as html[1]. The default theme 'xhtml' wraps each form input
inside a table cell and prepends it with a label to the left or above.
The css_xhtml theme uses the same layout with divs.
You have two options:
- use the
--- Rajagopal_Yendluri <[EMAIL PROTECTED]>
wrote:
> Hi Dave, can you post your Action code here...
Hi,
What action code?
d.
>
> Regards,
> Rajagopal Y
> HCU-Consulting & Enterprise Solutions.
> Phone: (C) +91-9886876114 / (W) 6658 3685.
> -Original Message-
> From: Stefan Meisner Larse
using wildcard:
action URL for method login: /home_login
see : http://struts.apache.org/2.x/docs/wildcard-mappings.html
> Hello
>
> In struts 1.x was using the DispatchAction and with a parameter like
> action choosed wich action executed. Is there a way to do thiw in S2?
>
> tnx
>
>
Hello
In struts 1.x was using the DispatchAction and with a parameter like
action choosed wich action executed. Is there a way to do thiw in S2?
tnx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
oops, didn't read the message fully. Should read -
On 11/12/07, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
>
>
>
>
> That should work.
>
> -Wes
>
> On 11/12/07, ashish shrivastava <[EMAIL PROTECTED]> wrote:
> > i want to check whether my arraylist contains a particular value or not,
> > i dont
That should work.
-Wes
On 11/12/07, ashish shrivastava <[EMAIL PROTECTED]> wrote:
> i want to check whether my arraylist contains a particular value or not,
> i dont want to use scriplets , how it can be done using JSTL/struts tags.
>
> Thanks
> Ashish
>
>
Hi all,
I try to apply validation in project and I have a problem with saving
optiontransfer lists (List): when form is submitted and validator returns
error, my lists with data for optiontransfer are empty. How can I save this
data?
Please help me with it.
--
View this message in context:
htt
I can't close session in whole project. The code doesn't let me to close the
session because I pass variables from action files to jsp files in the whole
project. Do you have any suggestions to close the sessions or manage the
session in whole project. I think, because of sessions being open, I
Hi Dave, can you post your Action code here...
Regards,
Rajagopal Y
HCU-Consulting & Enterprise Solutions.
Phone: (C) +91-9886876114 / (W) 6658 3685.
-Original Message-
From: Stefan Meisner Larsen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 12, 2007 5:53 PM
To: Struts Users Mailing L
Hi Dave
Thanks a lot - it was the validation that caused me problems.. :-)
/Stefan
2007/11/12, Dave Newton <[EMAIL PROTECTED]>:
>
> Is there any validation being run on the UserAction
> class?
>
> d.
>
> --- Stefan Meisner Larsen <[EMAIL PROTECTED]>
> wrote:
>
> > Hi all
> >
> > I would really a
Is there any validation being run on the UserAction
class?
d.
--- Stefan Meisner Larsen <[EMAIL PROTECTED]>
wrote:
> Hi all
>
> I would really appreciate a little help here... ;-)
>
> I am trying to call an Action using a link:
> http://localhost:8080/bjo/user/list.action
> The Action is defin
Is there any validation being run on the UserAction
class?
d.
--- Stefan Meisner Larsen <[EMAIL PROTECTED]>
wrote:
> Hi all
>
> I would really appreciate a little help here... ;-)
>
> I am trying to call an Action using a link:
> http://localhost:8080/bjo/user/list.action
> The Action is defin
theme="simple" removes the table formatting.
http://struts.apache.org/2.x/docs/themes-and-templates.html
--- SudarshanP <[EMAIL PROTECTED]> wrote:
>
> I too have the same problem
> anybody could figure out the solution
>
> Thanks in advance
>
>
>
> Filippo De Luca wrote:
> >
> > Dear Strtu
Hi all
I would really appreciate a little help here... ;-)
I am trying to call an Action using a link:
http://localhost:8080/bjo/user/list.action
The Action is defined as:
/user/create.jsp
/user/create_init.jsp
/user/list.js
I too have the same problem
anybody could figure out the solution
Thanks in advance
Filippo De Luca wrote:
>
> Dear Strtuts users
> It is possible, in checkboxlist, to arrange checkboxes vertically?
>
> Thanks
>
> --
> Filippo De Luca
> [EMAIL PROTECTED]
> http://www.filosganga.it
> --
i want to check whether my arraylist contains a particular value or not,
i dont want to use scriplets , how it can be done using JSTL/struts tags.
Thanks
Ashish
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
50 matches
Mail list logo