When you say "index page", I assume that you mean the default page someone sees.
You do not have to change the core really.
Create a module that has an operation that produces the page you want.
public void welcome(Page page) {
| if (getApi().userLoggedIn()) {
| // render the page
| } else {
| page.sendRedirect("index.html");
| }
| }
|
|
Have your own version of the nukes.ear/nukes.sar jboss-service.xml that has the
CoreModule configured like:
<attribute
name="DefaultUserPage">index.html?module=myIndexPage&op=welcome</attribute>
|
Done!
Sherman
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828323#3828323
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828323
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development