3 kind of pages
(1)index.jsp.............
<>
<>
< equiv="Content-Type" content="text/html; charset=UTF-8">
<>JSP Page< /title>
< /head>
<>
<>Entry Form..< /h2>< name=" Name Input Form" action="response.jsp">
Enter your name:
< type="text" name="name" value="">
< type="submit" value="OK">
< /form>
< /body>
< /html>
(2)responsing JSP file(response.jsp)
<>
<>
< equiv="Content-Type" content="text/html; charset=UTF-8">
<>JSP Page< /title>
< /head>
<>
< id="mybean" scope="session" class="org.me.hello.NameHandler">
< name="mybean" property="name">
<>Hello, !< /h2>
< /body>
< /html>
(3)
package org.me.hello;
public class NameHandler {
private String name;
public NameHandler(){
name = null;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
.......
ok Try with Netbeans6
Sunday, February 17, 2008
doing jsp with 3 files
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment