You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Chris Kimpton <ki...@yahoo.com> on 2001/06/29 16:45:32 UTC

JSP - Velocity - is Jetspeed having an identity crisis?

Hi,

I am using the latest jetspeed from CVS (well, yesterday) and working
with the user stuff.

I am using the default settings (if it aint broke dont meddle...)

Which seems to use jsp pages for things like layouts, navigation,
Login, EditAccount and NewAccount, but uses vm page for
ConfirmRegistration.

Ok - not ideal - use one or another and stick to it would be my
preference - but its working...

..except that when the confirmation registration screen comes up,
Jetspeed has switched to using the velocity layouts...

Even less ideal - I don't really want to do my layouts/navigations
twice - in jsp and velocity...

I am trying to track down what is causing this change of layout, but
not having much luck so far - so any clues?

Thanks in advance,
Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


RE: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- David Sean Taylor <da...@bluesunrise.com> wrote:
> 
> Do you have the latest ConfirmRegistration.jsp (.vm)?
> /jsp/screens/html/ConfirmRegistration.jsp was removed. 
> It now uses /jsp/screens/html/en/ConfirmRegistration.jsp 
> 

Nope - I took my copy too early.... doh!

It works now...

Although, is it not a little riskey sending the password back and
forth - I know, I can't have my cake and eat it...   ;-)



Thanks,
Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


RE: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by David Sean Taylor <da...@bluesunrise.com>.
> Using the latest code from CVS - the above works ok - my templates
> are staying consistent...
> 
> > ...now to find out why entering the secret key is not accepted...
> 
> And the secret key is accepted ok - but it is still not logging you
> in immediately - you get sent to a login form and have to then login
> - just looking into it now - the code looks like it should work...
> 
> Chris
> 
> 

Do you have the latest ConfirmRegistration.jsp (.vm)?
/jsp/screens/html/ConfirmRegistration.jsp was removed. 
It now uses /jsp/screens/html/en/ConfirmRegistration.jsp 



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


Re: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Chris Kimpton <ki...@yahoo.com> wrote:
> 
> Thanks - the problem, IMHO, is that the CreateNewUserAndConfirm
> class
> explicitly chooses the velocity templates - which switches things
> to
> all velocity.
> 
> Attached is a patch to make it use the TR.props defaults for which
> templates to use.
> 

Using the latest code from CVS - the above works ok - my templates
are staying consistent...

> ...now to find out why entering the secret key is not accepted...

And the secret key is accepted ok - but it is still not logging you
in immediately - you get sent to a login form and have to then login
- just looking into it now - the code looks like it should work...

Chris



=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


Re: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Chris Kimpton <ki...@yahoo.com> wrote:
> 
> Thanks - the problem, IMHO, is that the CreateNewUserAndConfirm
> class
> explicitly chooses the velocity templates - which switches things
> to
> all velocity.
> 
> Attached is a patch to make it use the TR.props defaults for which
> templates to use.
> 

Using the latest code from CVS - the above works ok - my templates
are staying consistent...

> ...now to find out why entering the secret key is not accepted...

And the secret key is accepted ok - but it is still not logging you
in immediately - you get sent to a login form and have to then login
- just looking into it now - the code looks like it should work...

Chris



=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


Re: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Rapha�l Luta <ra...@networks.groupvu.com> wrote:
> > 
> > --- David Sean Taylor <da...@bluesunrise.com> wrote:
> > 
> >>>Which seems to use jsp pages for things like layouts,
> navigation,
> >>>Login, EditAccount and NewAccount, but uses vm page for
> >>>ConfirmRegistration.
> >>>
> >>For your templates, your don't have to write them twice.
> >>Turbine has a pluggable template engine, supporting Velocity,
> JSP,
> >>and
> >>Webmacro.
> >>Choose whatever templating engine you prefer and stick with it.
> >>
> > 
> > OK.  I was alright with 1.3a1, we had both velocity and JSP based
> > portlets - and the core Jetspeed framework seemed to be all JSP
> back
> > then.
> > 
> > Its the core framework I am having a problem with - it is using
> JSP
> > initially - but then switching to velocity after clicking the
> "Create
> > New User" button - as if some of that code is specifying a
> velocity
> > template, overriding the default JSP behaviour.
> > 
> 
> 
> Try to track the rundata.setScreenTemplate() method, I think I
> remember
> seeing something on the Turbine mailing-list last week that this
> call
> will override the layout, so this may be the root of the issue...
> 

Thanks - the problem, IMHO, is that the CreateNewUserAndConfirm class
explicitly chooses the velocity templates - which switches things to
all velocity.

Attached is a patch to make it use the TR.props defaults for which
templates to use.

...now to find out why entering the secret key is not accepted...

Thanks,
Chris



=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Re: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by Raphaël Luta <ra...@networks.groupvu.com>.
Chris Kimpton wrote:

