I understand that servlet and JST technologies work together to the
web application design.
Although servlet works better to controlling and dispatching, and JSP
works better to displaying.

In the homework 3 only JSP files are used to build the basic web
application.

I did the homework 3 but I feel that it isn’t good yet. The browser
display only the static part of the application, but the dynamic part
with the boxes to type data (name, nationality, hobby) isn’t present
in the browser.

This is the output in the browser:
Hello, !
Your nationality is !
Your hobby is !
My Attribute is Passion!!


I did the 3 next activities:

1. I added in index.jsp to each one of the words (nationality and
hobby) the next code:

            <input type="text" name="word" size="25">

            String word = request.getParameter("word");

            %...@include file="response.jsp" %

          <jsp:forward page="middle.jsp">
                <jsp:param name="myattribute" value="Passion!"/>
         </jsp:forward>


2. I added in middle.jsp the next code:

    <jsp:include page="response.jsp" />


3. I added in response.jsp to each one of the words (nationality,
hobby and myattribute) the next code:

<h2><font color="black">Your word is ${param.word}!</font></h2>



Would someone give me your opinion?

Thanks in advance.

Cruz


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to