Hello All....... I need help
I write this code in JSP
I had problem with this code
below...
I want to do something if someone click in
VIEW...
and it pass action variable
action=view... and it will do something..
but I only found that the screen display
action=view but
"YOU CAN ONLY SEE THIS IF ACTION = VIEW" not
appear in the screen?
What's wrong with my code ?
I have created code to edit profile
membership like below :
<%@ page language="java" import="java.util.*,java.sql.*"
%>
<html>
<head>
<title>My Account
Profile</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF"
text="#000000">
<%
String
action=request.getParameter("action");
%>
<a href="profil.jsp?action=view">VIEW</a> OR <a
href="profil.jsp?action=edit">EDIT</a>
<%
if
(request.getMethod().equals("GET"))
{
%>
THE ACTION
<%=action%>
<%
if
(action=="view")
{
out.println("YOU CAN ONLY SEE THIS IF
ACTION=VIEW");
}
}
%>
</body>
</html>