R: Struts vs .NET???

2005-07-03 Thread Simone - Dev
Pardon my intrusion,
I just came home from a job trip, and saw more than 100 messages about
struts vs .net, and I was not able to read all the messages.

I just want to tell my opinion on this topic:

I use both Struts and .NET for my job.. Well.. Stuts for my opensource
development and .NET for my real payed job.

I've always worked on MS for job, and Java for pleasure, and in the last
years, with the arrival of .NET I changed a lot my ideas about MS.

VB6 was bad, ugly programming language I've ever seen, while Java was a
nice OO programming language, every university student will be happy to
use since it's all he studied...

Now .NET and C# closed the gap: MS has a easy to use OO programming
language (VC++ was very complex to use), it has ASP.NET with are quite
similar to JSF.

For my point of view the differences between the 2 platforms are nil...
(ok, one has that, the other has something else, but generally speaking
they are the same)

The only thing that, IMHO, .NET has is Visual Studio, while Java have
Eclipse, NetBeans...

VS is the best IDE I've ever seen, and VS2005 will be even better, with
testing, code coverage, integrated webserver and design tools. And all
out of the box.

While setting up Eclipse, to debug Struts application with Apache Tomcat
is a pain...
And think about the desktop applications: no visual designer for Java
can generate a nice code for the buttons and panels of the GUI. (unless
it use it's own GUI api like jBuilder or Eclipse)

And speaking about performances...
Generally speaking, in my experience, struts/java based web applications
tend to use much more CPU and memory than .NET ones.

Hope I didn't said something already said before...

Best regards
Simone


-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Gregory Seidman [mailto:[EMAIL PROTECTED] 
 Inviato: domenica 3 luglio 2005 16.10
 A: user@struts.apache.org
 Oggetto: Re: Struts vs .NET???
 
 
 On Sat, Jul 02, 2005 at 07:56:23PM -0700, netsql wrote:
 [...]
 } And now this is realy going to piss you off: You can do 
 Apache Struts 
 } MVC in C#:
 } 
 http://svn.apache.org/viewcvs.cgi/struts/sandbox/trunk/overdri
ve/Nexus/Core/?rev=208875

See, now *that's* a cool idea. I'm afraid the straight code isn't of
much use to me without some examples of how it integrates with ASP.NET,
but if it can integrate as well as it does with JSP, that would be
excellent. Note that I haven't been claiming that struts is dead, nor
that it should be; I have only been encouraging people to take a look at
what the competition is doing better right now. From that perspective,
this can't possibly piss me off. It's actually quite exciting.

} .V
--Greg


-
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]



Re: Which release to use for production?

2005-05-03 Thread Simone-dev
I'm still using 1.1
Nicolas De Loof wrote:
1.2.4 is the current stable version
I'm using Sturts 1.2.6 for production, as known bugs does not affect my 
app.
Take a look at bug list to check if you can use it for your apps.

1.3.x is in development and not ready for production. Use it only for 
early test as a preview.

Martin Kindler a écrit :
Hi group,
I have successfully developed a prototype system using Struts 1.2.1 
and are
about to start rewriting it for production use. Therefore I would like to
use the most up-to-date stable version.
Looking thru the archives, wiki, and the download site I am a bit 
confused:
last released version is 1.2.4, 1.2.6 is labelled beta but has 
apparently
not changed for half a year (millenia in struts release periods), 
there also
seems to be work ongoing on 1.2.7.
Many members of this list seem to work with 1.3. Not talking about 2.x 
...

So I am confused. I want to start with a version which is definitely no
longer beta, but is 1.2.4 therefore the right choice?
Any remarks are welcome!
martin
---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland
eMail [EMAIL PROTECTED]
Tel.  +49 (030) 260 78 48 2
Fax   +49 (030) 260 78 48 3

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

This message contains information that may be privileged or confidential 
and is the property of the Capgemini Group. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient,  
you are not authorized to read, print, retain, copy, disseminate,  
distribute, or use this message or any part thereof. If you receive 
this  message in error, please notify the sender immediately and delete 
all  copies of this message.

-
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]


Re: content management tool

2005-04-19 Thread Simone-dev
I'm developing an open source CMS..
it's in the very alpha stage, still nothing released to the public..
www.jclubhouse.org
I'll post more info when something is released..
Simone
sudip shrestha wrote:
Just curious if there are any struts based content managment tools out there!
-
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]


Re: Editing jsp pages

2005-04-19 Thread Simone-dev
I think this is not what Joe was looking for...
you provided the solution for the question:
How can I edit an HTML text from a JSP?
I think he was looking for a JSP editor, to make JSP pages...
unfortunately I cannot help you... I use e text editor, but I'm starting 
 to use Eclipse... anyway eclipes is in text mode for editing jsp

Simone
Mark Benussi wrote:
Joe, this message pops up every once in a while.
FCK Editor is popular http://www.fckeditor.net/demo/default.html
However I wrote my own, don't groan ;), based on this because I wanted to
work with the back end integration more.
An editable div is essentially the best way to go.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 14:00
To: Struts Users Mailing List
Subject: Editing jsp pages

I wanted to know what is the best way to edit jsp pages that gives you a
GUI interface versus using a text editor.  If I should post this question
to a different group, sorry in advance.

-
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]


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


Re: Best practice for storing configuration data

2005-04-18 Thread Simone-dev
Great,
I like the idea of storing data inside the server.xml or using the admin 
tool...
using the Environment tag... if you have access to the adminstration 
of the server

unfortunately this doesn't work if you just have access to you context 
directory...
From what I read on all the thread
http://marc.theaimsgroup.com/?t=7687427r=1w=2 
http://marc.theaimsgroup.com/?t=7687427r=1w=2

