Pls look at the following code why doesnt it work?



<%
String url = "http://localhost/test/hello";
%>



Going to include hello.jsp...

/hello.jsp"/>



the file hello.jsp is in test/hello folder

It comes up with an error message saying file not found.

Comments

  • Try to add the url variable as a member variable:

    <%!
    String url = "http://localhost/test/hello";
    %>

    maybe then you'll be able to access it later in the document.


    :
    :
    : <%
    : String url = "http://localhost/test/hello";
    : %>
    :
    :
    :
    : Going to include hello.jsp...
    : /hello.jsp"/>
    :
    :
    :
    : the file hello.jsp is in test/hello folder
    :
    : It comes up with an error message saying file not found.
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion