27.04.2013 Views

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Servlets & <strong>Server</strong>s<br />

I am working on weblogic server 5.1 with MsSQLSERVER7 i am able to load the<br />

driver but it says unable to get socket connection.It says connect to the<br />

MSSQLSERVER's host and port no.<br />

How do I get these name and value.<br />

Answer: The MS Sql <strong>Server</strong>'s host is usually the name or ip of the server that run<br />

SQL <strong>Server</strong>, if you know the IP (ping ), put the IP in it, it will be<br />

faster, for the Port number, sincerely I don't<br />

remember the standard port, but look into the SQL <strong>Server</strong> documentation and you<br />

will find it.<br />

by Davide<br />

Whenever I compile my servlets it always says "can't find package javax.*" even<br />

though I downloaded the JSDK. Where the JSDK files so it'll find that package?<br />

Answer: There are no classes in the javax.* package. There are classes in<br />

javax.servlet.* and javax.servlet.http.*, but neither are really related to javax.* -importing<br />

javax.* won't affect them. You should import the packages that you really<br />

want to use!<br />

Q: I have a list of html links on a web page, and I want to be able to call a servlet<br />

based on what the user clicked on...<br />

I used:<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!