Forums Register Login

Basic doubt in the JSF

+Pie Number of slices to send: Send
Hi,
i have a doubt regarding JSF.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<HTML>
<BODY>
<f:view>
<h:outputText value="Hello, world!!!"/>
</f:view>
</BODY>
</HTML>

this is the first program which i am trying to do in the JSF .
my doubt is -- is it mandatory to include the first two lines like

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
even for simple program.
is there any way to do this program..
+Pie Number of slices to send: Send
Yes, you have to include those so that when the servlet container compiles your JSP it can find the taglibs.
+Pie Number of slices to send: Send
You might be disgusted with having to put those lines in, but if you use a powerful editor, like Eclipse or NetBeans, you can make a template and not worry about retyping it.

If you're going to do any kind of serious JSF work, you'll want a powerful editor anyway.
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 868 times.
Similar Threads
.jsp or .jsf
unable to instantiate tag f:view
[noob] trying to follow jsf example, having problems
actionlistener for selectBooleanCheckbox doubt?
Form Being Rendered Outside of the Page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:17:23.