the only possibile solution is saving application data in the web.xml
simone
Erik Weber wrote:
Related:
http://www.mail-archive.com/user@struts.apache.org/msg24083.html
Erik

Simone - Dev wrote:
Today I run into an dubt:
is the way I always used to store application dependent configuration 
is correct?
 
I use to store this kind of information in the we.xml file using 
context-param like this one
 
 context-param
  param-nameuploadedFilePath/param-name
  
param-valueD:/Documenti/Progetti/jClubHouse/build/uploadedFiles//param-value 

  descriptionThe path to save the uploadedFiles to/description
 /context-param
 
and then inside actions, I retrieve it using
 
String 
uploadDir=getServlet().getServletContext().getInitParameter(uploadedFilePath); 

 
 
is there a better practice or is this the right one?
 
Simone
 
-
Simone Chiaretta
www.piyosailing.com/S http://www.piyosailing.com/S
/Any sufficiently advanced technology is indistinguishable from magic/
/Life is short, play hard/

http://www.spreadfirefox.com/?q=affiliatesid=2476t=81
 

-
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]


Best practice for storing configuration data

2005-04-17 Thread Simone - Dev
Title: Messaggio



Today I run into an 
dubt:
is the way I always 
used to store application dependent configuration is 
correct?

I use to store this 
kind of information in the we.xml file using context-paramlike 
this one

context-paramparam-nameuploadedFilePath/param-name 
param-valueD:/Documenti/Progetti/jClubHouse/build/uploadedFiles//param-value 
descriptionThe path to save the uploadedFiles 
to/description /context-param

and then inside 
actions, I retrieve it using

String 
uploadDir=getServlet().getServletContext().getInitParameter("uploadedFilePath");


is there a better 
practice or is this the right one?

Simone

-Simone Chiarettawww.piyosailing.com/SAny sufficiently advanced technology 
is indistinguishable from magic
"Life is 
short, play hard"




R: How to render html embedded in a text-area?

2004-08-03 Thread Simone - Dev
Just want to point out a few things

On the fckeditor.net site there is just the new beta 2.0 version (that
already include the JSP tag lib)

For a production environment I suggest the use of the 1.6 stable version
http://sourceforge.net/project/showfiles.php?group_id=75348package_id=7
5845release_id=236998

