PDA

View Full Version : Exactly What Are JSP Pages



Digitalosophy
September 13th, 2003, 01:54 AM
Could someone please explain what a JSP page actually is and what the pros and cons are of using them. Is this something that developers should look into?

Jubba
September 13th, 2003, 01:55 AM
http://java.sun.com/products/jsp/

from my experiences its painfully slow... painfully slow...

Digitalosophy
September 13th, 2003, 01:59 AM
thanks jubba i just looked at some code snippets

:trout: man all that code just to send an email? seems a bit complex for no reason to me.

lostinbeta
September 13th, 2003, 02:03 AM
I agree with Jubba, JPS in my experience as well as been painfully slow, almost makes you think you are on a 28.8 when you are really on a T1.

Digitalosophy
September 13th, 2003, 02:07 AM
i see, thanx guys much appreciated as always

Maxtr0sity
September 13th, 2003, 10:16 AM
I don't notice the difference between JSP and any other pages. For example, www.ratemyteacher.com is constructed by JSP.

Kitiara
September 13th, 2003, 10:21 AM
Churchill use a lot of JSP pages in their website. Since we run our systems off Apache servers, we can't use IIS and ASP. Some bod in IT thought JSP was the way to go. Can't really say it's been all that good though, we've had a lot of problems with it, and as you've already noticed, there can be a whole lot of code for one little function. :sure:

ahmed
September 13th, 2003, 12:00 PM
why use JSP with Apache when you can do PHP.. lol :sigh:

Maxtr0sity
September 13th, 2003, 12:02 PM
Thats what I was wondering, isn't it easier to learn PHP than JSP?

Kitiara
September 13th, 2003, 12:02 PM
This is what I said. :sure:

But do they listen to me? Noooo...

lostinbeta
September 13th, 2003, 12:06 PM
Originally posted by Kitiara
This is what I said. :sure:

But do they listen to me? Noooo...

Well MAKE them listen to you ;) PHP is wy better than JSP and is easier to code as well.

