Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as HTML by bsccs ( 6 years ago )
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%@page errorPage="error.jsp" %>
        
        <%! int devide(int x){
            return x*x/x;
            
        }
        int val;
        %>
        <% String name=request.getParameter("v1");
        val=Integer.parseInt(name);
        if(val!=0)
        {
            out.print("result is"+ devide(val));

        }
        else
        {
            out.print(val*val/val);
        }
        %>
            
            
    </body>
</html>

    </body>
</html>

 

Revise this Paste

Parent: 113271
Children: 113273
Your Name: Code Language: