Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

menu system in front of a J2EE application

 
rivka zam
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic