At 02:13 01/31/01, Manjuka Soysa wrote:
>Hi,
>I am trying to add a new screen class of my own, which can be accessed 
>from the jetspeed homepage.
>So I put the jar file with the class in the web-inf/lib, and modified the 
>module.packages property in the TurbineResources.properties file to 
>include my module path.
>
>However, when I have a link to "/portal/screen/MyScreen" from the home 
>page, it doesn't look for my class. Instead, it looks for a MyScreen.jsp 
>in web-inf/templates/jsp/screens.
>
>Is this expected behaviour? Could someone please tell me how to direct the 
>request to my Screen class instead?

Yes it is expected, but probably not right. The story is following:
First there where only screen modules, i.e. java code that build up a 
screen content using Ecs. This is absolutely deprecated, we (as well as 
Turbine) don't want screens to be build via Ecs any more!
So I replaced this by a Jsp template mechanism and sort of hacked the 
JetspeedJspPage so that it tries to find a MyScreen.jsp rather that a 
MyScreen.java. Only for very few screens there is an exception as their 
conversion to templates is not straightforward (basically all screens that 
display portlets). If you really need to use such a screen, you'll have to 
add it to this list of exceptions.
What I figured out only recetly is that there is another keyword "template" 
that is meat to be used to set the screen template. So it'd be cleaner to 
still search for screens in the modules and for templates in thetemplates 
directory. However, in the near future screens are then not used at all but 
only templates. (e.g. /portal/template/login).
I think that screens won't be helpful for anything any more: All "view 
preprocessing" (i.e. executing of business logic) will be done in 
respective actions and the templates will be provided with a toolbox that 
allows them to access the data that they need to display.

ingo.

>thanks for any help,
>Manjuka
>___________________________________________________________________________
>Visit http://www.visto.com/info, your free web-based communications center.
>Visto.com. Life on the Dot.
>
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Search: <http://www.mail-archive.com/[email protected]/>
>List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to