Advertisement

02.04.2005 at 09:04AM PST, ID: 21302166
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Passing Java Objects to a Jsp page and then retrieving back an object.

Asked by copyPasteGhost in Java Server Pages (JSP)

Tags: , ,

Hello experts,

I have this problem, I have a jsp working PERFECTLY on local machine as well as on the private network.... Now I want to get it working over the internet...

This code is working on the network as well as on my local machine. I'm using Tomcat 5.0 as my websever, and I have the latest version of java installed on ALL machines.

the code for the JSP page is as follows...

<%@ page import= "java.sql.*,
            java.util.Vector,
            com.sun.rowset.*,
            javax.sql.*,
            java.io.*,
            org.w3c.dom.*,
            javax.xml.parsers.*,
            org.xml.sax.*" %>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1);

ObjectInputStream ois = new ObjectInputStream(request.getInputStream());
String strSource = (String)ois.readObject();
ois.close();
String strCommand = "";
String strConnStr = "";
String strParamStr = "";
String strBytes = "";
CachedRowSetImpl objCrs = null;
int nResult = 0;
EDO objEDO = new EDO();
ObjectOutputStream oos;

Document xmlDocIn = null;
DocumentBuilder builder= null;
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
InputSource source = new InputSource (new StringReader (strSource));

builder = builderFactory.newDocumentBuilder();  
xmlDocIn = builder.parse (source);

strCommand = objEDO.GetXMLElementValue(xmlDocIn, "Command");
strConnStr = objEDO.GetXMLElementValue(xmlDocIn, "ConnEnc");
strParamStr = objEDO.GetXMLElementValue(xmlDocIn, "ParamEnc");
strBytes = objEDO.GetXMLElementValue(xmlDocIn, "Bytes");

oos = new ObjectOutputStream(response.getOutputStream());
if(strCommand.equals("GET")){
   objCrs = objEDO.EdoGet(strConnStr,strParamStr);
   oos.writeObject(objCrs);
}
else if(strCommand.equals("SET") && strBytes.equals("no")) {
   nResult = objEDO.EdoSet(strConnStr,strParamStr);
   Integer objnResult = new Integer(nResult);
   oos.writeObject(objnResult);
}
else if(strCommand.equals("SET") && !(strBytes.equals("no"))) {
   byte[] bytes = strBytes.getBytes();
   nResult = objEDO.EdoSet(strConnStr,strParamStr,bytes);
   Integer objnResult = new Integer(nResult);
   oos.writeObject(objnResult);
}
oos.flush();
oos.close();
%>
<html>
<body>
</body>
<head>
<meta http-equiv="pragma" content="no-cache" />
</head>
</html>


Does anyone have an idea???
thanks,
GhostStart Free Trial
[+][-]02.04.2005 at 09:28AM PST, ID: 13227791

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 09:32AM PST, ID: 13227831

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 09:59AM PST, ID: 13228124

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 10:09AM PST, ID: 13228228

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 10:24AM PST, ID: 13228378

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 10:51AM PST, ID: 13228650

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:02PM PST, ID: 13229266

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:05PM PST, ID: 13229301

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:09PM PST, ID: 13229350

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:12PM PST, ID: 13229377

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:15PM PST, ID: 13229406

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:17PM PST, ID: 13229423

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:21PM PST, ID: 13229463

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:24PM PST, ID: 13229484

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:38PM PST, ID: 13229616

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 12:40PM PST, ID: 13229639

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 05:25AM PST, ID: 13244077

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 06:35AM PST, ID: 13244641

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 10:13AM PST, ID: 13246941

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2005 at 03:23PM PST, ID: 13249936

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Server Pages (JSP)
Tags: jsp, passing, object
Sign Up Now!
Solution Provided By: kennethxu
Participating Experts: 4
Solution Grade: A
 
 
[+][-]02.09.2005 at 09:19AM PST, ID: 13266384

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.09.2005 at 12:54PM PST, ID: 13269024

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32