• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the best module structure and component structure for my cms ?

 
amir kawaja
Greenhorn
Posts: 13
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I have a web application . This application is small cms .
I love create module and component . What is the best module structure and component structure for my cms ?

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35707
407
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't one "best" structure. Start with requirements. What do you want your CMS to do? What classes do you think you need? Or components if it is more than a toy system.
 
amir kawaja
Greenhorn
Posts: 13
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks. the my component structure is :

mycomponent
|---jsps
|---js&css
|---images
|---classes
        |-----servlet & filter
        |---- java classes

in the my component structure i need to add a servlet and custom filter-mapping in web.xml .
when a cms is running how i can add a servlet or add custom filter-mapping in web.xml ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so by "component structure" you didn't mean the software design, but rather the directory layout.

#1) What do you mean by "add a servlet when the cms is running"? Are you saying you need to add servlets at runtime, and the CMS can not be stopped while you do that? If so, I'm pretty sure that that is beyond what you will be able to accomplish.

#2) The classes directory must be inside WEB-INF, whereas CSS, JS and images generally are not. If you want them to be, you will need to add a special servlet to serve them from there, but I advise to keep them outside of WEB-INF. JSPs can go either inside or outside of WEB-INF; inside is preferable. But I don't see WEB-INF in your directory layout, so I'm confused.
 
amir kawaja
Greenhorn
Posts: 13
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, my means is add servlets at runtime, and the CMS can not be stopped .I've tested a servlet but web server will automatically restart.
How do I add a servlet without restart the web server?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's start by you explaining why you need to do that. While it is possible it adds so much complexity (not to mention development time) that it may not be worth the effort.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!