It already include a tag lib version, too...
lib support
The one avalible on my site was a pre-release version of the JSP tag.

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Niall Pemberton [mailto:[EMAIL PROTECTED] 
 Inviato: martedì 3 agosto 2004 22.07
 A: Struts Users Mailing List
 Oggetto: Re: How to render html embedded in a text-area?
 
 
 Another one of these is also FCKeditor:
 
   http://www.fckeditor.net/
 
 
 Theres a JSP tag version here: 
 http://www.piyosailing.com/S/index.jsp?redirUrl=/S/programming
 -opensource.jsp
 
 Niall
 
 - Original Message - 
 From: Christian Bollmeyer [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, August 03, 2004 6:35 PM
 Subject: Re: How to render html embedded in a text-area?
 
 
  On Tuesday 03 August 2004 17:34, John McGrath wrote:
 
  Something possibly even cooler (as long as the client is
  IE 5.5+; otherwise, it won't show up) I recently stumbled over is
 
  http://www.interactivetools.com/products/htmlarea/
 
  which turns a textarea into a configurable WYSIWYG
  HTML editor. Easy to use and 'BSD licensed', IIRC.
 
  -- Chris.
 
   javascript'll preserve line feeds. functions below. to replace 
   newlines with br/ tags when submitting, do this:
  
   html:form action=*.do onSubmit=newlinesToHtml( this );
  
   then to convert the other way, say when editing the same content, 
   put this or something like it at the bottom of the page:
  
   script language=JavaScript
   !--
   htmlToNewlines( document.forms[0] );
   //--
   /script
  
  
  
   function htmlToNewlines( theForm ) {
 for( var i=0; itheForm.length; i++ ) {
   if( theForm.elements[i].type == textarea ) {
 theForm.elements[i-1].value = 
   theForm.elements[i-1].value.replace(/br \//g,'\n');
   }
 }
   }
  
   function newlinesToHtml( theForm ) {
 for( var i=0; itheForm.length; i++ ) {
   if( theForm.elements[i].type == textarea ) {
 theForm.elements[i-1].value = 
   theForm.elements[i-1].value.replace(/\n/g, 'br/');
   }
 }
   }
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Monday, August 02, 2004 9:24 PM
   To: Struts Users Mailing List
   Subject: Re: How to render html embedded in a text-area?
  
  
  
  
  
  
  
   Looks like I went a bit over the top with the embedded html 
   proposal.
  
   It seems the users would be content if whatever they'd 
 keyed into a 
   text-area looked the same when subsequently re-displayed 
 as text in 
   a document.
  
   ie just preserve the line-feeds, no need for bolding etc.
  
   Any ideas?
  
   If you want someone to see the visualized text as they 
 are typing, 
   you're going to need something like a rich text 
 component that  
   does that sort of thing in JavaScript.  The standard HTML  
   textarea element
   
   that Struts uses doesn't help you, even if the HTML elements are 
   literally embedded.
   
   If you are taking content and then literally embedding 
 it in your  
   page with something like bean:write, you can turn off the  
   filtering by saying filter=false in the attributes of 
 this tag.  
   Be aware, however, that in doing so *you* are taking 
 responsibility  
   for avoiding cross site scripting attacks from potentially  
   malicious users that try to embed JavaScript markup.  
 Most likely,  
   you'll need to scan the text and only allow HTML 
 elements that are  
   reasonably harmless (like b).
   
   
   Craig
   
Hi All,
   
I have a struts app that lets users input into text-areas. 
Whatever the user entered will later be displayed as text. To 
give users some control over presentation, I'd like to 
 allow them 
to enter html directly into a text-area. Struts appears to 
convert all html to harmless displayable text, so that hr 
appears quite literally as 'hr' rather than as a horizontal 
line.
   
How can I allow users to input effective html?  And is 
 there any 
way I
  
   can
  
ring-fence what they enter, so that any html errors they make 
don't
  
   bring
  
the whole page down?
  
   
 
   -
   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]
 
  
 

[OT] Soccer portal released goal.com

2004-06-17 Thread Simone - Dev
Hello All,
I know this is a lot off-topic, but I'm so proud of the portal I
designed and developed that I'd like you all know that it has just been
released a worldwide soccer portal named Goal.com (www.goal.com) and
that now it's having a lot of news and live results and live netcasting
on the european championship 2004.
 
I aplogize for the invasion also becuase it's not developed in Struts,
but with ASP.NET but as I said, it took me the last 6 month of work
to develop the engine that drives that portal (and all its netwok: all
main italian soccer teams).
 
I use Struts in my spare time but in my real work I develop with .NET
and C# (not my decision, of course)... but I prefer Struts.
 
Simone
-
Simone Chiaretta
 http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard
 


Re: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone-dev
This is not a bare commercial  mail..
I was just happy of my creature... it's not a pay site, not it has 
advertising in it.. so if u go or not I'll not earn (or better the 
costumer who bought the site) a cent.
Anyway probably other people in the list understood the real intent of 
the email, which was both a mail to say I'm happy and to discuss stuts 
vs C#/.NET

Simone
mike wrote:
I personally object to this crass commercialism injected into a wholly 
inappropriate environment.  I especially dislike people who apologize 
while doing something they know is wrong.  I would encourage members 
of this list not to look at this site because of this.  I know I won't.

Michael
At 06:11 AM 6/17/2004, Robert Taylor wrote:
Wow! Cool site. Good job. Did you do all page authoring(javascript, 
css, dhtml, graphics, etc...)
or just server side development (architecture, site design/structure, 
functionality, etc...)?
How long did it take to design and implement?

robert
 -Original Message-
 From: Simone - Dev [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 17, 2004 8:25 AM
 To: 'Struts Users Mailing List'
 Subject: [OT] Soccer portal released goal.com


 Hello All,
 I know this is a lot off-topic, but I'm so proud of the portal I
 designed and developed that I'd like you all know that it has just 
been
 released a worldwide soccer portal named Goal.com (www.goal.com) and
 that now it's having a lot of news and live results and live 
netcasting
 on the european championship 2004.

 I aplogize for the invasion also becuase it's not developed in 
Struts,
 but with ASP.NET but as I said, it took me the last 6 month of 
work
 to develop the engine that drives that portal (and all its netwok: all
 main italian soccer teams).

 I use Struts in my spare time but in my real work I develop with 
.NET
 and C# (not my decision, of course)... but I prefer Struts.

 Simone
 -
 Simone Chiaretta
  http://www.piyosailing.com/S www.piyosailing.com/S
 Any sufficiently advanced technology is indistinguishable from magic
 Life is short, play hard



-
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]


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


Re: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone-dev
I'm just a developer... :-)
I did the serverside development and the javascript + dhtml (menu)
The rest, desing, css, layout design and so on was developed by a 
webdesigner

I'm working on this engine since november
Simone
Robert Taylor wrote:
Wow! Cool site. Good job. Did you do all page authoring(javascript, css, dhtml, 
graphics, etc...)
or just server side development (architecture, site design/structure, functionality, 
etc...)?
How long did it take to design and implement?
robert
 

-Original Message-
From: Simone - Dev [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 8:25 AM
To: 'Struts Users Mailing List'
Subject: [OT] Soccer portal released goal.com
Hello All,
I know this is a lot off-topic, but I'm so proud of the portal I
designed and developed that I'd like you all know that it has just been
released a worldwide soccer portal named Goal.com (www.goal.com) and
that now it's having a lot of news and live results and live netcasting
on the european championship 2004.
I aplogize for the invasion also becuase it's not developed in Struts,
but with ASP.NET but as I said, it took me the last 6 month of work
to develop the engine that drives that portal (and all its netwok: all
main italian soccer teams).
I use Struts in my spare time but in my real work I develop with .NET
and C# (not my decision, of course)... but I prefer Struts.
Simone
-
Simone Chiaretta
http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard
   

-
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]


Re: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone-dev
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.

Re: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone-dev
U got the point I just sent my answer to your previus mail and here 
it comes your other one :-)

I use Visual Studio .NET  for C# and ASP.NET...
from the designer point of view, the wysiwyg designer generates non 
standard, non cross-browser html pages.. so I alway design the page with 
the HTML view.

In my spare time I didn't have time to learn to use an IDE, because I 
prefer improving my java and struts knowledge...
I use a simple text editor to develop java, struts and whatever else I 
do. for java

But I was planning to learn using Eclipse because when it comes to 
debugging, I use the old System.out.println method but since now  I'm 
getting used to stepping into server code and moving the mouse over a 
variable name to see a tooltip with the value, I'd like to do the same 
for Struts :-)

And speaking about webservices... with asp.net  it really takes 5 
minutes to bind to a remote webservice and use it in your own application.
U just say you want to call that service, you point the VS.NET to the 
url, it retrive the ws defintion with wsdl, it creates the proxy  and 
let you use the ws like it was a local function call  if u were not 
the developer that this the initial binding, u will never know this to 
be a ws call.

