• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Web-app structure

 
sravanthi pulukuri
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii

There was a Question about the Structure of Web-app in Javabeet exam.


1. --myapp
---WEB-INF
----web.xml
---classes
----- lib
------index.html

2: --myapp
---WEB-INF
----web.xml
----lib
---META-INF

----meta.xml


now my doubt is what are the things that can be present in META-INF??

1 and 2 are the right options.




 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I don't know much about this, but I don't think that there is any restrictions on what you can put in META-INF. Some of the servlet containers don't use this, and some (like tomcat which requires context.xml in META-INF) use this folder to find deployment information...
 
Milton Ochoa
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can put JSP files on META-INF directory, for avoid the direct access (client access), to this resources. In general, you can put whatever files, but this files are only available directly to the webapp.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic