homepage Welcome to WebmasterWorld Guest from 184.73.40.21
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Is anyone using JSP
I'm very impressed with a site that uses it
chris_f

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 243 posted 11:18 am on Jan 6, 2003 (gmt 0)

Hi All,

I just recently went to a tour operators site that uses JSP [java.sun.com]. I was very impressed with the technology. For instance, a form was on the page with 3 drop down menus. As you altered the first menu the second and third changed to say 'loading' then the list was updated. All WITHOUT a page refresh.

Is anyone using JSP? If you are, how easy is it to learn (I have ASP and ASP.net knowledge) and would you recommend using it?

Chris

 

bcc1234

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 243 posted 11:53 am on Jan 6, 2003 (gmt 0)

That's not because of jsp. It's either javascript or flash or java applet.
JSP is a server-side technology and cannot alter contents of a page once it's been returned to the client.

Aside from that - it rocks big time.

If you want to be good at it - learn java core, then java servlets, then jsp.

chris_f

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 243 posted 11:55 am on Jan 6, 2003 (gmt 0)

I just triggered onto that. Thanks for the response. I have just had a quick over my ASP.net material and it can you JavaScript to do the same thing. However, it also cleverly detects if someone is not using JavaScript and if they are not, it will reload the page instead.

Chris.

hakre

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 243 posted 4:22 am on Jan 8, 2003 (gmt 0)

hi chris, as mentioned above you have to differ clearly between server side and client side scripting.

if your browser knows no javascript, then the server side script can't reload the page. you have to press at least one button or image to request an updated version of that page which could be generated by the server then.

all these things can you do with a server scripting of your wish: jsp,php,asp whatever. i thing php might be one of the best with jsp you can create complete applications but you can do too with c++.

txbakers

WebmasterWorld Senior Member txbakers us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 243 posted 4:25 am on Jan 8, 2003 (gmt 0)

I've used JSP and ASP, and I prefer ASP. My background was in visual basic, so I was confortable writing in that language.

I never learned Java, so JSP was a chore. I found it to be way more complicated than I understood.

With ASP.NET, you can practically do anything that anyone in Java can do. And still use VB, C++, Javascript, or any language that you know.

BlobFisk

WebmasterWorld Senior Member blobfisk us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 243 posted 10:28 am on Jan 8, 2003 (gmt 0)

We do a a mic of both JSP and ASP work here for varying clients. I do very little JSP and concentrate on ASP, even though I studies Java in college many moons ago.

For me it's just a matter of personal preference - but I've been looking at .NET of late and (to echo txbakers) it's probably far more powerful than JSP.

bcc1234

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 243 posted 11:21 am on Jan 8, 2003 (gmt 0)

I've used JSP and ASP, and I prefer ASP. My background was in visual basic, so I was confortable writing in that language.

I never learned Java, so JSP was a chore. I found it to be way more complicated than I understood.

True, without knowing (and I mean really knowing) java - JSP is useless. One might use SSI with perl instead.

With ASP.NET, you can practically do anything that anyone in Java can do. And still use VB, C++, Javascript, or any language that you know.

For me it's just a matter of personal preference - but I've been looking at .NET of late and (to echo txbakers) it's probably far more powerful than JSP.

Not practically, but everything at all. Talks about more "powerful" technology are from the "qbasic vs turbo basic" level of comprehension :)

But! .NET is great on the paper and not so great in reality. The biggest problem is that some features of the framework just do not work as they are described. So you reallly can't trust what you read in the tutorials without really testing the limits yourself. Really!
Java, of course has it's own problems. The specs are great, but I haven't seen two app servers that would behave in an identical way on different vm's running on top of different platforms.
So you basically end up with code hacks like:

public int doEndTag() throws JspTagException{
....
// Uncomment for resin above 2.12 running on linux-jdk freebsd port.
//Leave commented for tomcat 4.1x on ibm jdk running on top of linux.
// myTagField=null;
...
}

So as far as ASP.NET vs J2EE on SERVER SIDE(!) they are the same. Sometimes .NET perofrms better than java, but hey - how many of you tried running sun's jdk on solaris or ibm's jdk on aix and not on windows/linux/bsd?
If you haven't - then you can't really compare the performance of a solution from one vendor (MS) against a bunch of components from competing companies.

At the end - .NET or Java are both flexible and stable enough to get the job done.
They are both way above perl/php/python or any other scripting solution. This is not a question of "power" but of the amount of tools at the developer's disposal (think persistent state, object caching, built-in transaction support, remote invocations - well, things that simply don't exist in the perl/php world).

At last, I could show you some code with 100% separation of view and controller but with flexibility that could match direct coding in the template pages (which is a bad idea any way you look at it). That would make you dump perl or php in a second if your development and maintenance teams are more than one person.

I still use python in cgi when I need something fast and simple and think it's a great language that allows decent speed, complex data structures without headaches and the ease of scripting.

<edit>sp</edit>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved