Below is the index.jsp that I modified. It has "myparameter". I just don't see 
where to put "Passion!" for the value.

<html>
    <head><title>Hello</title></head>
    <body bgcolor="white">
        <img src="duke.waving.gif"> 
        <h2>Hello, my name is Duke. My hobby is Golf. I am American. What are 
your name, hobby and nationality?</h2>
        <form method="get">
            <input type="text" name="username" size="25">
            <input type="text" name="hobby" size="25">
            <input type="text" name="myparameter" size="25">
            <p></p>
            <input type="submit" value="Submit">
            <input type="reset" value="Reset">
        </form>
        <%
            String username = request.getParameter("username");
            if ( username != null && username.length() > 0 ) {
        %>
        <%-- forward to another JSP file called middle.jsp--%>
       <jsp:forward page="middle.jsp"/>
        <%
                }
        %>
        
        <%------------ commented out for now ------------
        <c:if test="${fn:length(param.username) > 0}" >
            <%...@include file="response.jsp" %>
        </c:if>
        -------------------------------------------------%>
    </body>
</html>




--- On Mon, 10/12/09, Kathleen Justice <kathleenmjust...@yahoo.com> wrote:


>From: Kathleen Justice <kathleenmjust...@yahoo.com>
>Subject: [java ee programming] JSP Basics: value Passion! (???)
>To: java-ee-j2ee-programming-with-passion@googlegroups.com
>Date: Monday, October 12, 2009, 1:30 PM
>
>
>I'm working on the homework from JSP Basics, September 21st and it states that 
>it "shouldadd another String type parameter called  myparameter with value 
>"Passion!" to the request object." I have a String type paramter called 
>myparameter, but how do you give it the value "Passion!"? (I have everything 
>else working great!) I appreciate any help.
>
>-Kathleen
>
>
>>
> 



      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to