You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Zamek <za...@vili.pmmf.hu> on 2003/06/30 15:18:51 UTC

getting parameters of screen

Hello All,

When I call a screen with parameters forexample: 

http://server/app/servlet/app/template/screen.vm/par1/xx/par2/yy/.. 
../parn/nnn

how can I get parameters part of this url in string format? 
"par1/xx/par2/yy.. ../parn/nnn"

I need it, because if user doesn't has permission to run this screen, I have 
to forward it to Login.vm, and after a succesfully login I need it to forward  
to original screen. 

I can put screen with:
     	data.getUser().setTemp(NEXT_SCREEN, data.getScreenTemplate());
but I cannot pass parameters to this.

-- 
TIA,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: getting parameters of screen

Posted by Zamek <za...@vili.pmmf.hu>.
Hi All,

On Monday 30 June 2003 19.08, Edgar González wrote:
> Hi,
>
> I don't know if I undertand your requirement, but,  are you tried:
> data.getParameters().getString("par2")

Yes, but I don't need it. I need all of parameters (and _only_ the parameters) 
after screen or action. 

>
> > Hello All,
> >
> > When I call a screen with parameters forexample:
> >
> > http://server/app/servlet/app/template/screen.vm/par1/xx/par2/yy/..
> > ../parn/nnn
> >
> > how can I get parameters part of this url in string format?
> > "par1/xx/par2/yy.. ../parn/nnn"
> >
> > I need it, because if user doesn't has permission to run this screen, I
>
> have
>
> > to forward it to Login.vm, and after a succesfully login I need it to
>
> forward
>
> > to original screen.
> >
> > I can put screen with:
> >      data.getUser().setTemp(NEXT_SCREEN, data.getScreenTemplate());
> > but I cannot pass parameters to this.
> >
> > --
> > TIA,
> > Zoltan Zidarics programmer
> > PTE University Pecs, Hungary
> > icq: 43288694
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 
udv,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: getting parameters of screen

Posted by Zamek <za...@vili.pmmf.hu>.
Hi All,

On Monday 30 June 2003 21.23, Michael Mainguy wrote:
> I'd also look at SecureVelocityScreen and doing this in the isAuthorized
> method (if you're using the built in stuff).
Yes, but it forward to Index.vm instead of my previous screen.

>
> > -----Original Message-----
> > From: Edgar González [mailto:egg@valhallaproject.com]
> > Sent: Monday, June 30, 2003 1:08 PM
> > To: Turbine Users List
> > Subject: Re: getting parameters of screen
> >
> >
> > Hi,
> >
> > I don't know if I undertand your requirement, but,  are you tried:
> > data.getParameters().getString("par2")
> >
> > Hope this help you
> >
> > Edgar
> >
> >
> > ----- Original Message -----
> > From: "Zamek" <za...@vili.pmmf.hu>
> > To: "Turbine Users List" <tu...@jakarta.apache.org>
> > Sent: Monday, June 30, 2003 9:18 AM
> > Subject: getting parameters of screen
> >
> > > Hello All,
> > >
> > > When I call a screen with parameters forexample:
> > >
> > > http://server/app/servlet/app/template/screen.vm/par1/xx/par2/yy/..
> > > ../parn/nnn
> > >
> > > how can I get parameters part of this url in string format?
> > > "par1/xx/par2/yy.. ../parn/nnn"
> > >
> > > I need it, because if user doesn't has permission to run this screen, I
> >
> > have
> >
> > > to forward it to Login.vm, and after a succesfully login I need it to
> >
> > forward
> >
> > > to original screen.
> > >
> > > I can put screen with:
> > >      data.getUser().setTemp(NEXT_SCREEN, data.getScreenTemplate());
> > > but I cannot pass parameters to this.
> > >

TIA

-- 
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Custom Authentication off of IMAP/Mail

Posted by Philip <su...@wachtel.us>.
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Henning,

Thanks for your response.

Yes, I'm planning on using javamail 1.3.  It's a pretty good package.

I was afraid that you'd say that it'll be rough to use IMAP authentication
solely.

Thanks for your advice regarding IMAP service.  I'll check it out.

Regards,
Philip

----- Original Message ----- 
From: "Henning P. Schmiedehausen" <hp...@intermeta.de>
Newsgroups: hometree.jakarta.turbine.users
To: <tu...@jakarta.apache.org>
Sent: Tuesday, July 01, 2003 6:59 AM
Subject: Re: Custom Authentication off of IMAP/Mail


> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> "Philip" <su...@wachtel.us> writes:
>
> Hi,
>
> I did a similar thing (say, do you btw need an imap users management
> tool? ;-) ) by using Cyrus Imapd with SASL2 and LDAP backend for users
> authentication; LDAP driven by an SQL backend itself and ran Turbine
> on the same SQL tables as the LDAP server.
>
> Today, I'd probably recommend using the LDAP Security Service and
> LDAP+SASL2 for your IMAP server.
>
> If you really want to run Security on the same passwords as your imap
> server, you need some way to access the IMAP server user database. If
> you have only IMAP access, you might want to try to use the javax.mail
> package which provides some "logging into imap" functionality and then
> use its return codes to build a custom security service. This doesn't
> sound too easy, though and you would have trouble getting the groups,
> roles and permissions there.
>
> Regards
> Henning
>
> -- 
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
> hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development  -- hero for hire
>
> --- Quote of the week: "It is pointless to tell people anything when
> you know that they won't process the message." --- Jonathan Revusky
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Custom Authentication off of IMAP/Mail

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Philip" <su...@wachtel.us> writes:

