reset password
Author Message
jpascua
Posts: 197
Posted 18:21 Jun 10, 2015 |

What's the difference between placing a JSP under WebContent vs. placing it under WEB-INF?

clarenceann
Posts: 16
Posted 18:33 Jun 10, 2015 |
One of them is accessible by the user
jpascua
Posts: 197
Posted 21:56 Jun 10, 2015 |

Can you explain that in a little more depth?

ytsai8
Posts: 47
Posted 06:35 Jun 11, 2015 |

When you put it under WebContent, users can access it by typing in the absolute url

When you put it under WEB-INF and tries to go through the absolute url, you'll get 404 error. One way to access is to go through action of form submission 

jpascua
Posts: 197
Posted 12:56 Jun 11, 2015 |
ytsai8 wrote:

When you put it under WebContent, users can access it by typing in the absolute url

When you put it under WEB-INF and tries to go through the absolute url, you'll get 404 error. One way to access is to go through action of form submission 

That's a very clear explanation. Thank you. :)