Click to See Complete Forum and Search --> : Starting JSP


agent_x91
09-28-2006, 08:34 AM
Hey, I'm looking into starting using JSP and I'd like some basic information - i.e. what in particular I need to download, and maybe a basic example of some JSP.

I've been using Java itself for about 5 years so I'm very experienced with Java, I'd imagine JSP would be very easy for me to learn. I've also had a lot of experience in similar script-based languages such as PHP.

Thanks in advance for any help :)

jetbrains
10-02-2006, 04:43 AM
IMO, the best jsp application is jive 2.0(not 3.0 or higher) which is a open source project based on jsp .
I started using JSP by reading its source code.

agent_x91
10-02-2006, 08:29 AM
Makes sense. Do you have any JSP source code I could plaguarise then?

Whoops I mean look at not plaguarise :cool:

Waylander
10-02-2006, 11:13 PM
If your more of a programmer than a scripter you might find freemarker more logical than jsp, I know I certainly do.

Freemarker has good error reporting, always specific lines and stack traces.
Using the square bracket syntax for derivatives makes distinguishing code and script better too.

Ive always felt that jsp's custom tags where a bit clunky, whereas there is quite a bit of freedom within freemarker using custom objects and macros, although ive rarely felt the need to use them as almost everything you could need is inbuilt into freemarker as is.

I cant stand jsp, the newer version(s) are supposedly better but it would have to be pretty damn good to equal freemarker in my opinion.

Waylander.

agent_x91
10-03-2006, 08:27 AM
I don't actually have a clue what freemarker is but thanks for the advice:) I am indeed much more of a programmer than a scripter but I am perfectly competent with scripting languages such as PHP and javascript so I'd like to add JSP to that collection.

Can someone please show me some example JSP souce code maybe? Or a link to a tutorial? I'd imagine I wouldn't need the bulk of a tutorial but I'd certainly need to know what JSP generally looks like and how it's different frm other scripting languages as they are all individual.

So any sample JSP source code etc. is welcome :cool: :)

Waylander
10-03-2006, 09:50 PM
Freemarker is a templating engine.

Another thing aside from its ability too completely floor jsp on type specific data handling and custom data type handling, is that it can generate all sorts of output not just html things like rtf, xml, sql, java scource code... you can even do xslt with it.

It has a full jsp runtime embedded in it so it even supports jsp and jsp tag libraries.

Well yeah... ive done scripting languages too, php, asp, procedural.
Ive always hated stand alone jsp, I dont think its really even close to half as good as php, even with tag libraries.

Sorry for going on about it, I just think its a very interesting technology.


If you want to learn jsp, you could just download the newest version of the standard library or the struts set...

http://java.sun.com/products/jsp/jstl/
http://struts.apache.org/1.x/struts-taglib/index.html


Waylander.

agent_x91
10-09-2006, 04:08 AM
it can generate all sorts of output not just html things like rtf, xml, sql, java scource code...

Eww I would never use a program like that I'm a hardcore DYI programmer :cool:

And I'm still looking for any JSP source code... any at all...?

agent_x91
10-09-2006, 04:20 AM
How about a hello world script or something...? :cool:

Waylander
10-09-2006, 04:56 AM
http://www.google.com/search?hl=en&q=jsp+hello+world&btnG=Google+Search

get better.

agent_x91
10-09-2006, 06:00 AM
I think I can manage to make my own google search thanks. If you're not going to help, don't waste my time answering.

vips
10-11-2006, 03:24 PM
Which things/softwares/sever software you have to have to work on JSP. and where is it available?

Leon945
10-12-2006, 10:30 AM
heey... i can't say i'm in expert in java... im actually just graduating...
but i've used JSP in some projects...
unfortunately i would no be able to provide you with the source code, because it doesnt belong to me...

Here is a basic tutorial to JSP:

http://www.jsptut.com/Getfamiliar.jsp

once you think you got it, i think struts is an interesting way to go, which you can get at apache.org

you can also find some helpful information in wikipedia about jsp directives and tags:
http://en.wikipedia.org/wiki/JavaServer_Pages


:D
be happy... and dont fight over different technologies!
although i DO agree with,
"IF YOU'RE NOT GOING TO ANSWER THE QUESTION, DONT POST A REPLY"
good day

Leon945
10-12-2006, 10:32 AM
Which things/softwares/sever software you have to have to work on JSP. and where is it available?

I use the Apache Tomcat server...

check it out at http://tomcat.apache.org/
:D
g'day

Waylander
10-12-2006, 08:37 PM
http://java.sun.com/products/jsp/jstl/
http://struts.apache.org/1.x/struts-taglib/index.html


I did answer the question. The google post was me getting annoyed.

Waylandzor.

agent_x91
10-13-2006, 06:07 AM
Thanks I'll remember to be equally helpful to you all in future