Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes menu system in front of a J2EE application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "menu system in front of a J2EE application" Watch "menu system in front of a J2EE application" New topic
Author

menu system in front of a J2EE application

rivka zam
Greenhorn

Joined: Feb 22, 2005
Posts: 24
Hi friends,

I need your advice about this:

I have a J2EE application that runs on Websphere application server.

The application contains a several web projects (WARs).

I need to implement a menu page that will be the front for all that web projects.

1. Should that menu be a separate web project (WAR) in my application and contain references to the other web projects? Or is there another way?

2. Is struts-menu suitable for this purpose? Is it mature enough?

Thanks
Rivka
Balaji Sampath
Ranch Hand

Joined: Sep 30, 2005
Posts: 63
Well
I think this should work but havent tried:
in web.xml file there is a tag:
<welcome-file> filename.(html/jsp) </welcome-file>
Its set to a default page when u open WSAD. Try to change that to the page u want to show while executing the war.
let me know if that works.

Regards
Balaji.S
rivka zam
Greenhorn

Joined: Feb 22, 2005
Posts: 24
Hi Balaji,

As much as i know, the configuration xml files (like web.xml) should be transparent to the application code and are suitable for runtime changes.
If you know other than this i will be glad to get an example.

thanks
Rivka
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by rivka zam:
As much as i know, the configuration xml files (like web.xml) should be transparent to the application code and are suitable for runtime changes.
If you know other than this i will be glad to get an example.


The change in web.xml requires application restart/reload in order to reflect the changes.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Balaji Sampath:
I think this should work but havent tried:
in web.xml file there is a tag:
<welcome-file> filename.(html/jsp) </welcome-file>
Its set to a default page when u open WSAD. Try to change that to the page u want to show while executing the war.
let me know if that works.


As far as I know every application has its own deployment descritor (web.xml). Dont think your suggestion is going to work in this case.

I think it would be better to check the WSAD documentation in order to do make it work that way. There should be some server specific configuration file.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: menu system in front of a J2EE application
 
Similar Threads
Struts 2 with Shared Libraries - anyone have experience?
menu system in front of a J2EE application
j2ee projects
menu system in front of a J2EE application
WLS IP config