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.
The moose likes JSP and the fly likes difference between different web technologies Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "difference between different web technologies" Watch "difference between different web technologies" New topic
Author

difference between different web technologies

roshan
Greenhorn

Joined: Jun 11, 2008
Posts: 7
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

Joined: Jan 10, 2002
Posts: 56554
    
  14

"jhonny", please check your private messages for an important administrative matter.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

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
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

Joined: Jun 11, 2008
Posts: 7
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

Joined: Jan 10, 2002
Posts: 56554
    
  14

"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

Joined: Jun 11, 2008
Posts: 6
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

Joined: Jun 11, 2008
Posts: 7
ya i have tried out that...

but it doesnt seem to work
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"roshan",
Please check your private messages regarding an important administrative matter.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between different web technologies
 
Similar Threads
differeance between jsp and servlet
JSP and Servlets
JSP and Servlets
jsp
jsp vs servlet