This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Originally posted by jhonny: Can you tell me whats the differnce between JSP, ASP, JavaScripting and PHP
JSP, ASP and PHP are all server-side templating systems for web applications. JavaScript is a scripting language used mostly in the client-side web pages.
Well in linux do they use JSP for GUI?
The question makes no sense. There are many ways to create GUIs for programs on Linux. X11. Swing. Or whatever. JSP, as noted above, is a server-side templating mechanism for web applications.
roshan
Greenhorn
Joined: Jun 11, 2008
Posts: 7
posted
0
i have learnt only upto JAVA....
right now i am doing a college project.... a real time project to be implemented in our college...
i used JAVA swings..... which caused me lots of trouble for developing the GUI..
i have even constructed my database.... buth the problem is that i am unable to establish a link between JAVA and database...
i have talked to my lectureres and several other JAVA programmers... they lend me a helping hand.... but i never had been able to find a solution for it.....
i'll post the code here:
import java.sql.*; import javax.sql.*;
public class DBConnect { public static void main(String[] args) throws Exception { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbcdbc:OracleDriver","scott","tiger"); System.out.println("Connection is created"); }
catch(Exception e) { } /*Statement stmt=con.createStatement(); ResultSet rs=stmt.executeQuery("select * from emp"); while(rs.next()) { int id=rs.getInt("id"); String name=rs.getString("name"); String city=rs.getString("city"); int salary=rs.getInt("salary"); System.out.println(id +" "+ name + " "+ city+ " " + salary);
"jhonny", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.
Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Be aware that accounts with invalid display names are disabled.
In general if classpath has been setup correctly the error should not occur. However, make sure that your classpath includes .; i.e. path to your current folder where the program is located. If not, the above error will show up and this may be all you need to fix your problem.