Re: newbie question: is it ok to use struts selectively?

2002-03-02 Thread Ted Husted

Performance can vary quite a bit from container to container, and then
from system to system. The best answer is to always run your own
benchmarks with your own data on your own system. 

Some people have reported performance issues with pages that have more
that 50 input fields. But I'm not aware if using scriptlets would make
any difference there or not. I've never had this problem with my own
applications, and I don't remember anyone coming back to say that
scriplets worked better than tags for 100 input-field form.

If preformance becomes an issue, or you hit the 64kb barrier, another
option might be to bypass JSPs altogether, and try a Velocity template. 

http://husted.com/struts/resources/velstruts.zip

By the time the page is rendered, it is all HTML. Struts itself has no
clue as to how the request is written, and so it is not an issue from
the framework's perspective. All other decisions are going to be up to
the team. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

[EMAIL PROTECTED] wrote:
 
 yeah i understand the part that you have to type less and its simpler, but I
 want to know how is the performance hit?
 suppose I have a huge form with lots of input type, just to put something
 simple as
 
 input type-submit name=submit value=Login and its brothers and
 sisters, is it worth using the tags? will it slow down the page loading?
 
 Regards,
 Rumpa Giri
 -Original Message-
 From: Eddie Bush [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 2:23 PM
 To: Struts Users Mailing List
 Subject: Re: newbie question: is it ok to use struts selectively?
 
 You certainly can pick and choose which pieces you want to use.  You can use
 the tag library without a thought of using the controller servlet.  However,
 which would you rather write?
 
 input type-submit name=submit value=Login
 
 or
 
 html:submit value=Login/
 
 The tag library (in many cases) isn't used because it provides functionalty
 you can't write youself, but because it makes it so much easier to write the
 same things you can write yourself.
 
 ... at least that's what I gather.  Don't let me be the final word - I'm
 just a lazy developer that likes cutting what I have to type in half =)
 
 Other opinions?
 
 Regards,
 
 Eddie
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 01, 2002 4:09 PM
 Subject: newbie question: is it ok to use struts selectively?
 
  Suppose I have a login page, with username and password and submit button.
  Is it ok to have something like the following?
  is it ok to use struts html tags only for the input type form but not for
  the others?
  if the output of the tags is same as what I have here, why should I be
  inclined to use, or is it a convention to use? or is it a personal choice?
  html:form action=/login.do name=frm1
  type=mypackage.struts.login.LoginForm focus=username
  table cellpadding=4 cellspacing=2 border=0 align=center
  tr
  td colspan=2html:errors//td
  /tr
  tr bgcolor=#ebf5fe
  td class=b width=120Username: /td
  tdinput type=text name=username
  value=%=request.getParameter(username)% size=20
 maxlength=60/td
  /tr
  tr bgcolor=#ebf5fe
  td class=b width=120Password: /td
  tdinput type=password name=pwd
  value=%=request.getParameter(pwd)% size=20 maxlength=12/td
  /tr
  tr
  tdnbsp;/td
  td align=centerinput type=submit name=submit value=Login/td
  /tr
  /table
  /html:form
  Regards,
  Rumpa Giri
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




newbie question: is it ok to use struts selectively?

2002-03-01 Thread rgiri

Suppose I have a login page, with username and password and submit button. 
Is it ok to have something like the following? 
is it ok to use struts html tags only for the input type form but not for
the others? 
if the output of the tags is same as what I have here, why should I be
inclined to use, or is it a convention to use? or is it a personal choice? 
html:form action=/login.do name=frm1
type=mypackage.struts.login.LoginForm focus=username 
table cellpadding=4 cellspacing=2 border=0 align=center
tr
td colspan=2html:errors//td
/tr
tr bgcolor=#ebf5fe
td class=b width=120Username: /td
tdinput type=text name=username
value=%=request.getParameter(username)% size=20 maxlength=60/td
/tr
tr bgcolor=#ebf5fe
td class=b width=120Password: /td
tdinput type=password name=pwd
value=%=request.getParameter(pwd)% size=20 maxlength=12/td
/tr
tr
tdnbsp;/td
td align=centerinput type=submit name=submit value=Login/td
/tr
/table
/html:form 
Regards, 
Rumpa Giri



Re: newbie question: is it ok to use struts selectively?

2002-03-01 Thread Eddie Bush

You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?

input type-submit name=submit value=Login

or

html:submit value=Login/

