Link to home
Start Free TrialLog in
Avatar of dfu23
dfu23

asked on

Advice on good JSP practices to adopt

Experts,

I am about to take over the design and development of a JSP project that, as of right now, I don't have many details on. That's the bad part ... the good part is that I should have rather good flexibility on changing or possibly even re-writing the entire project. Before I do that though ... I think that it would be best for me to ask some Java folks for their recommendataions on best practices and any lessons learned.

For a quick background on my web dev history I am primarily ASP and ASP.NET but I have done a bit of Java and JSP so I am not completely foreign to the environment. Please toss in my direction any decent frameworks or other good resources that I should look into adopting into my development efforts.

A huge thank you in advance to all those that have feedback,

Wally Atkins
SOLUTION
Avatar of runa_paathak
runa_paathak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dfu23
dfu23

ASKER

Ok,

I am familiar with the CSLA framework by Rockford Lhotka (http://www.lhotka.net/) which is a layered framework for .NET and it appears that some of the principles would be similar across the board. Can anyone give me a quick run down on pros and cons with some of these frameworks (or links to such things):

 - Struts
 - Tapestry

Also, any input about using these frameworks inside of an IDE like Eclipse or another free type of development program would be beneficial.

bpmurray, I completely agree about the use of W3C recommendations and will utilize as much as allowed by my contstraints and as it logically makes sense. However, you mentioned WSRP 2.0 which is an acronym that I am unfamiliar with ... could you elaborate?

Thanks,

Wally
>>"Can anyone give me a quick run down on pros and cons with some of these frameworks "
I can't say much on here as I have no experienced on Tapestry but as far as I know, Tapestry is the newer technology compared to Struts. It may or may not replace Struts in the future. Additionally, there are many other frameworks that gain popularity such as Spring and etc. So it would be hard to predict. One thing that I know is that Struts has been spread widely and used anywhere and this is the point where it is hard to be replaced - popularity.

>>"any input about using these frameworks inside of an IDE like Eclipse"
Yes, I believe that Eclipse has so many open-source plugin for Struts. You can go ahead to google it. But for me, I normally do it manually in Eclipse :).

David
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dfu23

ASKER

Any good/recommended links on JSTL?
Well, JSTL came from Apache (search jakarta.apache.org) and has been included in the latest versions of J2EE. Here's the stuff from the horses mouth: http://java.sun.com/products/jsp/jstl/ - some of this is difficult to chew through, so I'd try one of the tutorials - here's one from one of my favourite tech sites: http://www-128.ibm.com/developerworks/java/library/j-jstl0211.html

Otherwise, just google for JSTL or visit your local bookshop.

Avatar of dfu23

ASKER

Just curios,

Is there anything in Java/JSP that has something towards the equivalent of ASP.NET web controls? Like:

<asp:label>
<asp:button>
<asp:dropdownlist>
Yes - JSF is a little like the J2EE ASP.net. Also search around for Facelets.
Avatar of dfu23

ASKER

Ah ... another thought ...

Can anybody tell me about Bouncey Castle?
It's  a fun way to dislocate your kid's elbow?
Avatar of dfu23

ASKER

Ok ... that's cool,

One last thing ... can anybody tell me anything about Hibernate? Is that a framework? What does it give you?
Hibernate is a pretty good way of providing a mechanism to encapsulate data access in Plain Old Java Objects (POJOs). It's often used in conjunction with Spring and/or iBatis.

There's a whole load of these things that work very well indeed together. There's a very good book called "POJOs in Action" by Chris Richardson that explains these very well, with good examples.
Avatar of dfu23

ASKER

Thanks to all for their inputs ...