Hi all i am trying following exmaple ..... <jsp:include page="login.html"/> if loginpage does not found it don't give me any errors....... but when i try this <%@include page="login.html"%> if page not found it gives me error why is page not found ....... why it does not give me any error while using jsp:include pls let me know the behaviour for both the case thanks in advance Rishi
Hello Rishi, The Include Directive (static inclusion) has only one attribute (i.e. file) while Include Action (dynamic inclusion) has two attributes: page and flush. It appears that you've used the attribute page in both, that's why you're getting a translation error. Try this: <jsp:include page='login.html'/> <%@include file='login.html' %> Let me know how it goes. --Ted pageflush
Hi Rishi, The inlucde directive will resolve the path during the transition time. That's the reason why it gets error even using the right attribute name "file" in include directive element.
bor
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad: