.jsp and servlets

Is there anything that is confusing you, or that you are unable to understand? You can clarify here.
Post Reply
capt_nemo777
Posts: 3
Joined: Wed Feb 27, 2008 1:44 pm

.jsp and servlets

Post by capt_nemo777 »

hello,

Obviously, I'm new here, so I would like to ask if the free plan allows .jsp and servlets?, based on the features of the free plan is, it only allows PHP and MySQL?, I'll be hoping for your most welcome response. thank you.



REgards,
Nemo


SHAdmin
Posts: 2089
Joined: Sat Dec 18, 2004 11:28 am
Contact:

Post by SHAdmin »

Hi,
Welcome to SmokyHosts.com

No, we do not offer .jsp and servlets support.
delivi
Posts: 454
Joined: Sun Mar 26, 2006 1:24 pm
Contact:

Post by delivi »

hi 'capt_nemo777' welcome to SmokyHosts enjoy your time being here.

JSP and Servelets need Tomcat installed along with Apache, SmokyHost does'nt support JSP & Servlets. But you can host PHP websites and use the opensource applications here.

Get active in the forum and get your Free Hosting. Once again welcome to SmohyHosts :D
acaipowleet
Posts: 2
Joined: Fri Jan 15, 2010 9:34 pm
Contact:

jsp and servlets

Post by acaipowleet »

Its not a question, but I think i have the same problem here... Except that its a jsp page without servlets...

Here it goes:

Code:<select name="slc_ville" class="form_element" id="slc_ville" onChange="searchfilter" style=" width:150px"><option value="">All</option>< java.sql.Connection con5;Class.forName"org.gjt.mm.mysql.Driver";con5 = DriverManager.getConnectionurl, user, password;Statement statement5=con5.createStatement;String query5="select DISTINCT c.event_no_ville , v.ville, p.province_fr, p.province_en, p.abreviation FROM cmsSWI_contents c, cmsGeo_villes v, cmsGeo_provinces p WHERE v.no = c.event_no_ville AND v.no_province = p.no AND c.actif=1 AND c.date_fin >= CURDATE AND c.heure_fin>= CURTIME ORDER BY v.ville asc";ResultSet resultset5=statement5.executeQueryquery5;ResultSetMetaData rsm5 = resultset5.getMetaData;int ville_compteur;ville_compteur = 0;String selected_ville;while resultset5.nextville_compteur;><option value="<=resultset5.getInt1>" ><=resultset5.getString2> <=evalslc_vville_compteur> </option><con5.close;> </select>The problem is within my option tag. The eval part is not working. All I need is slc_vville_compteur to be interpreted as a variable, wich is defined earlier in the script.

I know its an easy thing to do in php or other languages, but I searched the web for hour and I cant find anything.

Is there an equivalent for the eval in JSP ??

Thanks everybody
allergonaut
Posts: 2
Joined: Tue Sep 15, 2009 10:28 pm
Contact:

jsp and ser

Post by allergonaut »

Servlets and JSP are essentially the same thing. Jsps are basically HTML files which contain embedded java code. The idea behind JSP is to seperate the role of a web developer from a java developer. Java functionality can be acheived by defining custom tags. When the Servlet container instantiates a JSP it is compiled to a Servlet. Servlets involve embedding HTML into the java code which is deemed to be poor design, particularly in large enterprize applications
Post Reply