Could you use plain text when sending message to this mailinglist?
2016-01-08 7:52 GMT+01:00 punter :
>
> My application displays the login page, but cannot login. On the login page,
> user enters the username and password but on pressing the login button
> nothing happens.
> We
My application displays the login page, but cannot login. On the login page,
user enters the username and password but on pressing the login button nothing
happens.
We have in our jsp : <s:form id="loginForm" name="loginForm"
action="login" namespace="/fra
rm.
>
> (*Chris*)
> On May 19, 2011 2:07 AM, "vasslee" wrote:
>> Hi All,
>>
>> I have struts login page.10 concurrent users logged that screen.Now
>> 1.How many instances are created in ActionServlet?.
>> 2.How many instances are created in Act
You appear to be askin about astruts 1.x, since 2.x doesn't make use of
ActionForm's any longer. So, in Struts 1.x, there would be one instance of
ActionServlet ans ten instances of ActionForm.
(*Chris*)
On May 19, 2011 2:07 AM, "vasslee" wrote:
> Hi All,
>
>
Hi All,
I have struts login page.10 concurrent users logged that screen.Now
1.How many instances are created in ActionServlet?.
2.How many instances are created in ActionForm?.
Regrads,
Vass
--
View this message in context:
http://struts.1045723.n5.nabble.com/Login-Page-tp4408957p4408957.html
Sanjaya Kumar Patel wrote:
I saw ACEGI a bit and then am thinking to first try writing own
interceptor - basically extending the suggestion in the book "Apache
Struts 2 Web 2.0 Projects." Will post the code once successful.
For security this is pretty much always a mistake. You don't want bugs
> DN> ACEGI^H^H^H^H^HSpring Security.
> Sanjaya, Spring Security will remember which URL user was trying to access
> before the login and will replay that URL after successful login .
> However, I'm not aware of Spring Security ability to replay POST data from
> a form.
Dale, Harun, Thanks a
On Today at 1:14pm, DN=>Dale Newfield wrote:
DN> Sanjaya Kumar Patel wrote:
DN> > Curious to know what is the common practice. Would like to hear if
DN> > people are using some established libraries or pattern etc.
DN>
DN> ACEGI^H^H^H^H^HSpring Security.
DN>
DN> -Dale
DN>
+1.
Sanjaya, Spring
Sanjaya Kumar Patel wrote:
Curious to know what is the common practice. Would like to hear if
people are using some established libraries or pattern etc.
ACEGI^H^H^H^H^HSpring Security.
-Dale
-
To unsubscribe, e-mail: user-un
> If a requires authentication, don't render it until the
> user is logged in.
>
> If you are worried about the user's session timing out before
> the form is submitted, implement some sort of javascript timer
> that (after a period equal to a session timeout), pops up a
> modal login form.
> Subject: RE: How to get Login page while submitting a data form
>
>
> Hi Pawel, Thanks for the insight. I would give a try.
>
>
> Being a common scenario, is there any existing work already
> present for
> this, so that I don't have to reinvent the wheel? I gu
Hi Pawel, Thanks for the insight. I would give a try.
Being a common scenario, is there any existing work already present for
this, so that I don't have to reinvent the wheel? I guess there should
already be some established library / code sample which people follow.
What do people normally do?
Hi Sanjay,
when intercepting action for the first time (no logged user),
You can save submited data along with request uri and put it into
session/database
then after login (inside login action), check if these informations
are present in sesion/database
and forward to desired action with all the p
Hi All,
My requirement is this:
1. User fills a form and submits.
2. If he has not logged in, login form comes up.
3. after logging in, the data automatically gets submitted and next page comes.
I am new to struts and unable to figure out the natural solution, even after a
lot of googling. As
inal Message-
From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com]
Sent: 20 May 2009 17:11
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page
Hi Steve,
Glad to hear you got it working - just as an observation (and I really
haven't tested this to che
This
worked fine as the parameters interceptor automatically decodes parameters.
Cheers,
Steve
-Original Message-
From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com]
Sent: 19 May 2009 16:56
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page
Hi Ste
Ellidge [mailto:stuart.elli...@adaptris.com]
Sent: 19 May 2009 16:56
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page
Hi Steve,
What you are asking is relatively simple really - we implemented an
interceptor to capture the current request URL and
On Tuesday 19 May 2009 05:05:11 pm dusty wrote:
> I think this is more difficult than most people think. There are a lot of
> use cases and edge cases that make most home grown solutions pretty
> fragile. I think GETs are pretty easy but it gets a little more exciting
> when you are dealing with P
ike
> ".../login.action?url=". I guess storing the
> request string in the session would work just as well. Do you know the
> easiest way to access the request string from an interceptor or action?
>
> Many Thanks,
>
> Steve
>
> -Original Message-
>
access the request string from an interceptor or action?
Many Thanks,
Steve
-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: 19 May 2009 15:26
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page
2009/5/19 Steve :
> Ca
Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page
2009/5/19 Steve :
> Can anyone advise on the best way to do this?
Use Acegi, it has such functionality built-in or store request path in
session when redirecting to login page and after successful login,
r
2009/5/19 Steve :
> Can anyone advise on the best way to do this?
Use Acegi, it has such functionality built-in or store request path in
session when redirecting to login page and after successful login,
read it from session and redirect to it. It should be achievable with
the same intercep
Hi everyone,
I have an application that insists on a user being logged in before they can
access specific resources.
Currently, if a user who is not logged in, attempts to access these
resources, they are simply redirected to the login page. This works fine and
is implemented using an
Hi Ed,
what i do is redirecting to a page for the first time, or creating a
LoginPage action that is just a redirect.
Best greetings,
Paweł Wielgus.
2009/5/14 Ed :
> Im using Tiles, in my sidebar "tile" I have a link to a login action, as
> follows:
>
> Login
>
> and mapped in struts-config like
Im using Tiles, in my sidebar "tile" I have a link to a login action, as
follows:
Login
and mapped in struts-config like this:
Then I have the corresponding ActionForm and Action
The problem comes when I click the link, Action's execute method is
invoked.
In execute method I do s
ps, I wish to redirect from login.jsp to my Struts /login action (I am
using the Smart URLs plugin to eliminate the .action extension). login.jsp
is configured as the form-login-page in web.xml. I am doing this because
Tomcat won't accept /login as this parameter.
login.jsp implements the r
I am working on some legacy code. Have a requirement where the user should
be fwded to the login page after session times out. Currently there are
100's of action classes and it wont be feasible to touch each one and check
if the session exists.
Can we do something in struts 1 so that all req
Hello
I am using struts 1
I am working on some legacy code. Have a requirement where the user should
be fwded to the login page after session times out. Currently there are
100's of action classes and it wont be feasible to touch each one and check
if the session exists.
Can we do somethi
ent: Monday, February 11, 2008 3:49 PM
To: user@struts.apache.org
Subject: Re: [probably OT] Default locale on login page
Christopher Loschen wrote:
> Hi all,
>
> My best guess is that this is happening before Struts gets involved,
but
> I wondered if anyone might have some suggesti
Christopher Loschen wrote:
Hi all,
My best guess is that this is happening before Struts gets involved, but
I wondered if anyone might have some suggestions or places for me to
look. I'm having some strange i18n behavior on our initial login page.
Our app is still using Struts 1.1 (don&
Hi all,
My best guess is that this is happening before Struts gets involved, but
I wondered if anyone might have some suggestions or places for me to
look. I'm having some strange i18n behavior on our initial login page.
Our app is still using Struts 1.1 (don't ask..). We
Hi,
I've an authentication interceptor that checks for authentication and
forwards to login page if the user is not logged in.
This works fine.
Problem is if session is timed out and user clicks on a page where the
request is ajax driven, login page gets rendered as an ajax content.
Hi,
Struts2 allows me to use easily inner div functionality, submitting
forms with a specific targets, etc ... Works wonderfully.
But ... now I have a problem with it.
User navigates through such ajax enabled page, some links and submit
buttons on that page have target to some divs.
After some t
Not strictly a Struts question but we're using JAAS and Struts to handle
login (form) authentication. Anyone know where/how the login page
timeout is set? It's not the same as the session timeout.
Thanks,
-Adam
--
st of the actions that are provided
with struts.
Manfred
Struts goes mobile: http://strutsme.org
leo mj wrote:
> hi all,
>
> I think some fellow member has asked the same question.But I didn't find any
> reply for the old thread.
>
> So i have a scenario
>
> I have a
leo mj wrote:
hi all,
I think some fellow member has asked the same question.But I didn't find any
reply for the old thread.
So i have a scenario
I have a login page with
1.Username
2.Password
3.Language
Based on the language selected I have to reload the page.
I have
hi all,
I think some fellow member has asked the same question.But I didn't find any
reply for the old thread.
So i have a scenario
I have a login page with
1.Username
2.Password
3.Language
Based on the language selected I have to reload the page.
I have used internationaliz
This is how i have done at present .
I am checking session in all execute methods.
But My Customer wants not view the page in clicked BACK.Instead login page
should shown with message
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 3:22 PM
removes the session variable and invalidate all
the session variable.
Now if the user tries to go back using back button, user can view the
page but no actions can be performed on the page. Any actions performed
on the page will take the user to login page.
If any one know about disabling back
Raghuveer ha scritto:
In log page once the session expired if user clicks BROWSER BACK button
,user should be in login page only when session expires.
Can you elaborate this? I don't understand what you need.
Ciao
An
In My Web application,
i have page ot show "session_expired message" in login page. When session
expires user is navigated to this page from server side.
I am checking this in all execute methods of my action.
Once the session expired user is navigated to login page.
If user cli
On 1/16/06, Jason Vincent <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> I'd like to setup this usecase, in Shale/JSF...
>
> 1) user requests a url that is configured as "secured".
> 2) system checks for logged in user.
> 3) if the user is not logged
Hi there,
I'd like to setup this usecase, in Shale/JSF...
1) user requests a url that is configured as "secured".
2) system checks for logged in user.
3) if the user is not logged in, then redirect to the login page.
4) on successfull login, redirect to orginally requested URL.
c
I solved it, removing redirect="true" from the action-mapping tag in
struts-config.xml solved it.
Ian.
On 6/8/05, Ian van der Neut <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have a little problem with displaying an "Invalid login" message on
> my lo
Hello all,
I have a little problem with displaying an "Invalid login" message on
my login page. I am using tomcat 5.0.28 and struts 1.2.4
I have a login.jsp that looks like this:
In my ActionForm, the validate method looks like thi
Hi,
Take a look at http://sslext.sourceforge.net/
Regards,
Janarthan S
-Original Message-
From: Janice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 6:38 AM
To: [EMAIL PROTECTED]
Subject: need help securing my login page
I need to secure my login page only, just to
I need to secure my login page only, just to prevent the username/password
from being picked up.
What is the quickest and dirtiest way to do this?
I was thinking of something along the line of checking in my login.jsp for
request.isSecure() and then response.redirect()ing to https, but my
Well, you could put in a check for whether they are already in the login page. You
could use methods like getRequestURI() on the request object or something like:
if ((request.getParameter("username") != null) && (request.getParameter("passowrd") !=
null) ) {
Other options besides using the RequestProcessor:
SAIF
Filters
I would suggest the use of filters.
In the filters you could check whether the request is for your login
resource(assuming thats your first time), and let the user through to the
login page w/o the error messages and in case the
has been working for me for very long now.
-Original Message-
From: Asim Ghosh [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 11:33 AM
To: Struts Users Mailing List
Subject: RE: redirect to login page with error message on the jsp page
Are u sure that this will work
ndForward to the login page. The login page should display
the errors from the html:errors tag.
Pretty straight forward.
Sahil
-Original Message-
From: Asim Ghosh [mailto:[EMAIL PROTECTED]
Sent: Friday, July 30, 2004 11:19 AM
To: [EMAIL PROTECTED]
Subject: redirect to login page with erro
();
if ( (session == null) || (session.getFavouriteObjectInSession == null) ) {
//use Response object to redirect to login page with error set;
}
Geeta
> -Original Message-
> From: Asim Ghosh [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 11:19 AM
> To: [EMAIL PROTECTED]
>
Or you could write a RequestProcessor and override the processPreprocess method with
something like this:
HttpSession session = request.getSession();
if ( (session == null) || (session.getFavouriteObjectInSession == null) ) {
//use Response object to redirect to login page with error set
If the session object is invalidated(timed out), add the action errors in
the request and call the saverequest(errors, req) in the action servlet and
do a mapping.findForward to the login page. The login page should display
the errors from the html:errors tag.
Pretty straight forward.
Sahil
hello,
can anybody tell me how to redirect to login page with error message on the jsp
page. It should display error message "You session has timed out" on the login page.
in web.xml
30
-
ALL-NEW Yahoo! Messenger - all ne
FYI...
I've done a simple test with no struts involved, and the post data still
fails to pass through ok.
It's basicly 3 files
Index.html links to form.html
Form.html posts to process.jsp
Both form.html and process.jsp are protected, though interestingly the
login page only com
56 matches
Mail list logo