Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it Possible Web.xml include another xml configuration?

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65104
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65104
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That, indeed, is a matter of opinion.
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic