• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between different web technologies

 
roshan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me whats the differnce between JSP, ASP, JavaScripting and PHP

Well in linux do they use JSP for GUI?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jhonny", please check your private messages for an important administrative matter.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);


}*/
}
}

file name is DBConnect.java

DSN name: OracleDriver

classpath: ./;c:\Program Files\Java\jre1.5.0\lib\rt.jar;C:\Program Files\Java\jdk1.5.0\lib\tools.jar

path: C:\Program Files\Java\jdk1.5.0\bin


no compile time errors

run time error: Exception in thread "main" java.lang.NoClassDefFoundError: DBConnect
 
roshan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need an urgent reply for this.. because the deadline is near... and i m nearly helpless..

6 months ago i did another project... using VB.. but i failed in establishing a link with database...

this is my 2nd proj.... and i need to perfom it successdully
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.

bear
JavaRanch Sheriff
 
maverick Mohan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
roshan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya i have tried out that...

but it doesnt seem to work
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"roshan",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!