views:

605

answers:

7

HI, I have Deluxe Linux shared hosting account on GODADDY. I have uploaded basic index.html,test.jsp in provided folder. I also configred jsp handle in my web.xml and waited for 1:00am(sceduled server restart for godaddy) but my jsp page is not compiling and showing me all my jsp code in page loaded in browser. What can be the issue? Do i have to create .jsp file extension?But File extensions allowed that run under python,php,RUBY. Where can i put .jsp under?

Also can i set context parameters in my web.xml in shared hosting?

Code to configure jsp handle as provided in godaddy help.

<servlet-mapping>
         <servlet-name>jsp</servlet-name>
         <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
         <welcome-file>index.html</welcome-file>
         <welcome-file>index.htm</welcome-file>
         <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <servlet-mapping>
         <servlet-name>jsp</servlet-name>
         <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>

jsp code

check for jsp

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
    background-color: #000000;
}
.style1 {color: #0099FF}
-->
</style></head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p align="center" class="style1">Different JSP File </p>
<p align="center" class="style1">Check Complete</p>
<p><a href="index.jsp" class="style6 style8">check for jsp</a></p>
</body>
</html>
A: 

Hi Chava,

Did you get it working? Even I am getting the same problem . It is compiling properly in IE But not in Firefox . Other problem I am facing is JSP is not connecting to MYSQL. Could you please share your exp ?

Thanks a lot Kaveri Chowdhary Vasireddy

Kaveri
Java/JSP normally doesn't compile at the client side. Your problem lies somewhere else. Start your own question. Press the `Ask Question` button at the right top to ask a question instead of posting it as an answer.
BalusC
sorry about this Balu , sure I will post a question
Kaveri
+1  A: 

There is no problem in JSP. Account I bought on GODADDY doesnot support java. Be carefull when selecting your Hosting account at GODADDy if you are using java. Site is really confusing. DELUXE PLAN on LINUX that supports java is hosted on two different servers. 1> GRID Servers (DO not support java) 2> Legacy Host servers(support java). Finally I asked links for both on mail and booked correct Hosting account and now JSP Servlets are working. I have asked support team to clearly mention these details. Hope they are working on it. Sorry to post this question. There was no error in JSP.

Chava
A: 

Thanks Chava for the details . In fact I am facing similar kind of issue.

Linux Web Hosting - Unlimited - 3 years ( first time they gave this to me) Unlimited Hosting - Linux - 3 years (Second time they gave this,saying supports Java)

But even after they confirmed that the second plan I took is going to work, It never worked.Still confusing . Could you please let me know what your plan says? and could you please check the following question I posted and answer in your free time.

http://stackoverflow.com/questions/1851797/godaddy-java-support-and-confusing-and-many-problems

Thanks a lot Kaveri C Vasireddy

Kaveri
+1  A: 

Dear all, In order to buy Hosting account with GODADDY that support java use below link. Please get correct link from their support team than believing any third person. [http://www.godaddy.com/Hosting/Legacy.aspx?ci=1234%5D%5B1%5D

In my case JSP Servlet were not working because Hosting account did not support JAVA.

When you buy a Hosting account on their Legacy Server that support java you need to enable java support by going into Add on Language.Your Java Support will be activated in 42 hrs.

To connect To mysql you can find JSP code in their help section. You just need to paste your MySQL server Host.

DriverManager.getConnection("jdbc:mysql://YOUR MYSQL HOST NAME:3306/"+DATABASENAME,username, pass);

Hope this will clear things for you.

Chava
A: 

This is really strange I bought a Linux deluxe plan and had the same problem when I checked again the list was having Java and it was saying available here. it is really confusing. I'll contact their support to change my plan to java enabled lets see

http://www.thejavacode.com

Java Love
A: 

we've got the same problem since two days. it says jsp/servlet support existed but no chance of executing a single jsp. any solution for this?

A: 

You need to enable JSP/servlets in your godaddy plesk account.

Marty