jsp in browser.

View: New views
5 Messages — Rating Filter:   Alert me  

jsp in browser.

by Steve Howerton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

by Steve Howerton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I figured it out ty anyway.

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]

Parent Message unknown Re: jsp in browser.

by HandyGeek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Steve,
It appears that you created the code below by hand.  The beauty of Visual Web is that you drag-and-drop components on the visual work surface, and NetBeans creates all the underlying code automatically.  

I applaud the fact that you got your hand-coded code to work within VWP.  I still must rely on the IDE to do that for me.

Best regards,
David

 -------------- Original message ----------------------
From: Steve Howerton <ceyesuma@...>

>
> I figured it out ty anyway.
>
>
> 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]
> >
>
> --
> View this message in context:
> http://www.nabble.com/jsp-in-browser.-tp17357023p17358317.html
> Sent from the Visual Web - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: jsp in browser.

by Rick Fincher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

by Steve Howerton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Rick Fincher wrote:
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@visualweb.netbeans.org
For additional commands, e-mail: users-help@visualweb.netbeans.org
LightInTheBox - Buy quality products at wholesale price