Advertisement

05.25.2005 at 10:55AM PDT, ID: 21436585
[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!

7.4

JSP form problem when running select with where clause against oracle db.

Asked by amenoss in Java Server Pages (JSP)

Tags: , ,

This should be an easy one for you JSP wizards. I have a basic jsp (copied from oracle demo). It gets a value from a single text box with a submit button, this value is used in the where clause of the sql statment. I guess my problem is for some reason the value from the text box when compared against the where wont work...I always get no rows found for select into statement . I know the page works because if hard code the other side of the where condition it works fine. I thought maybe trailing spaces might be throwing it off, but not sure how to check it out.

.....

<FORM METHOD=get>
<INPUT TYPE="text" NAME="empnm" SIZE=8>
<INPUT TYPE="submit" VALUE="Test");
</FORM>
</BODY>
</HTML>
<%!
  private String runQuery(String connStr, String empnm) throws java.sql.SQLException {
     DefaultContext dctx = null;
     String emp = null;  String pos = null;
     StringBuffer sb = new StringBuffer();
     try {
        dctx = Oracle.getConnection(connStr, "user", "pass");
        #sql [dctx] { SELECT emp, pos
                      INTO :emp, :pos
                      FROM employee WHERE UPPER(emp) = UPPER(:empnm) < -- Problem spot
        };

if i do  FROM employee WHERE UPPER(emp) = 'ABCEFGHI'  works no problems, but if I enter that same value in from the form it gives the error...Start Free Trial
[+][-]05.25.2005 at 11:39AM PDT, ID: 14080280

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.25.2005 at 11:50AM PDT, ID: 14080360

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.25.2005 at 08:37PM PDT, ID: 14083078

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.26.2005 at 11:34AM PDT, ID: 14088810

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.26.2005 at 08:45PM PDT, ID: 14091877

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2005 at 01:16PM PDT, ID: 14165589

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.07.2005 at 09:06PM PDT, ID: 14167871

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2005 at 06:12AM PDT, ID: 14170248

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.08.2005 at 08:53PM PDT, ID: 14176615

View this solution now by starting your 14-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, form, from
Sign Up Now!
Solution Provided By: karanw
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.08.2005 at 08:56PM PDT, ID: 14176626

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.09.2005 at 07:09AM PDT, ID: 14179902

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.09.2005 at 08:44PM PDT, ID: 14185559

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.09.2005 at 08:58PM PDT, ID: 14185598

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2005 at 05:31AM PDT, ID: 14187759

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.12.2005 at 08:41PM PDT, ID: 14199740

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43