Simone
Pilgrim, Peter wrote:
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 15:09
To: 'Struts Users Mailing List'
Subject: RE: [OT] Soccer portal released goal.com
Hey,
	Cool site!! Congratulations... and one little request: 
More space for Roberto Baggio!
   

I second that emotion! What a truly fantastic player he was in 1994
and at Juventus.
Anyway moving back into Struts/J2EE orbit, did you develop
this site with Visual C# and tools? How did you find the
tools IDE? 

If you are using Struts in your spare time. Do you use Eclipse
or MyEclipse or the Struts Console? Basically my question is
who is doing it better (Java/Sun or C#/Microsoft) from the 
view point of tools (ease of development and deployment) 
for web application?

Way back in April I was quite impressed by a demonstration 
Visual .Net / Managed C++ / C# talking directly to a J2EE 1.4
web service. The guy demonstrated the whole thing in under
five minutes. So I have been wondering what is the state of the
art of tools under J2EE, but I guess I will find in two weeks 
at J1.

--
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]


Re: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone-dev
I don't like MS for the same motivation as you:  OpenSource is better...
fortuantely the MONO framework is opensource and hopefully application 
written for the MS.NET framework will run on the Mono too

I had the same problem with MS SOAP and the old apache SOAP 
Simone
Pilgrim, Peter wrote:
-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 16:03
To: Struts Users Mailing List
Subject: RE: [OT] Soccer portal released goal.com
   

Way back in April I was quite impressed by a demonstration
Visual .Net / Managed C++ / C# talking directly to a J2EE 1.4
web service. The guy demonstrated the whole thing in under
five minutes. So I have been wondering what is the state of the
art of tools under J2EE, but I guess I will find in two weeks
at J1.
 

I wish i shared that experience. My complaints about .NET all 
stem back to
one thing - it's a closed source MS product.  They are about 
as good at
fixing bugs as complying with standards!

I find open source java solutions far better - you find a bug 
you ask for a
fix, or fix it yourself.  You find the software doesnt do 
what you want, you
hack the code to do it!  With .NET this is impossible.

I have recently written web services for our software to 
interoperate with
an MS .NET system.  It was an absolute nightmare.  Bugs in MS's soap
implementation stopped it from accessing our service.  This 
was eventually
overcome, but accessing the .NET service was even more 
painful.  I cannot
use Apache AXIS (directly) to access the service because AXIS 
generates a
request with slightly different namespace declaration (but an 
equally valid
one) than MS expects:

ns1:GetData
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns1=http://tempuri.org;
The example SOAP XML which MS gives you as an example (which works):
GetData xmlns=http://tempuri.org/;
The only solution to this i found was to generate my own 
SoapEnvelope
object and use axis to send it, which makes for an ugly solution.

Generally i find the state of J2EE tools to be better than 
.NET, however
they are harder to find and sometimes get started with.  MS's 
one benefit
here is everything comes in the one box! There are some 
things i quite like
about .NET but i just dont like microsofts implementation.  
Hopefully MONO
are going to do better :)

Daniel.
   

Thnaks for that. Sounds like another open source project needs to
be written Wrapper Around Mycrosoft .Net in ernest. Your experience
is exactly my experience with Visual C++ back in 1999. Confused I'ill
alway be once you get beyond the tutorial examples!
I am a Linux phile so I would like to get into C# and stuff using MONO. 
It does look like an interesting language to learn too. 

At CSFB in Operations/IT it is all J2EE at the moment, but you just 
never know, The world could turn on its head any day.

--
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]