Of course, this would mean you would have to go back and redo the JSP pages if you were to switch now ;(

BadMagick
September 13th, 2003, 12:06 PM
That's the problem with IT people - most of them don't know what they're doing ... wait!! I'm an IT student!! (runs away screaming)

T-O
September 13th, 2003, 12:15 PM
HTMl to JavaSkript (http://www.stickysauce.com/misctools/htmljavascript.htm)
Check here up.


It's funnie

ahmed
September 13th, 2003, 12:17 PM
it converted

<b>hey</b>

to

<script>
info="<b>hey</b>"

document.write(info)
</script>


what's the point? :-\

T-O
September 13th, 2003, 12:19 PM
nittin you can change your howl HTML page to JavaSkript page.

Maxtr0sity
September 13th, 2003, 12:25 PM
Originally posted by ahmed
it converted

<b>hey</b>

to

<script>
info="<b>hey</b>"

document.write(info)
</script>


what's the point? :-\

Retards. :-\

Not you ahmed:P

lostinbeta
September 13th, 2003, 12:31 PM
Originally posted by T-O
nittin you can change your howl HTML page to JavaSkript page.

Yeah, why would you want to turn your page into Javascript?

JSP = JavaServer Pages... which is a server-side langauge, where JavaScript (notice the lack of a "k") is a client side language, so this link really isn't of any use for anything ;)

::still ponders who would want to convert their page to all javascript ::

T-O
September 13th, 2003, 12:34 PM
I don't know.






really.... :-\

lostinbeta
September 13th, 2003, 12:36 PM
I guess people who think it will prevent "l33t haxx0rz" (shudders) from stealing their precious code.... even though apparently it only sticks the code in a variable and prints out that variable.... that's just lame :P

Hehe, this link is cracking me up :beam:

T-O
September 13th, 2003, 12:50 PM
I told ya it was funny

lostinbeta
September 13th, 2003, 12:55 PM
Hehehehe, if you keep hitting the convert button you eventually just get a bunch of "gunk" (this was from a browser dimensions script I wrote before)

<script>
info="<script>" +
"info=&#34;<script>&#34; + " +
"&#34;info=&#34;<script>&#34; + &#34; + " +
"&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<SCRIPT LANGUAGE=&#34;JavaScript&#34;>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;<!--&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(&#34;Your browser\&#39;s dimensions are: &#34;)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;//if browser supports window.innerWidth&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;if (window.innerWidth)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(window.innerWidth+&#34; by &#34;+window.innerHeight)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;//else if browser supports document.all (IE 4+)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;else if (document.all)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(document.body.clientWidth +&#34; by &#34;+document.body.clientHeight)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;-->&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;</SCRIPT>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;</script>&#34;&#34; + &#34; + " +
"&#34;&#34;&#34; + &#34; + " +
"&#34;&#34;document.write(info)&#34; + &#34; + " +
"&#34;&#34;</script>&#34;&#34; + " +
"&#34;&#34; + " +
"&#34;document.write(info)&#34; + " +
"&#34;</script>&#34;" +
"" +
"document.write(info)" +
"</script>"

document.write(info)
</script>

asphaltcowboy
September 13th, 2003, 12:57 PM
sexeh :love:

lostinbeta
September 13th, 2003, 12:58 PM
Well Uhh, I can honestly say that there is going to be a tutorial on getting browser dimensions, but it will NOT be using that version of the script.... lol.

ahmed
September 13th, 2003, 01:04 PM
Originally posted by lostinbeta
Hehehehe, if you keep hitting the convert button you eventually just get a bunch of "gunk" (this was from a browser dimensions script I wrote before)

<script>
info="<script>" +
"info=&#34;<script>&#34; + " +
"&#34;info=&#34;<script>&#34; + &#34; + " +
"&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<script>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;info=&#34;<SCRIPT LANGUAGE=&#34;JavaScript&#34;>&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;<!--&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(&#34;Your browser\&#39;s dimensions are: &#34;)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;//if browser supports window.innerWidth&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;if (window.innerWidth)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(window.innerWidth+&#34; by &#34;+window.innerHeight)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;//else if browser supports document.all (IE 4+)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;else if (document.all)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(document.body.clientWidth +&#34; by &#34;+document.body.clientHeight)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;-->&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;</SCRIPT>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34;</script>&#34;&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;document.write(info)&#34; + &#34; + &#34; + " +
"&#34;&#34;&#34;</script>&#34;&#34; + &#34; + " +
"&#34;&#34;&#34; + &#34; + " +
"&#34;&#34;document.write(info)&#34; + &#34; + " +
"&#34;&#34;</script>&#34;&#34; + " +
"&#34;&#34; + " +
"&#34;document.write(info)&#34; + " +
"&#34;</script>&#34;" +
"" +
"document.write(info)" +
"</script>"

document.write(info)
</script> LOL!!

lostinbeta
September 13th, 2003, 01:07 PM
I decided to check how accurate this code was and when I tested the code the output I got was....


"" + " + " + " + " + " + " + " + " + " + """"""""""" + " + " + " + " + " + " + " + " + " + """"""""""document.write(info)" + " + " + " + " + " + " + " + " + " + """""""""""" + " + " + " + " + " + " + " + " + """""""""" + " + " + " + " + " + " + " + " + """""""""document.write(info)" + " + " + " + " + " + " + " + " + """"""""""" + " + " + " + " + " + " + " + """"""""" + " + " + " + " + " + " + " + """"""""document.write(info)" + " + " + " + " + " + " + " + """""""""" + " + " + " + " + " + " + """""""" + " + " + " + " + " + " + """""""document.write(info)" + " + " + " + " + " + " + """"""""" + " + " + " + " + " + """"""" + " + " + " + " + " + """"""document.write(info)" + " + " + " + " + " + """""""" + " + " + " + " + """""" + " + " + " + " + """""document.write(info)" + " + " + " + " + """"""" + " + " + " + """"" + " + " + " + """"document.write(info)" + " + " + " + """""" + " + " + """" + " + " + """document.write(info)" + " + " + """"" + " + """ + " + ""document.write(info)" + " + """" + "" + "document.write(info)" + "" document.write(info)


Where is... my original script actually prints out....
Your browser's dimensions are: 997 by 601

Interesting.... ;)

reverendflash
September 13th, 2003, 01:14 PM
my first gig as a contractor was for a company who's site was all .jsp ...

I worked for them for about 16 hours total... I quickly found another contract to work on...

I hate jsp. The worst of all worlds, in a bad nightmare, in a hurricane, at sea...

Rev

Digitalosophy
September 13th, 2003, 01:35 PM
haha rev that's funny, i see the JSP pages didnt go over very well with you

reverendflash
September 13th, 2003, 04:56 PM
you catch on quick...

Rev