The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


 Suppose I have a login page, with username and password and submit button.
 Is it ok to have something like the following?
 is it ok to use struts html tags only for the input type form but not for
 the others?
 if the output of the tags is same as what I have here, why should I be
 inclined to use, or is it a convention to use? or is it a personal choice?
 html:form action=/login.do name=frm1
 type=mypackage.struts.login.LoginForm focus=username
 table cellpadding=4 cellspacing=2 border=0 align=center
 tr
 td colspan=2html:errors//td
 /tr
 tr bgcolor=#ebf5fe
 td class=b width=120Username: /td
 tdinput type=text name=username
 value=%=request.getParameter(username)% size=20
maxlength=60/td
 /tr
 tr bgcolor=#ebf5fe
 td class=b width=120Password: /td
 tdinput type=password name=pwd
 value=%=request.getParameter(pwd)% size=20 maxlength=12/td
 /tr
 tr
 tdnbsp;/td
 td align=centerinput type=submit name=submit value=Login/td
 /tr
 /table
 /html:form
 Regards,
 Rumpa Giri



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




RE: newbie question: is it ok to use struts selectively?

2002-03-01 Thread rgiri

yeah i understand the part that you have to type less and its simpler, but I
want to know how is the performance hit?
suppose I have a huge form with lots of input type, just to put something
simple as

input type-submit name=submit value=Login and its brothers and
sisters, is it worth using the tags? will it slow down the page loading?

Regards,
Rumpa Giri
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: newbie question: is it ok to use struts selectively?


You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?

input type-submit name=submit value=Login

or

html:submit value=Login/

The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


 Suppose I have a login page, with username and password and submit button.
 Is it ok to have something like the following?
 is it ok to use struts html tags only for the input type form but not for
 the others?
 if the output of the tags is same as what I have here, why should I be
 inclined to use, or is it a convention to use? or is it a personal choice?
 html:form action=/login.do name=frm1
 type=mypackage.struts.login.LoginForm focus=username
 table cellpadding=4 cellspacing=2 border=0 align=center
 tr
 td colspan=2html:errors//td
 /tr
 tr bgcolor=#ebf5fe
 td class=b width=120Username: /td
 tdinput type=text name=username
 value=%=request.getParameter(username)% size=20
maxlength=60/td
 /tr
 tr bgcolor=#ebf5fe
 td class=b width=120Password: /td
 tdinput type=password name=pwd
 value=%=request.getParameter(pwd)% size=20 maxlength=12/td
 /tr
 tr
 tdnbsp;/td
 td align=centerinput type=submit name=submit value=Login/td
 /tr
 /table
 /html:form
 Regards,
 Rumpa Giri



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



RE: newbie question: is it ok to use struts selectively?

2002-03-01 Thread Sampige, Srinivas

Also I am interested in the maintenance aspect. What if the HTML developer
sends the Web App developer a revised version of the screen with additional
input fields? 
-Srinivas

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: RE: newbie question: is it ok to use struts selectively?


yeah i understand the part that you have to type less and its simpler, but I
want to know how is the performance hit?
suppose I have a huge form with lots of input type, just to put something
simple as

input type-submit name=submit value=Login and its brothers and
sisters, is it worth using the tags? will it slow down the page loading?

Regards,
Rumpa Giri
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: newbie question: is it ok to use struts selectively?


You certainly can pick and choose which pieces you want to use.  You can use
the tag library without a thought of using the controller servlet.  However,
which would you rather write?

input type-submit name=submit value=Login

or

html:submit value=Login/

The tag library (in many cases) isn't used because it provides functionalty
you can't write youself, but because it makes it so much easier to write the
same things you can write yourself.

... at least that's what I gather.  Don't let me be the final word - I'm
just a lazy developer that likes cutting what I have to type in half =)

Other opinions?

Regards,

Eddie
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 4:09 PM
Subject: newbie question: is it ok to use struts selectively?


 Suppose I have a login page, with username and password and submit button.
 Is it ok to have something like the following?
 is it ok to use struts html tags only for the input type form but not for
 the others?
 if the output of the tags is same as what I have here, why should I be
 inclined to use, or is it a convention to use? or is it a personal choice?
 html:form action=/login.do name=frm1
 type=mypackage.struts.login.LoginForm focus=username
 table cellpadding=4 cellspacing=2 border=0 align=center
 tr
 td colspan=2html:errors//td
 /tr
 tr bgcolor=#ebf5fe
 td class=b width=120Username: /td
 tdinput type=text name=username
 value=%=request.getParameter(username)% size=20
maxlength=60/td
 /tr
 tr bgcolor=#ebf5fe
 td class=b width=120Password: /td
 tdinput type=password name=pwd
 value=%=request.getParameter(pwd)% size=20 maxlength=12/td
 /tr
 tr
 tdnbsp;/td
 td align=centerinput type=submit name=submit value=Login/td
 /tr
 /table
 /html:form
 Regards,
 Rumpa Giri



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

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