R: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone - Dev
Hey guys,
I'm just a developer, not the editor of the website :-)
Anyway, in a near future they will add more languages

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Guillermo Meyer [mailto:[EMAIL PROTECTED] 
 Inviato: giovedì 17 giugno 2004 22.00
 A: 'Struts Users Mailing List'
 Oggetto: RE: [OT] Soccer portal released goal.com
 
 
 Brazil? What is Brasil? I think Argentina must be in this 
 site. Simone, I think that the portal should have at least a 
 section of Diego Armando Maradona, who was, is and will be 
 the greatest soccer player of the history!
 
 Cheers!
 Guillermo
 
 -Original Message-
 From: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED] 
 Sent: Jueves, 17 de Junio de 2004 04:49 p.m.
 To: Struts Users Mailing List
 Subject: Re: [OT] Soccer portal released goal.com
 
 
 Hi Simone,
 
   Good job. Looks a very interesting soccer portal, but i 
 agree with my brazilian mate. Where is all the content 
 deserved by the 5 times world champions? A soccer website is 
 not a real soccer website without content about the best 
 soccer players in the Earth: brazilian players.
   By the way, i had some problems to navigate at your website 
 using Mozilla 1.6. You told you used M$ stuff at server side. 
 But please, don't forget that client site is diverse. I love 
 Mozilla, and use it all the time. I do wish you didn't design 
 goal.com just for IE users.
 
 Regards,
  Daniel Silva.
 
 
 --- Marcelo Epstein [EMAIL PROTECTED] wrote:
  I can´t believe,
  Goal.com don´t talk about the best soccer around the World.
  I sugest u to write about BRAZILIAN SOCCER. Maybe u will 
 find how many
 
  Ronaldo´s we have here! 8-)
  
  GOOD JOB,
  
  Marcelo
  
  - Original Message -
  From: Andrew Hill [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, June 17, 2004 11:10 AM
  Subject: RE: [OT] Soccer portal released goal.com
  
  
   +1
  
   -Original Message-
   From: McCormack, Chris [mailto:[EMAIL PROTECTED]
   Sent: Thursday, 17 June 2004 22:13
   To: Struts Users Mailing List
   Subject: RE: [OT] Soccer portal released goal.com
  
  
   I for one appreciate the post Simone. Its a good looking site and
   its nice to see work that developers have spent time on and are 
   proud of.
  
   Good job !
  
   Chris McCormack
  
   -Original Message-
   From: Simone-dev [mailto:[EMAIL PROTECTED]
   Sent: 17 June 2004 15:02
   To: Struts Users Mailing List
   Subject: Re: [OT] Soccer portal released goal.com
  
  
   I'm just a developer... :-)
   I did the serverside development and the javascript + dhtml (menu)
   The rest, desing, css, layout design and so on was developed by a 
   webdesigner
  
   I'm working on this engine since november
  
   Simone
  
   Robert Taylor wrote:
  
   Wow! Cool site. Good job. Did you do all page 
 authoring(javascript,
 
   css,
   dhtml, graphics, etc...)
   or just server side development (architecture, site
   design/structure,
   functionality, etc...)?
   How long did it take to design and implement?
   
   robert
   
   
   
   -Original Message-
   From: Simone - Dev [mailto:[EMAIL PROTECTED]
   Sent: Thursday, June 17, 2004 8:25 AM
   To: 'Struts Users Mailing List'
   Subject: [OT] Soccer portal released goal.com
   
   
   Hello All,
   I know this is a lot off-topic, but I'm so proud of the portal I
   designed and developed that I'd like you all know that 
 it has just
 
   been released a worldwide soccer portal named Goal.com
   (www.goal.com) and that now it's having a lot of news and live 
   results and live netcasting on the european championship 2004.
   
   I aplogize for the invasion also becuase it's not developed in
   Struts, but with ASP.NET but as I said, it took me 
 the last 6 
   month of work to develop the engine that drives that 
 portal (and 
   all its netwok: all main italian soccer teams).
   
   I use Struts in my spare time but in my real work I 
 develop with
 
   .NET and C# (not my decision, of course)... but I prefer Struts.
   
   Simone
   -
   Simone Chiaretta
http://www.piyosailing.com/S www.piyosailing.com/S
   Any sufficiently advanced technology is indistinguishable from
   magic Life is short, play hard
   
   
   
   
   
   
 ---
   --
   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]
  
  
   ***
   This e-mail and its attachments are confidential
   and are intended for the above named recipient
   only

R: [OT] Soccer portal released goal.com

2004-06-17 Thread Simone - Dev
We tested the site with Mozilla, too...(btw I use firefox as default
browser) But unfortunately the stats says that 95% of the internet users
use IE.
So, from a commercial point of view if Mozilla doesn't see all graphic
enrichments... The important is that the user can read the contents and
navigate the portal

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED] 
 Inviato: giovedì 17 giugno 2004 21.49
 A: Struts Users Mailing List
 Oggetto: Re: [OT] Soccer portal released goal.com
 
 
 Hi Simone,
 
   Good job. Looks a very interesting soccer portal, but i 
 agree with my brazilian mate. Where is all the content 
 deserved by the 5 times world champions? A soccer website is 
 not a real soccer website without content about the best 
 soccer players in the Earth: brazilian players.
   By the way, i had some problems to navigate at your website 
 using Mozilla 1.6. You told you used M$ stuff at server side. 
 But please, don't forget that client site is diverse. I love 
 Mozilla, and use it all the time. I do wish you didn't design 
 goal.com just for IE users.
 
 Regards,
  Daniel Silva.
 
 
 --- Marcelo Epstein [EMAIL PROTECTED] wrote:
  I can´t believe,
  Goal.com don´t talk about the best soccer around the World.
  I sugest u to write about BRAZILIAN SOCCER. Maybe u will 
 find how many 
  Ronaldo´s we have here! 8-)
  
  GOOD JOB,
  
  Marcelo
  
  - Original Message -
  From: Andrew Hill [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, June 17, 2004 11:10 AM
  Subject: RE: [OT] Soccer portal released goal.com
  
  
   +1
  
   -Original Message-
   From: McCormack, Chris [mailto:[EMAIL PROTECTED]
   Sent: Thursday, 17 June 2004 22:13
   To: Struts Users Mailing List
   Subject: RE: [OT] Soccer portal released goal.com
  
  
   I for one appreciate the post Simone. Its a good looking site and 
   its nice to see work that developers have spent time on and are 
   proud of.
  
   Good job !
  
   Chris McCormack
  
   -Original Message-
   From: Simone-dev [mailto:[EMAIL PROTECTED]
   Sent: 17 June 2004 15:02
   To: Struts Users Mailing List
   Subject: Re: [OT] Soccer portal released goal.com
  
  
   I'm just a developer... :-)
   I did the serverside development and the javascript + 
 dhtml (menu) 
   The rest, desing, css, layout design and so on was developed by a 
   webdesigner
  
   I'm working on this engine since november
  
   Simone
  
   Robert Taylor wrote:
  
   Wow! Cool site. Good job. Did you do all page 
 authoring(javascript, 
   css,
   dhtml, graphics, etc...)
   or just server side development (architecture, site 
   design/structure,
   functionality, etc...)?
   How long did it take to design and implement?
   
   robert
   
   
   
   -Original Message-
   From: Simone - Dev [mailto:[EMAIL PROTECTED]
   Sent: Thursday, June 17, 2004 8:25 AM
   To: 'Struts Users Mailing List'
   Subject: [OT] Soccer portal released goal.com
   
   
   Hello All,
   I know this is a lot off-topic, but I'm so proud of the 
 portal I 
   designed and developed that I'd like you all know that 
 it has just 
   been released a worldwide soccer portal named Goal.com 
   (www.goal.com) and that now it's having a lot of news and live 
   results and live netcasting on the european championship 2004.
   
   I aplogize for the invasion also becuase it's not 
 developed in 
   Struts, but with ASP.NET but as I said, it took me 
 the last 6 
   month of work to develop the engine that drives that 
 portal (and 
   all its netwok: all main italian soccer teams).
   
   I use Struts in my spare time but in my real work I 
 develop with 
   .NET and C# (not my decision, of course)... but I prefer Struts.
   
   Simone
   -
   Simone Chiaretta
http://www.piyosailing.com/S www.piyosailing.com/S
   Any sufficiently advanced technology is indistinguishable from 
   magic Life is short, play hard
   
   
   
   
   
   
 ---
   --
   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]
  
  
   ***
   This e-mail and its attachments are confidential
   and are intended for the above named recipient
   only. If this has come to you in error, please
   notify the sender immediately and delete this
   e-mail from your system.
   You must take no action based on this, nor must
   you copy or disclose it or any part of its contents
   to any person or organisation.
   Statements

Re: [OT] Jobs

2004-05-13 Thread Simone-dev
I'm from Italy, if I can work from home I can help u :-)

Simone

James Mitchell wrote:

I am trying to find 10 descent struts developers to fill open positions.  I
tell ya, its nice to be needed instead of how it was a year ago where we
were all under bidding each other.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: Chappell, Simon P [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 5:13 PM
Subject: RE: [OT] Jobs
James,

Is that desperate to fill a job vacancy or desperate to get one?

Simon

 

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 3:14 PM
To: Struts Users Mailing List
Subject: [OT] Jobs
Please forgive the off topic post, but I'm desperate.

If you are in or near Atlanta GA, and looking for a Struts
job.  Please send
me a direct email.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx


-
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]


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




R: Struts File-Upload performance issue

2004-05-10 Thread Simone - Dev
The waiting time as you call it is the time taken to upload the file
from the client to the server.
Actions start to execute after the whole request is sent to the
server... And the uploaded file is part of this request.

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Ralf Alt [mailto:[EMAIL PROTECTED] 
 Inviato: lunedì 10 maggio 2004 17.08
 A: [EMAIL PROTECTED]
 Oggetto: Struts File-Upload performance issue
 
 
 Hallo,
 
 I'm using the struts file upload with Struts Version 1.1.
 
 If I try to upload big files there is a performance problem. 
 For a file of 40Mb the upload needs about 20 minutes before 
 the action is executed. I need the file upload for storing 
 big files  1Gb in the database. The storing in the database 
 is very fast, but the waiting time is the time between 
 sending request and entering the Struts action.
 
 What can I do?
 
 Thanks
 Ralf
 
 
 -
 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]



[ANN] FCKEditor 1.6 released

2004-05-09 Thread Simone - Dev
Hello all,
Since previously I mentioned my being involved in the development of
this HTML editing tool I want to announce the first release of FCKEditor
with real integration with JSP. (Struts will come in a future time).

This HTML editor (DHTML editor), for Java, ASP, ASP.NET, ColdFusion, PHP
and JavaScript brings to the web many of the powerful functionalities of
known desktop editors like Word. It's really lightweight and doesn't
require installation in the client.

https://sourceforge.net/projects/fckeditor/
http://www.fredck.com/fckeditor/

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


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



R: Extending html tag: how to do it?

2004-05-08 Thread Simone - Dev
I cannot use the bean:write or the c:out because it espcapes html chars
and then I'll see bciao/a instead of a bold ciao inside the editor

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Niall Pemberton [mailto:[EMAIL PROTECTED] 
 Inviato: venerdì 7 maggio 2004 23.42
 A: Struts Users Mailing List
 Oggetto: Re: Extending html tag: how to do it?
 
 
 You could do this differently using struts tags:
 
   FCK:editor id=HTMLCode
  bean:write name=infoPageForm 
 property=HTMLCode/ 
   /FCK:editor
 
 or even better using the java standard tag library (JSTL):
 
   FCK:editor id=HTMLCode
  c:out value=${infoPageForm.HTMLCode}/ 
   /FCK:editor
 
 The only thing then is setting the hidden fields name 
 attribute to the form name/property so that its submitted 
 back properly.
 
 Niall
 
 - Original Message - 
 From: Simone-dev [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, May 07, 2004 9:57 AM
 Subject: Re: Extending html tag: how to do it?
 
 
  Yes, it's a textarea with richer editing features... but 
 the real form 
  tag used is then the hidden field.
 
  I already did the not formbean integrated tag designing it 
 on my own, 
  without referring to the struts taglib.
 
  I'll try subclassing the BaseInputTag and see what's goin 
 to happen. 
  :-)
 
  JavaServer Faces will be a future implementation, but I never used 
  this technology before, so I'd better start using it before 
 thinking 
  about extending with functionality :-)
 
  Best Regards
  Simone
 
 
  Craig McClanahan wrote:
 
   Simone - Dev wrote:
  
   Hello all,
   I'm in a team of open source developer for an HTML 
 editing control 
   to
 be
   included in web pages to enable the posting of rich 
 formatted text
 using
   a visual approach (instead of typing HTML in a textarea) The 
   project is http://www.fredck.com/fckeditor/ and u can 
 see a working 
   demo (works for the moment just on IE 5+ and windows) here 
   http://www.fredck.com/fckeditor/Demo/
  
  
   What I'm writing here becase I've just developed (and will be 
   released in the next version of the editor, hopefully 
 next weekend) 
   a taglib to include this control in a JSP page with a simple 
   FCK:editor id=bodyNews Text of the news 
 /FCK:editor instead 
   of writing all
 the
   complex javascript code required to the make the html 
 editor start.
  
   But in the next version I want to go further, and have 
 the editor 
   get it's initial value from the FormBean connected with the form 
   and then set it so that the following action can 
 retrieve it inside 
   the FormBean passed by the page.
  
   Basically the editor store the text to edit (and then to 
 be sent in 
   the post method) in an hidden field, and one of the 
 things that my 
   taglib does is also to write this hidden field with the 
 starting 
   value.
  
   But I never extended an HTML taglib, and never found on 
 the archive 
   nor other websites some info on how to do it. Thank you for ur 
   help.
  
  
  
   Simone,
  
   From a Struts perspective, what you're describing sounds pretty 
   similar to the html:textarea tag ... it's just that the editing 
   would be rich text instead of simple characters, right?  
 If so, and 
   if you wanted to be able to interoperate with Struts 
 capabilities, 
   you should download the source code for Struts [1], and 
 take a look 
   at how the corresponding tag itself is implemented 
   (org.apache.struts.taglib.html.TextareaTag).  The 
 simplest thing to 
   do would be cut-n-paste this into a separate tag file, instead of 
   worrying about extending it.  Most of the things you 
 would need to 
   change are in the renderTextareaElement() method.
  
   With regards to form bean interaction, I am assuming that 
 the form 
   bean would treat the content of the editing area as a 
 String, right? 
   If so, then BaseInputTag (which TextareaTag subclasses) 
 does most of 
   the work for you.  Just make sure your tag includes the 
 same kinds 
   of attributes as html:textarea (but especially name, 
 property, 
   and value), plus any additional ones you need, and your
   renderTextareaElement() will be able to interact with the value 
   instance variable.
  
   Craig McClanahan
  
  
   [1] http://jakarta.apache.org/site/sourceindex.cgi
  
   PS:  In addition to interoperating with Struts, you might want to 
   investigate creating a JavaServer Faces component around 
 your text 
   editor.  This sounds like a very useful gadget.  More info:
  
http://java.sun.com/j2ee/javaserverfaces/
  
  
  
  
  
  
   Simone
  
   -
   Simone Chiaretta
   http://www.piyosailing.com/S www.piyosailing.com/S
   Any sufficiently advanced technology is indistinguishable from

R: Extending html tag: how to do it?

2004-05-08 Thread Simone - Dev
OK, thank you...
True is the defualt value for filter, so I've to set it to false if I
want the raw data.

Simone

-
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard


 -Messaggio originale-
 Da: Martin Alley [mailto:[EMAIL PROTECTED] 
 Inviato: sabato 8 maggio 2004 18.06
 A: 'Struts Users Mailing List'
 Oggetto: RE: Extending html tag: how to do it?
 
 
 Bean:write has a filter parameter:
 If this attribute is set to true, the rendered property 
 value will be filtered for characters that are sensitive in 
 HTML, and any such characters will be replaced by their 
 entity equivalents. 
 
 -Original Message-
 From: Simone - Dev [mailto:[EMAIL PROTECTED] 
 Sent: 08 May 2004 09:19
 To: 'Struts Users Mailing List'
 Subject: R: Extending html tag: how to do it?
 
 I cannot use the bean:write or the c:out because it espcapes 
 html chars and then I'll see bciao/a instead of a bold 
 ciao inside the editor
 
 Simone
 
 -
 Simone Chiaretta
 www.piyosailing.com/S
 Any sufficiently advanced technology is indistinguishable 
 from magic Life is short, play hard
 
 
  -Messaggio originale-
  Da: Niall Pemberton [mailto:[EMAIL PROTECTED]
  Inviato: venerdì 7 maggio 2004 23.42
  A: Struts Users Mailing List
  Oggetto: Re: Extending html tag: how to do it?
  
  
  You could do this differently using struts tags:
  
FCK:editor id=HTMLCode
   bean:write name=infoPageForm
  property=HTMLCode/ 
/FCK:editor
  
  or even better using the java standard tag library (JSTL):
  
FCK:editor id=HTMLCode
   c:out value=${infoPageForm.HTMLCode}/ 
/FCK:editor
  
  The only thing then is setting the hidden fields name
  attribute to the form name/property so that its submitted 
  back properly.
  
  Niall
  
  - Original Message -
  From: Simone-dev [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, May 07, 2004 9:57 AM
  Subject: Re: Extending html tag: how to do it?
  
  
   Yes, it's a textarea with richer editing features... but
  the real form
   tag used is then the hidden field.
  
   I already did the not formbean integrated tag designing it
  on my own,
   without referring to the struts taglib.
  
   I'll try subclassing the BaseInputTag and see what's goin
  to happen.
   :-)
  
   JavaServer Faces will be a future implementation, but I never used
   this technology before, so I'd better start using it before 
  thinking
   about extending with functionality :-)
  
   Best Regards
   Simone
  
  
   Craig McClanahan wrote:
  
Simone - Dev wrote:
   
Hello all,
I'm in a team of open source developer for an HTML
  editing control
to
  be
included in web pages to enable the posting of rich
  formatted text
  using
a visual approach (instead of typing HTML in a textarea) The
project is http://www.fredck.com/fckeditor/ and u can 
  see a working
demo (works for the moment just on IE 5+ and windows) here
http://www.fredck.com/fckeditor/Demo/
   
   
What I'm writing here becase I've just developed (and will be
released in the next version of the editor, hopefully 
  next weekend)
a taglib to include this control in a JSP page with a simple
FCK:editor id=bodyNews Text of the news 
  /FCK:editor instead
of writing all
  the
complex javascript code required to the make the html
  editor start.
   
But in the next version I want to go further, and have
  the editor
get it's initial value from the FormBean connected 
 with the form
and then set it so that the following action can 
  retrieve it inside
the FormBean passed by the page.
   
Basically the editor store the text to edit (and then to
  be sent in
the post method) in an hidden field, and one of the
  things that my
taglib does is also to write this hidden field with the
  starting
value.
   
But I never extended an HTML taglib, and never found on
  the archive
nor other websites some info on how to do it. Thank you for ur
help.
   
   
   
Simone,
   
From a Struts perspective, what you're describing sounds pretty
similar to the html:textarea tag ... it's just that 
 the editing 
would be rich text instead of simple characters, right?  
  If so, and
if you wanted to be able to interoperate with Struts
  capabilities,
you should download the source code for Struts [1], and
  take a look
at how the corresponding tag itself is implemented
(org.apache.struts.taglib.html.TextareaTag).  The 
  simplest thing to
do would be cut-n-paste this into a separate tag file, 
 instead of
worrying about extending it.  Most of the things you 
  would need to
change are in the renderTextareaElement() method.
   
With regards to form bean interaction, I am assuming

Re: Extending html tag: how to do it?

2004-05-07 Thread Simone-dev
Yes, it's a textarea with richer editing features... but the real form 
tag used is then the hidden field.

I already did the not formbean integrated tag designing it on my own, 
without referring to the struts taglib.

I'll try subclassing the BaseInputTag and see what's goin to happen. :-)

JavaServer Faces will be a future implementation, but I never used this 
technology before, so I'd better start using it before thinking about 
extending with functionality :-)

Best Regards
Simone
Craig McClanahan wrote:

Simone - Dev wrote:

Hello all,
I'm in a team of open source developer for an HTML editing control to be
included in web pages to enable the posting of rich formatted text using
a visual approach (instead of typing HTML in a textarea)
The project is http://www.fredck.com/fckeditor/ and u can see a working
demo (works for the moment just on IE 5+ and windows) here
http://www.fredck.com/fckeditor/Demo/
What I'm writing here becase I've just developed (and will be released
in the next version of the editor, hopefully next weekend) a taglib to
include this control in a JSP page with a simple FCK:editor
id=bodyNews Text of the news /FCK:editor instead of writing all the
complex javascript code required to the make the html editor start.
But in the next version I want to go further, and have the editor get
it's initial value from the FormBean connected with the form and then
set it so that the following action can retrieve it inside the FormBean
passed by the page.
Basically the editor store the text to edit (and then to be sent in the
post method) in an hidden field, and one of the things that my taglib
does is also to write this hidden field with the starting value.
But I never extended an HTML taglib, and never found on the archive nor
other websites some info on how to do it.
Thank you for ur help.
 

Simone,

From a Struts perspective, what you're describing sounds pretty 
similar to the html:textarea tag ... it's just that the editing 
would be rich text instead of simple characters, right?  If so, and if 
you wanted to be able to interoperate with Struts capabilities, you 
should download the source code for Struts [1], and take a look at how 
the corresponding tag itself is implemented 
(org.apache.struts.taglib.html.TextareaTag).  The simplest thing to do 
would be cut-n-paste this into a separate tag file, instead of 
worrying about extending it.  Most of the things you would need to 
change are in the renderTextareaElement() method.

With regards to form bean interaction, I am assuming that the form 
bean would treat the content of the editing area as a String, right?  
If so, then BaseInputTag (which TextareaTag subclasses) does most of 
the work for you.  Just make sure your tag includes the same kinds of 
attributes as html:textarea (but especially name, property, and 
value), plus any additional ones you need, and your 
renderTextareaElement() will be able to interact with the value 
instance variable.

Craig McClanahan

[1] http://jakarta.apache.org/site/sourceindex.cgi

PS:  In addition to interoperating with Struts, you might want to 
investigate creating a JavaServer Faces component around your text 
editor.  This sounds like a very useful gadget.  More info:

 http://java.sun.com/j2ee/javaserverfaces/






Simone

-
Simone Chiaretta
http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard
 



-
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]


Extending html tag: how to do it?

2004-05-06 Thread Simone - Dev
Hello all,
I'm in a team of open source developer for an HTML editing control to be
included in web pages to enable the posting of rich formatted text using
a visual approach (instead of typing HTML in a textarea)
The project is http://www.fredck.com/fckeditor/ and u can see a working
demo (works for the moment just on IE 5+ and windows) here
http://www.fredck.com/fckeditor/Demo/
 
 
What I'm writing here becase I've just developed (and will be released
in the next version of the editor, hopefully next weekend) a taglib to
include this control in a JSP page with a simple FCK:editor
id=bodyNews Text of the news /FCK:editor instead of writing all the
complex javascript code required to the make the html editor start.
 
But in the next version I want to go further, and have the editor get
it's initial value from the FormBean connected with the form and then
set it so that the following action can retrieve it inside the FormBean
passed by the page.
 
Basically the editor store the text to edit (and then to be sent in the
post method) in an hidden field, and one of the things that my taglib
does is also to write this hidden field with the starting value.
 
But I never extended an HTML taglib, and never found on the archive nor
other websites some info on how to do it.
Thank you for ur help.
 
Simone
 
-
Simone Chiaretta
 http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard