• 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: 9597
36
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!