You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Li <am...@gmail.com> on 2006/05/19 06:14:00 UTC
About login forwarding
Hi all, I am a newbie of beehive. I am playing beehive these days. I am
writing a simple web app to test out beehive. And my first tender is to
write a login page, and i have a page flow diagram in my mind with some
concerns:
1. a index.htm which use <meta> tag to refresh page URL to an actionURL
called "welcome.do"
2. then this will forward the current page "index.htm" to the login page "
welcome.jsp" which sits behind WEB-INF, let's say
"<mywebapp>/WEN-INF/login/welcome.jsp
3. I am also using a template which also sits behind WEB-INF for secure
reason, welcome.jsp will use template
I was trying to use beehive to achieve this, and i met few problems:
1. I am using blank-NetUI as the start-up structure. I changed the "
index.jsp" in Controller and web.xml to index.htm. It didnt work correctly
.....(Never mind)
2. Then i keep index.jsp first, and add a link in the page to "click and go"
to the login page, so i have to add action forwarding entries. I created a
folder called "login" and put it into WEB-INF, then I create Controller and
index.jsp inside, modified the Controller under my application root path.
When i was building it, I it failed to find my jsp and my web application
can not find my login controller as well
Any ideas?
Thanks
Re: About login forwarding
Posted by Thomas Cook <th...@gmail.com>.
You might find the NotLoggedInException interesting:
http://beehive.apache.org/docs/1.0m1/apidocs/classref_pageflows/org/apache/beehive/netui/pageflow/NotLoggedInException.html
I'd probably use standard web app security to protect pages that
require being logged in to view, and have your page flow (or maybe a
shared flow) have an exception handler that forwards to a login page
or nested login page flow.
On 5/18/06, Li <am...@gmail.com> wrote:
> Hi All,
>
> I fixed it by separating login's index.jsp and controller into different
> folder... but it looks weired. Any advise?
>
> Regards
>
> On 5/19/06, Li <am...@gmail.com> wrote:
> >
> > Hi all, I am a newbie of beehive. I am playing beehive these days. I am
> > writing a simple web app to test out beehive. And my first tender is to
> > write a login page, and i have a page flow diagram in my mind with some
> > concerns:
> >
> > 1. a index.htm which use <meta> tag to refresh page URL to an actionURL
> > called "welcome.do"
> > 2. then this will forward the current page "index.htm" to the login page "
> > welcome.jsp" which sits behind WEB-INF, let's say
> > "<mywebapp>/WEN-INF/login/welcome.jsp
> > 3. I am also using a template which also sits behind WEB-INF for secure
> > reason, welcome.jsp will use template
> >
> > I was trying to use beehive to achieve this, and i met few problems:
> > 1. I am using blank-NetUI as the start-up structure. I changed the "
> > index.jsp" in Controller and web.xml to index.htm. It didnt work correctly
> > .....(Never mind)
> > 2. Then i keep index.jsp first, and add a link in the page to "click and
> > go" to the login page, so i have to add action forwarding entries. I created
> > a folder called "login" and put it into WEB-INF, then I create Controller
> > and index.jsp inside, modified the Controller under my application root
> > path. When i was building it, I it failed to find my jsp and my web
> > application can not find my login controller as well
> >
> > Any ideas?
> >
> > Thanks
> >
>
>
>
> --
> =====================================
> The world will be ended if love is everywhere.
> ---- Shawzi
>
>
Re: About login forwarding
Posted by Li <am...@gmail.com>.
Hi All,
I fixed it by separating login's index.jsp and controller into different
folder... but it looks weired. Any advise?
Regards
On 5/19/06, Li <am...@gmail.com> wrote:
>
> Hi all, I am a newbie of beehive. I am playing beehive these days. I am
> writing a simple web app to test out beehive. And my first tender is to
> write a login page, and i have a page flow diagram in my mind with some
> concerns:
>
> 1. a index.htm which use <meta> tag to refresh page URL to an actionURL
> called "welcome.do"
> 2. then this will forward the current page "index.htm" to the login page "
> welcome.jsp" which sits behind WEB-INF, let's say
> "<mywebapp>/WEN-INF/login/welcome.jsp
> 3. I am also using a template which also sits behind WEB-INF for secure
> reason, welcome.jsp will use template
>
> I was trying to use beehive to achieve this, and i met few problems:
> 1. I am using blank-NetUI as the start-up structure. I changed the "
> index.jsp" in Controller and web.xml to index.htm. It didnt work correctly
> .....(Never mind)
> 2. Then i keep index.jsp first, and add a link in the page to "click and
> go" to the login page, so i have to add action forwarding entries. I created
> a folder called "login" and put it into WEB-INF, then I create Controller
> and index.jsp inside, modified the Controller under my application root
> path. When i was building it, I it failed to find my jsp and my web
> application can not find my login controller as well
>
> Any ideas?
>
> Thanks
>
--
=====================================
The world will be ended if love is everywhere.
---- Shawzi