> Hi,
> 
> --- David Sean Taylor <da...@bluesunrise.com> wrote:
> 
>>>Which seems to use jsp pages for things like layouts, navigation,
>>>Login, EditAccount and NewAccount, but uses vm page for
>>>ConfirmRegistration.
>>>
>>For your templates, your don't have to write them twice.
>>Turbine has a pluggable template engine, supporting Velocity, JSP,
>>and
>>Webmacro.
>>Choose whatever templating engine you prefer and stick with it.
>>
> 
> OK.  I was alright with 1.3a1, we had both velocity and JSP based
> portlets - and the core Jetspeed framework seemed to be all JSP back
> then.
> 
> Its the core framework I am having a problem with - it is using JSP
> initially - but then switching to velocity after clicking the "Create
> New User" button - as if some of that code is specifying a velocity
> template, overriding the default JSP behaviour.
> 


Try to track the rundata.setScreenTemplate() method, I think I remember
seeing something on the Turbine mailing-list last week that this call
will override the layout, so this may be the root of the issue...

--
Raphael Luta - raphael.luta@networks.groupvu.com
Vivendi Universal Networks - Paris


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


RE: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- David Sean Taylor <da...@bluesunrise.com> wrote:
> > Which seems to use jsp pages for things like layouts, navigation,
> > Login, EditAccount and NewAccount, but uses vm page for
> > ConfirmRegistration.
> 
> For your templates, your don't have to write them twice.
> Turbine has a pluggable template engine, supporting Velocity, JSP,
> and
> Webmacro.
> Choose whatever templating engine you prefer and stick with it.

OK.  I was alright with 1.3a1, we had both velocity and JSP based
portlets - and the core Jetspeed framework seemed to be all JSP back
then.

Its the core framework I am having a problem with - it is using JSP
initially - but then switching to velocity after clicking the "Create
New User" button - as if some of that code is specifying a velocity
template, overriding the default JSP behaviour.

> 
> > I am trying to track down what is causing this change of layout,
> but
> > not having much luck so far - so any clues?
> 
> The TRP has settings for your template search path.
> 
> services.VelocityService.file.resource.loader.path =
> /WEB-INF/templates/vm
> 

I have the same setting.

> I haven't tried this, there may be some hard-coded dependencies on
> a
> specific templating service, but in theory you can turn off a
> templating
> service by commenting it out:
> 
> # Turn on the appropriate template service.
>
services.JspService.classname=org.apache.turbine.services.jsp.TurbineJspServ
> ice
>
services.VelocityService.classname=org.apache.turbine.services.velocity.Turb
> ineVelocityService
> 

Both of these are on too.


> If you don't specify an extension, the templating service has a
> default
> extension:
> 
> services.TemplateService.default.extension=jsp

Got this setting.

> 
> Thus
> 
> template.homepage=/Home
> 
> will use the JSP version of Home
> 

Got this too.



I just upgraded to the latest CVS (Monday midday-ish) and I am
getting pretty much the same problem - except that the secret key
stuff is now turned off by default.

Oh well, back to trying to get VAJ to load the code... to track down
jetspeeds confusion over JSP and velocity...

Chris

=====
Need somewhere to Live in London - http://freeflats.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


RE: JSP - Velocity - is Jetspeed having an identity crisis?

Posted by David Sean Taylor <da...@bluesunrise.com>.
> Which seems to use jsp pages for things like layouts, navigation,
> Login, EditAccount and NewAccount, but uses vm page for
> ConfirmRegistration.

For your templates, your don't have to write them twice.
Turbine has a pluggable template engine, supporting Velocity, JSP, and
Webmacro.
Choose whatever templating engine you prefer and stick with it.

> I am trying to track down what is causing this change of layout, but
> not having much luck so far - so any clues?

The TRP has settings for your template search path.

services.VelocityService.file.resource.loader.path = /WEB-INF/templates/vm

I haven't tried this, there may be some hard-coded dependencies on a
specific templating service, but in theory you can turn off a templating
service by commenting it out:

# Turn on the appropriate template service.
services.JspService.classname=org.apache.turbine.services.jsp.TurbineJspServ
ice
services.VelocityService.classname=org.apache.turbine.services.velocity.Turb
ineVelocityService

If you don't specify an extension, the templating service has a default
extension:

services.TemplateService.default.extension=jsp

Thus

template.homepage=/Home

will use the JSP version of Home

-------------------------------------
David Sean Taylor
taylor@apache.org
-------------------------------------
http://jakarta.apache.org/jetspeed
-------------------------------------




> -----Original Message-----
> From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
> Sent: Friday, June 29, 2001 7:46 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: JSP - Velocity - is Jetspeed having an identity crisis?
>
>
> Hi,
>
> I am using the latest jetspeed from CVS (well, yesterday) and working
> with the user stuff.
>
> I am using the default settings (if it aint broke dont meddle...)
>
> Which seems to use jsp pages for things like layouts, navigation,
> Login, EditAccount and NewAccount, but uses vm page for
> ConfirmRegistration.
>
> Ok - not ideal - use one or another and stick to it would be my
> preference - but its working...
>
> ..except that when the confirmation registration screen comes up,
> Jetspeed has switched to using the velocity layouts...
>
> Even less ideal - I don't really want to do my layouts/navigations
> twice - in jsp and velocity...
>
> I am trying to track down what is causing this change of layout, but
> not having much luck so far - so any clues?
>
> Thanks in advance,
> Chris
>
> =====
> Need somewhere to Live in London - http://freeflats.com
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>



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