Thank you for your congratulations...
Search and advanced search will come in a future release... as will arrive other 10 different language edition


Now, the real point of my email:
Differences between C#/.NET and Struts/JSP

*First let's speak about C# and Java:*
Before the arrive of C# I hated my job... we programmed in VB, and VB really sucks... so I spent my night develpin with java...
When C# arrived, well... I started loving it again...
C# is just the same as Java... I cannot tell you the pros and cons of both languages... becuase they are almost the same...
they do the same thing, with more or less the same syntax


C# is a bit more easy when it comes to define getter and setter and with constructor for derived classes
In java getter/setter are just a method with the getXXX and setXXX name... but then you have to call it like methods
C# defines properties in a different way:
for example
public String name {
get {
return _name;
}
set {
_name=value;
}
}
and in the user code u just as if u are using a field:
obj.name="mike";


Then another thing is the foreach statement (but if I'm not wrong java 1.5 has this statement, too...)

*ASP.NET and Struts*

One real big advantage in the asp.net framework is that you can manipulate server side controls (I mean html elements that are declared as "runat=server") directly from the code while with Struts you have to set a page attribute and then get it in jsp (unless u are using a formBean)

Another great feature is the asp:repeater which automatically "binds" to any IEnumerable object and reapeat it on a page (ok, there is with jstl too..., but with the repeater you have an event that is triggered each time a new row (or better, before each row) is written on the page, so u can process it after binding instead of doing it before.

An advantage of ASP.NET is that u don't have to define actionmappings but there is one-to-one mapping between aspx and cs... but this way u cannot define the same action for different pages...

I think that the most of the pros of Struts comes from its companion packages:
Validator and TilesFramework


In ASP.NET there is a validator too... , but the one supplied with Struts is more powerfull, let you define validation also for query string, and works with all browser (while the asp.net one works on the client just for IE, while with Mozilla it does a roundtrip to the server)

A completely missing thin with ASP.NET is something similar to TilesFramework...
In my portal all the pages except the homepage have the same layout (header, pagebody, right column, footer)


In ASP.NET there is an equivalent to single tiles: webuser controls, that contain all processing and layout for a particular type of contents, like the news list, or the thumbnail list
But if I've 20 pages with the same layout I've to build 20 different pages, identical with just the page content that is different.


The engine is used to create at almost no develper cost completely diffrent sites with different layouts... but if I've to change the layout I've change all pages, while with Tiles I'd have changed just the layout page, and everthing would have gone in the right place.

For the rest are almost similar... I think the big usabilty and easyness of develpment differences comes with the IDE used to develop...

Simone

 Pilgrim, Peter wrote:

Hi Simone

Congratulations on the portal. I really do like the look and feel
of the pages. In terms of the web design it has a consistent.
You know where you are. You instantly know what you can click on.
The colours are consistent. The menus work.

The only sore point is the search facility. Every web site including
a portal needs a search and advanced search.

`Now To My Real Point'

Having using C# and .Net and also used Struts, obviously you
must be a good Server side Java developer, could you relate
to the list what are pros and cons (advangtages and disadvantages)
between C# / ASP and Java / J2EE / ASP? Could you also highlight
any architectural differences or pitfalls in both?

From yours web site portal, I pressume your ASP.Net skills are good.
You are in a unique position, because you have real experience
of using both technologies and can see the `No Man's Land' from
both sides of the divide.

TIA

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447


==============================================================================
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to