Urgent Help need

Hello,

I am getting an ununderstandable error in JSP.

<%@ page import="java.sql.*" errorPage="Error.jsp" %>

<jsp:useBean id="mab" scope="session" class="MstAgentBean"/>

<html>

<head>

<title>Transport Details Added</title>

</head>

<body>

<% String aname=request.getParameter("agentname");

String astation=request.getParameter("agentstation");

String adr1=request.getParameter("addr1");

String adr2=request.getParameter("addr2");

String aph1=request.getParameter("ph1");

String aph2=request.getParameter("ph2");

String aph3=request.getParameter("ph3");

String afx=request.getParameter("fax");

String atype=request.getParameter("agenttype");

mab.connect();

mab.addAgent(aname,astation,adr1,adr2,aph1,aph2,aph3,afx,atype);

mab.disconnect();

%>

</body>

</html>

Please tell what is wrong with this code.

I will be thankful if you can be online to help me in solving my problem,

Thanks.

[1461 byte] By [javakid2007a] at [2007-11-26 15:30:43]
# 1
The error message might help, but then again, if you have time to post the error separately then the problem can't have been that urgent. And if it is, then We are too late anyway.
masijade.a at 2007-7-8 21:47:28 > top of Java-index,Java Essentials,Java Programming...
# 2
You might also consider using the proper forum (if you scroll down the forum page you will find a JSP forum) if you wish to get a somewhat quick (and yet still correct and serious) answer.
masijade.a at 2007-7-8 21:47:28 > top of Java-index,Java Essentials,Java Programming...
# 3
urgent, you say? ok, my fee is ?00 per hour, minimum of 4 hours. do you need my paypal details?
georgemca at 2007-7-8 21:47:28 > top of Java-index,Java Essentials,Java Programming...
# 4

Sorry, I don't know how to give "urgent help". Don't know what that is. But maybe you meant you needed help urgently, which isn't the same thing. In that case, the problem with that code is that you put it in a JSP. Don't put large lumps of Java code in a JSP. Put them in servlets where they belong.

DrClapa at 2007-7-8 21:47:28 > top of Java-index,Java Essentials,Java Programming...
# 5
to late :(the kido is gone and it's our fault. We weren't fast enough.
manuel.leiriaa at 2007-7-8 21:47:28 > top of Java-index,Java Essentials,Java Programming...
# 6

> Sorry, I don't know how to give "urgent help". Don't

> know what that is. But maybe you meant you needed

> help urgently, which isn't the same thing. In that

> case, the problem with that code is that you put it

> in a JSP. Don't put large lumps of Java code in a

> JSP. Put them in servlets where they belong.

giving urgent help is easy. it's just like giving regular help, but you add "hurry up" after each unit of help

georgemca at 2007-7-8 21:47:28 > top of Java-index,Java Essentials,Java Programming...