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


thisObject
07-10-2005, 02:23 AM
Hey guys,

I have never use jsp ever befor but I know Java.
I want to create a web page with certain functionality. Initialy I was thinking about using php or asp but decided to go with jsp since i know java.

My page should have the following.
User clicks a button and it creates an html page with what the user typed in a text box. When user clicks again it creates another page with a different name and so on... How can I do that? Thanks!

buntine
07-10-2005, 02:41 AM
Have you got JSP installed and configured on your server? That alone is a fair task.

How can I do that?

There are approximately 7,240 ways it can be done. Do you have anything in mind? I suppose its just a case of generating content within a generic HTML template.

I will move this to the Java forum.

Regards.

thisObject
07-10-2005, 02:57 AM
By the way do I need to have JSP on a server? Can I run it on my laptop? without a server?
Well, when the page is created it goes to a particular direcotory on a server that I specify. Also, as I said, when a user clicks on a button it creates an html page with contents that user typed in. I guess that's it :) Thnaks

buntine
07-10-2005, 03:30 AM
Did you miss my post?

The JSP pages, as the name implies, must be running on a conforming Web Server. When summoned by a client, the pages will run through the JSP engine and corresponding output will be sent to the client.

I think we should get the setup out of the way before we delve in to any complex source code.

Regards.

thisObject
07-10-2005, 03:38 AM
should I use this http://jakarta.apache.org/ to set up the server?
Also, is it the most efficient way to do what I want to do? Do I actually need jsp for it? can it be done another way? What is the best?

buntine
07-10-2005, 03:57 AM
The most efficient way is not really something I can comment on. It's fairly trivial in this case -- provided your code is somewhat efficient, the language/framework used will not effect the overall efficiency a whole lot. If you were talking about a huge Web Application it may be different.

You don't necessarily need JSP for this. Any server-side language could handle it. But if your interested in learning JSP, then why not give it a shot?

Yeah, I would recommend Apache.

Regards.