How to access jsp file in web-inf




















Jenny Uy. I have no experience with WebLogic yet so I'm not sure. It might have been best to start a new topic in the Weblogic forum to ask that, but now that we're here, let's hope some Weblogic users see it. Carol Enderlin. Well, I cannot answer the how true question for every version of weblogic ever created, but I tried it in WebLogic Server 8.

Without further details I would suggest that this may just be due to misunderstanding of what this really means. Thanks for clearing this.

What is the second part not specified by the spec? That sounds like something different. Karan Kaw. All container Follow this. You showed up just in time for the waffles! And this tiny ad:. Boost this thread! How to Generate a War file. And even for the ones where it does work, it may not always work. For example, in Tomcat, you can turn off the "exploded WAR" option and that will break any code that thinks that everything's in its own file. You should never assume you know what the current working directory is in a WAR unless you have just set it yourself.

And don't expect it to stay set after the current request has completed. Bear Bibeault. Do not! I will back up Tim on this. You can make use of those JSPs using servlets. But I am not sure about the Struts Controller. Ben Souther. I like Bear Bibeault. When employing the best-practice Model 2 web application pattern -- in which servlet controllers do the processing and then forward to their view JSPs -- it is advised to place the JSPs under WEB-INF so that they can never be directly accessed.

M Burke. Deepak Bala. Asked 3 years, 6 months ago. Active 3 years, 6 months ago. Viewed 2k times. Improve this question. Because you want the request to go through a controller first, which would then forward to a JSP.

Which is point out in the web. What is the code? Post your servlet code, so that we can help you. Add a comment. Active Oldest Votes. Improve this answer.

Avijit Barua Avijit Barua 2, 4 4 gold badges 12 12 silver badges 30 30 bronze badges.



0コメント

  • 1000 / 1000