Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for eddy556

No I know that in order to compare a String you have to call its method .equals but how I check if a String is NOT equal to something? Will it be something like if ("hello" != String.equal())?? or is there a special method? I know I'm being dumb here …

Member Avatar for stultuske
0
751
Member Avatar for eddy556

The following stored procedure is supposed to add a new record to the database OR update Mdescript if it already exists. However I keep getting errors such as primary key violations. Please take a look, many thanks :) [CODE=SQL] USE [COSHH2008] GO /****** Object: StoredProcedure [dbo].[CHSP_OR_ACTIVITYAREA_001] Script Date: 12/02/2008 13:59:33 …

Member Avatar for eddy556
0
124
Member Avatar for eddy556

Hey I know this must be simple, but how do I prevent windows media player playing automatically when the form it is contained on is loaded? Thanks

Member Avatar for eddy556
0
89
Member Avatar for eddy556

Hi, I have a JSP which searches through a database of categories and displays each one with a unique link if clicked. When the link is clicked it sends it to itself and saves it into a variable. <jsp:forward> is then called which should send the variable as a parameter …

0
89
Member Avatar for eddy556
Member Avatar for eddy556

I have a string stored in a session variable.....how do I get that string back out as I get the error:Type mismatch: cannot convert from Object to String Is there a toString() method or something? Thanks

Member Avatar for ~s.o.s~
0
120
Member Avatar for eddy556

I have a JSP which inserts date into a MS Access database. But I keep receiving the error: 24: statement.executeUpdate("INSERT INTO Questions WHERE ID ='"+ID+"'(\"Question\", \"Answer\", \"Timestamp\", \"Author\", \"Customer_Useful\", \"Customer_NotUseful\") VALUES ('"+Question+"','"+Answer+"','this has been updated','"+Author+"','0','0')"); I have checked and checked all the values are there and correct and that the …

Member Avatar for masijade
0
398
Member Avatar for eddy556

Okay, here we go. I am trying to learn how to use javabeans properly and so I've created a small bean which just writes text to the screen. I keep getting the error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java …

Member Avatar for ~s.o.s~
0
221
Member Avatar for eddy556

I know I'm probably being dumb here but I cannot seem to compile a java bean. Here is my code: [code] package beans; import java.sql.*; public class example { public void test() { out.println("The bean worked"); } } [/code] I get the error: example.java:5: class Example is public, should b …

Member Avatar for ~s.o.s~
0
78
Member Avatar for eddy556

Hey, I'm having a problem with an if statement. I want to check if variable key and id are the same. They are both strings and when I print them to screen they certainly look the same. However when using them within an if statement it always returns false. Here …

Member Avatar for eddy556
0
153
Member Avatar for eddy556

Hey, I have a primary JSP which inlcudes a secondary JSP which is dynamic. How do I pass parameters FROM the secondary JSP back the PRIMARY JSP not the other way around? For example I have a page which displays the output from a database. The first page is just …

Member Avatar for ~s.o.s~
0
63
Member Avatar for eddy556

I'm having problems performing math in JSP. I have a line: double percentage = (useful / nonuseful) * 100; which is giving me an error, how do I fix this? Thanks

Member Avatar for eddy556
0
101
Member Avatar for eddy556
0
45
Member Avatar for eddy556

I've got this code which seems right but I keep getting: An error occurred at line: 19 in the jsp file: /viewFAQ.jsp Syntax error, insert "AssignmentOperator Expression" to complete Assignment where the lines involved are: [code] 16: String key = request.getParameter("edit"); 17: ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE …

Member Avatar for peter_budo
0
83
Member Avatar for eddy556

Please take a lot at this. Tomcat is reporting the variable editQuestion cannot be resolved. [code] <% String key = request.getParameter("edit"); ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE ID ="+ key +""); while(columns1.next()) { String editid = columns1.getString("ID"); String editQuestion = columns1.getString("Question"); String editAnswer = columns1.getString("Answer"); String editUpdated = …

Member Avatar for eddy556
0
75