Ok....maybe I'm making this harder for myself than I need to....here is my
goal...I can't possibly be the only one trying to do this

If accessing Mid-Tier Login page with no re-direct pre-defined I want to go
to the home page.  If they are following a link that takes them somewhere
specific I want to allow them to go there...

I can't believe this isn't built into the product...but then again I've been
using it long enough I can believe that...does anyone have any suggestions
for that? 

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Axton
Sent: Thursday, May 10, 2007 1:06 PM
To: arslist@ARSLIST.ORG
Subject: Re: Login.jsp Manipulation

It may be a session attribute (server side), in which case you would need to
use the methods defined for the class of the object that stores that
information.  You can look at the browser stats app for an example of
listing the available session attributes:

http://arswiki.org/projects/browserstats/browser/trunk/java/src/org/arswiki/
browserstats/StatsServlet.java#L326

If you embed the enumeration in your jsp, then use a loop/printwriter to
write out the data, you will be able to see what is out there.  It may be
stored this way.

I am not seeing anywhere in the request or response for each hit where this
information is contained.

Axton Grams

On 5/10/07, L. J. Head <[EMAIL PROTECTED]> wrote:
> Agreed....but I'm trying to figure out how to use the variable that 
> Mid-Tier already has
>
> -----Original Message-----
> From: Action Request System discussion list(ARSList) 
> [mailto:[EMAIL PROTECTED] On Behalf Of Axton
> Sent: Thursday, May 10, 2007 12:20 PM
> To: arslist@ARSLIST.ORG
> Subject: Re: Login.jsp Manipulation
>
> If the url uses this format, you can get at the goto parameter:
>
> http://server/arsys/shared/login.jsp?goto=/arsys/forms/server/FormName
>
> Axton Grams
>
> On 5/10/07, L. J. Head <[EMAIL PROTECTED]> wrote:
> > Axton,
> > Thank you for the suggestion of Fiddler....it has helped me delve a 
> > bit deeper.  I now see that a cookie is being set in the header with 
> > line
> >
> > Set-Cookie: JSESSIONID=kefXv3yqCvOtNdzkZA6NbPrqCds; path=/arsys
> >
> > So....I now need to know how to browse the cookie that is being 
> > created and check values....any suggestions from anyone???
> >
> > -----Original Message-----
> > From: L. J. Head [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 10, 2007 9:53 AM
> > To: 'arslist@ARSLIST.ORG'
> > Subject: RE: Login.jsp Manipulation
> >
> > As you can see below
> > >    String nextPage = (String)request.getParameter("goto");
> > >    if (nextPage == null) {
> > >         nextPage = "";
> > >    }
> > The java variable is being set from request.getParamater as you
suggested.
> > In neither of the situations I have outlined is it ever anything 
> > other than null.  So request does not contain the value that the 
> > servlet uses.  Any other suggestions?
> >
> > -----Original Message-----
> > From: Action Request System discussion list(ARSList) 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Axton
> > Sent: Thursday, May 10, 2007 8:42 AM
> > To: arslist@ARSLIST.ORG
> > Subject: Re: Login.jsp Manipulation
> >
> > The nextPage variable is probably set on the form post action (i.e., 
> > when you click the login button).  If you want to see the value of 
> > the parameter, read it from the HttpServletRequest Parameter like this:
> >
> > request.getParameter("goto")
> >
> > For example, in your html you can simply add this somewhere in the 
> > html to have it written to the page:
> >
> > <div>Goto Parameter: <%request.getParameter("goto")%></div>
> >
> > If you are doing this just for debugging, the firebug plugin for 
> > firefox will show you all the request and response data:
> >
> > https://addons.mozilla.org/en-US/firefox/addon/1843
> >
> > Axton Grams
> >
> > On 5/10/07, L. J. Head <[EMAIL PROTECTED]> wrote:
> > > Ok...with the help of Carey I have gotten to know the code a bit 
> > > better...but still need some help.  Java variable nextPage is 
> > > being set in logon_common.jsp as such
> > >
> > >    String nextPage = (String)request.getParameter("goto");
> > >    if (nextPage == null) {
> > >         nextPage = "";
> > >    }
> > >
> > > Now...the URL that I am passing Mid-Tier is similar to this one
> > >
> > > http://<webServer>/arsys/servlet/ViewFormServlet?form=<Form>&serve
> > > r=
> > > <r
> > > emedyS
> > > erver>&eid=<eid>
> > >
> > > When I give it that URL and I have my login.jsp file set to
> > >
> > > <input type="hidden" name="goto" value="<%=nextPage%>" >
> > >
> > > I go directly to the entry in question.  My problem is that when I 
> > > choose to display the nextPage variable to the screen to see what 
> > > it is it is always "" no matter if I have used the above URL or 
> > > gone directly to the Home page or gone directly to the Login 
> > > page...so it is using some value that I don't currently know how 
> > > to check.  I have tried request.getParameter as well as 
> > > session.getAttribute....anyone have any suggestions on how I can 
> > > determine if the login already has a
> > goto?
> > >
> > > -----Original Message-----
> > > From: L. J. Head [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, May 09, 2007 12:24 PM
> > > To: 'arslist@ARSLIST.ORG'
> > > Subject: Login.jsp Manipulation
> > >
> > > I, as most of us do, have users that bookmark the login screen
> > >
> > > http://<midtier-server>/arsys/shared/login.jsp
> > >
> > > When they do that they get an error about not having all of the 
> > > parameters mapped, they click the 'return to home' 
> > > button...re-login and they get to the home page.  I got sick of 
> > > fielding these production support questions so I came to the list 
> > > and inquired about how to eliminate them.  I was told that if I 
> > > change these two lines it would work grand
> > >
> > > <input type="hidden" name="server" value="<%=server%>" > <input 
> > > type="hidden" name="goto" value="<%=nextPage%>" >
> > >
> > > If you hard-code those two lines with values it works great...any 
> > > time anyone gets to the login page and login they go to the home 
> > > page....which is great with exception of hard coded URL's that are 
> > > designed to take them to specific entries instead of the home page.
> > > So I got the brilliant idea to Check to see if nextPage is 
> > > null...and if it is...set it to /arsys/home...if not...let it be 
> > > what it is....but there is the rub...I'm not a JavaScript GURU to 
> > > be able to do that...any suggestions?...I've tried several things 
> > > I found on the web for checking JSP variables via Javascript but 
> > > none of them seem able
> > to properly return the current value of nextPage.
> > >
> > > TIA
> > >
> > > __________________________________________________________________
> > > __ __ _________ UNSUBSCRIBE or access ARSlist Archives at 
> > > www.arslist.org ARSlist:"Where the Answers Are"
> > >
> >
> > ____________________________________________________________________
> > __
> > ______
> > ___
> > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
> > ARSlist:"Where the Answers Are"
> >
> > ____________________________________________________________________
> > __ _________ UNSUBSCRIBE or access ARSlist Archives at 
> > www.arslist.org ARSlist:"Where the Answers Are"
> >
>
> ______________________________________________________________________
> ______
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
> ARSlist:"Where the Answers Are"
>
> ______________________________________________________________________
> _________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org 
> ARSlist:"Where the Answers Are"
>

____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to