aspose file tools*
The moose likes Servlets and the fly likes Is it Possible Web.xml include another xml configuration? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is it Possible Web.xml include another xml configuration?" Watch "Is it Possible Web.xml include another xml configuration?" New topic
Author

Is it Possible Web.xml include another xml configuration?

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi Friends...

i've a question..
is it possible web.xml include another xml configuration (like servlet mapping, etc)?..
what i mean is, is it possible to 'divide' web.xml to some files?..
My purpose is for get easiness..

Thanks in advance..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

No.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
In vanilla flavor it's not possible as Bear mentioned but if you go at abstract level there are plenty of web application frameworks available like Spring and Struts. So if you use them then your codebase is more managed.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

That, indeed, is a matter of opinion.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Thanks for replies..

yap, i've clear now..
i've learned a bit about Struts2.. yap the Configuration could divided to a few files.. and it's really more managed..
but i think Struts2 Annotation is more interesting..

How about Servlet3?..
How to getting started about it?..
as far as i know, that Servlet3 just supported by Glassfish v3 Prelude..
is there any Servlet Container that have supported for Servlet3?..

Correct me if i'm wrong..

Thanks in advance..
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Bear Bibeault wrote:That, indeed, is a matter of opinion.

Yes, Bear I know once you said that Struts is bulky and blah blah and it complicates the work rather than making it more managed. I couldn't link that post here.

But the fact is that you have vast 30+ years of experience. You have seen the time from desktop app to web app, birth of servlets to today's latest framework. So you can see the web app structure from 30,000 feet and can find flaws in today's web app frameworks. But I don't have much experience so I simply follow trend so you can say 'A herd'.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is it Possible Web.xml include another xml configuration?