Hi,

I did a similar thing (say, do you btw need an imap users management
tool? ;-) ) by using Cyrus Imapd with SASL2 and LDAP backend for users
authentication; LDAP driven by an SQL backend itself and ran Turbine
on the same SQL tables as the LDAP server.

Today, I'd probably recommend using the LDAP Security Service and
LDAP+SASL2 for your IMAP server.

If you really want to run Security on the same passwords as your imap
server, you need some way to access the IMAP server user database. If
you have only IMAP access, you might want to try to use the javax.mail
package which provides some "logging into imap" functionality and then
use its return codes to build a custom security service. This doesn't
sound too easy, though and you would have trouble getting the groups,
roles and permissions there.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Custom Authentication off of IMAP/Mail

Posted by Philip <su...@wachtel.us>.
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi there,

Forgive me if my question has an obvious answer, but I'm trying to get used
to the Turbine paradigm and I haven't completely seen "the light" yet.

I'm looking to create an IMAP mail interface using Turbine.  I'd like the
login action to authenticate off of the IMAP mail authentication.

Questions:
1. Do I even need a TurbineUser object?  What about user information in the
database?  Do I even need it if I'm simply accessing data from the IMAP
server.
2. Where do I store session information, like the IMAP connection?
3. What would be the general approach to this kind of project?

Like I said, these are the questions of a newbie, so thanks for keeping that
in mind.

Regards,
Philip


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: getting parameters of screen

Posted by Michael Mainguy <ma...@mich.com>.
I'd also look at SecureVelocityScreen and doing this in the isAuthorized
method (if you're using the built in stuff).


> -----Original Message-----
> From: Edgar González [mailto:egg@valhallaproject.com]
> Sent: Monday, June 30, 2003 1:08 PM
> To: Turbine Users List
> Subject: Re: getting parameters of screen
>
>
> Hi,
>
> I don't know if I undertand your requirement, but,  are you tried:
> data.getParameters().getString("par2")
>
> Hope this help you
>
> Edgar
>
>
> ----- Original Message -----
> From: "Zamek" <za...@vili.pmmf.hu>
> To: "Turbine Users List" <tu...@jakarta.apache.org>
> Sent: Monday, June 30, 2003 9:18 AM
> Subject: getting parameters of screen
>
>
> > Hello All,
> >
> > When I call a screen with parameters forexample:
> >
> > http://server/app/servlet/app/template/screen.vm/par1/xx/par2/yy/..
> > ../parn/nnn
> >
> > how can I get parameters part of this url in string format?
> > "par1/xx/par2/yy.. ../parn/nnn"
> >
> > I need it, because if user doesn't has permission to run this screen, I
> have
> > to forward it to Login.vm, and after a succesfully login I need it to
> forward
> > to original screen.
> >
> > I can put screen with:
> >      data.getUser().setTemp(NEXT_SCREEN, data.getScreenTemplate());
> > but I cannot pass parameters to this.
> >
> > --
> > TIA,
> > Zoltan Zidarics programmer
> > PTE University Pecs, Hungary
> > icq: 43288694
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: getting parameters of screen

Posted by Edgar González <eg...@valhallaproject.com>.
Hi,

I don't know if I undertand your requirement, but,  are you tried:
data.getParameters().getString("par2")

Hope this help you

Edgar


----- Original Message -----
From: "Zamek" <za...@vili.pmmf.hu>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Monday, June 30, 2003 9:18 AM
Subject: getting parameters of screen


> Hello All,
>
> When I call a screen with parameters forexample:
>
> http://server/app/servlet/app/template/screen.vm/par1/xx/par2/yy/..
> ../parn/nnn
>
> how can I get parameters part of this url in string format?
> "par1/xx/par2/yy.. ../parn/nnn"
>
> I need it, because if user doesn't has permission to run this screen, I
have
> to forward it to Login.vm, and after a succesfully login I need it to
forward
> to original screen.
>
> I can put screen with:
>      data.getUser().setTemp(NEXT_SCREEN, data.getScreenTemplate());
> but I cannot pass parameters to this.
>
> --
> TIA,
> Zoltan Zidarics programmer
> PTE University Pecs, Hungary
> icq: 43288694
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org