|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
jsp in browser.I created a nbproject,webapplication,visual web java Server Faces
Glashfish,deployed it.(netbeans6.1) I have written a couple of them and they do not show up in a browser. Below is the one I just started. Can someone explain what needs to be done to run this in a browser? [code] <%-- Document : greeting Created on : May 20, 2008, 11:32:11 PM Author : depot --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <f:view> <h2> Hi my name is Duke. I'm thinking of a number from <h:outputText lang="en_US" value="#{UserNumberBean.minimum}"/> to <h:outputText value="#{UserNumberBean.maximum}"/>. Can you guess it? </h2> </f:view> </body> </html> [/code] |
|
|
Re: jsp in browser.I figured it out ty anyway.
|
|
|
|
|
|
Re: jsp in browser.Hi Steve,
I don't quite follow what you mean. Did it run in Netbeans OK? How did you deploy it? Does it show up in the list of running applications in Glassfish after you deployed it?? Rick Steve Howerton wrote: > I created a nbproject,webapplication,visual web java Server Faces > Glashfish,deployed it.(netbeans6.1) > I have written a couple of them and they do not show up in a browser. > Below is the one I just started. > Can someone explain what needs to be done to run this in a browser? > [code] > <%-- > Document : greeting > Created on : May 20, 2008, 11:32:11 PM > Author : depot > --%> > > <%@page contentType="text/html" pageEncoding="UTF-8"%> > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <title>JSP Page</title> > </head> > <body> > <f:view> > <h2> Hi my name is Duke. I'm thinking of a number from > <h:outputText lang="en_US" > value="#{UserNumberBean.minimum}"/> to > <h:outputText value="#{UserNumberBean.maximum}"/>. > Can you guess it? > </h2> > </f:view> > </body> > </html> > [/code] > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: jsp in browser.Well thanks but I am below the learning curve. I followed tutorials and JSP'S were instructed to be created and that is how I became farmiliar with the relationship of xml,taglib and backing beans but the browser was not running them.
So no I am going to re try using <webuijsf:page id="page1"> <webuijsf:html id="html1"> <webuijsf:head id="head1">..... tags(<webuijsf:.... Any way I somewhat understand the purpose of each line of code so this next attempt is to do it the way you had mentioned.(drag and drop). I hope it works for me I am looking forward to preceding to the more complicated uses. Do you have an leads on some challenging tutorials Thanks -Steve
|
| Free Forum Powered by Nabble | Forum Help |