How can I reach e text or button value in a jsp page and change it?

<form action="school.jsp">

//page calling itself My page is school.jsp and when I click

//ok button it opens again school.jsp and adds some data from

//inputs to database and lists them.

<INPUT type="text" name="school" value=0 >

//For example I want to reach text value and want to change it like this

<% if (school==0) {%>

<% school=1%>

<% do something}%>

<% else {%>

<% do something}%>

if(request.getParameter("school").equals("0")) does not working.

[586 byte] By [M.Ali] at [2007-11-26 7:43:15]
# 1

HIi,

This forum is actually for ASP questions, you should try posting your question to the JSP forum:

http://forum.java.sun.com/forum.jspa?forumID=45

As far as I know, what you are hoping to do can be done as follows:

<HTML>

<HEAD>

<TITLE>Using the if Statement</TITLE>

</HEAD>

<BODY>

<H1>Using the if Statement</H1>

<%

int value = 10;

if(value > 0)

out.println("Absolute value of " + value + " = " + value);

%>

</BODY>

</HTML>

Hope this helps

roho at 2007-7-6 19:52:28 > top of Java-index,Web & Directory Servers,Web Servers...