Forum Moderators: mack
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
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++.
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.
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.
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.
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>