Hello Pawel,
well the intercepter can get a message that suggest us to have a login
before proceeding, I guess that can be done, I was trying this thing as I am
a newbie in Struts and I was exploring the possibilities. Thats the best I
can do :)
Thanks for ur help and suggestions.
Regards,
Bara
Hi,
yes it's the case,
because if You are firing ajax request to server it doesn't really
care if it's ajax or plain html request,
so the responsibility to behave properly is on the page side.
I don't know if your interceptor returning html code (page) is ok for You?
Or maybe it should return somet
Hi,
Okay, this is the response I get, I did used the same thing that you are
suggesting, Can it be an issue that I am using AJAX, as the html code of the
login page is coming as a response of the http request I am making, do I
have to redirect it via my JSP page(using javascript)? As otherwise I
Hi,
look at line:
return Action.LOGIN;
this is the place where interceptor is returning simple string which
represents forward,
in my case i have "logon" defined in struts.xml
like this:
/WEB-INF/pages/logon.jsp
Hope that helps,
Paweł Wielgus.
2009/4/16 Baran :
Hi,
I guess I am fine with the intercepter side, but the issue is I am not able
to redirect it to a new page. The intercepter is working fine, but the
respone is coming back to the same page and not to the login page.
Any thing that I might be missing in the struts.xml or somewhere? coz
intercep
package example3;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
/**
*
* @author Lukasz
*/
public class LoginInterceptor implements Interceptor {
public void destroy() {
}
public void
Hello Paul,
Thanks for the prompt response, I guess that is a right way to do, but plz
suggest me how can i redirect my control to the login page. Can u plz get me
the syntax, the interceptor thing is ready all i need to do is to redirect
if session is not there...
Thanks
Baran
Paweł Wielgus
Hi Baran,
You can check for this in interceptor in struts2 or in mainservlet in struts1.
Best greeitings,
Paweł Wielgus.
2009/4/16 Baran :
>
> Hello All,
>
> I have this common scenario of handling sessions. The scenario is:
>
> 1. To check session on the jsp side when ever a page is loaded. This
mthalis wrote:
i have already implemented login, logout parts using struts(jsp). But the
case is after logged out, when i press back button it is redirected to the
particular page that i was in before logged out. these are my codings, and
plz kind enough to give me reasonable answer.
//set ses
Hi,
i wasn't able to understand Your problem,
so i was thinking that the code You cited below was about the problem
discussed on my blog.
If it's not this problem than try to describe the problem in other words,
i simply don't get it.
Best greetings,
Paweł Wielgus.
2009/2/20 mthalis :
>
> Give me
Give me another suggestion pz.
mthalis wrote:
>
> i have already implemented login, logout parts using struts(jsp). But the
> case is after logged out, when i press back button it is redirected to
> the particular page that i was in before logged out. these are my codings,
> and plz kind enoug
Hi mthalis,
maybe this will help:
http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
but to be honest i don't know if i understand Your problem at all.
Best greetings,
Paweł Wielgus.
2009/2/17 mthalis :
>
> i have already implemented login, logout parts using strut
You may want to add support for conversation scope to your application
so that objects stored in session scope doesn't get mixed up.
2008/7/28, Dave Newton <[EMAIL PROTECTED]>:
> --- On Mon, 7/28/08, OTA_DZ <[EMAIL PROTECTED]> wrote:
> > I think there is an overlapping of session in
> > my applica
--- On Mon, 7/28/08, OTA_DZ <[EMAIL PROTECTED]> wrote:
> I think there is an overlapping of session in
> my application.
Technically it's an overlapping of sessions in the browser.
Different browsers handle these things differently; in general tabbed browsing
will share a single session. That's
maya,
Once a user is logged in session variables are set and your user
interface should not display login option...but if you hit back button
on browser you will see login option in that case use saveToken now to
allow duplicate form submission
Back buttons display thing because form contains
It is not clear what you are asking. Is the problem that
- the session is not being maintained even when setting the timeout to
30 minutes
- even after 1/2 hour the session does not timeout
An observation, "pinging" the server every 10 seconds will create a
lot of unnecessary work on the server.
So you know when exactly 30 mins elapses? right.?
immedietly after this you can invalidate the session right?
Regards
PH
On 10/3/06, sowjanya chimmani <[EMAIL PROTECTED]> wrote:
Hi All,
In our webapplication (struts based) we are using Ajax code
(as part of header in all jsp)whi
I updated my processor and added the proper logic that Martin showed
yesterday. And what I am seeing is as follows:
1) When the user clicks the site, I can watch the logs and it shows that
the session.isNew() and so it redirects to index.jsp.
2) At that point the screen is showing, so the user cl
Dumb Question but I have to ask
First from the doc for the method
public boolean isNew()Returns true if the client does not yet know about the
session or if the client chooses not to join the session. For example, if
the server used only cookie-based sessions, and the client had disabled the
us
19 matches
Mail list logo