Page 1 of 1

.jsp and servlets

Posted: Wed Feb 27, 2008 1:50 pm
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

Posted: Sat Mar 01, 2008 8:47 pm
by SHAdmin
Hi,
Welcome to SmokyHosts.com

No, we do not offer .jsp and servlets support.

Posted: Mon Mar 03, 2008 1:49 pm
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

jsp and servlets

Posted: Wed Jan 20, 2010 8:02 am
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

jsp and ser

Posted: Tue Jun 01, 2010 9:40 pm
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