954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't view 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?

<%-- 
    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>
ceyesuma
Posting Pro
524 posts since Aug 2007
Reputation Points: 7
Solved Threads: 2
 

I figured it out ty anyway.

ceyesuma
Posting Pro
524 posts since Aug 2007
Reputation Points: 7
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You