Passing request from Action to another action

2003-07-18 Thread rajendra . x . yadav
Hi,
In perform() of Action1, I put a Object in setAttribute and  submit to a
xxx.do which forward my page to 2nd jsp. In the perform() of Action2 (this
gets called when i submit xxx.do), I try to get the atribute... but it's
giving me null.
What could be wrong ?
Is request the best way to pass objects between Servlets or session ?

thanks
-raj




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



What Is The Proper Location To Place Inputs For Creating A Drop-Down Menu

2003-07-18 Thread Caroline Jen
I want to put the label and value pairs of the 51
states of the U.S. in a file, read in the file into an
ArrayList, and then create a drop-down menu in a .jsp
file.

Question 1.  Where is the proper place to put those
label and value pairs?  Create a table in the
database? or put those pairs in a properties file? 
Which directory does this properties file go?

Question 2.  Do I read those pairs into an ArrayList
in the controller servlet?   

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Passing request from Action to another action

2003-07-18 Thread Navjot Singh
If you are *disptaching* the request to another url. you can use REQUEST
object to pass java objects
BUT
if you are redirecting the request to another url, SESSION is the way to go.

Reason - HTTP cannot maintain the state b/w 2 requests.

HTH
-navjot

|-Original Message-
|From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
|Sent: Friday, July 18, 2003 11:42 AM
|To: [EMAIL PROTECTED]
|Subject: Passing request from Action to another action
|
|
|Hi,
|In perform() of Action1, I put a Object in setAttribute and  submit to a
|xxx.do which forward my page to 2nd jsp. In the perform() of Action2 (this
|gets called when i submit xxx.do), I try to get the atribute... but it's
|giving me null.
|What could be wrong ?
|Is request the best way to pass objects between Servlets or session ?
|
|thanks
|-raj
|
|
|
|
|-
|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]



template theme idea

2003-07-18 Thread Dan Allen
I have an idea which I think would help to make struts more flexible
when it comes to skinning an application.  I might get shot down
for this, but it makes a lot of sense to be, so here goes.

Currently in struts, the paths in the configuration file (and
taglibs) can follow a forwardPattern and pagePattern which in
turn can currently use two variables, $M for the module directory
and $P for the path value.  I propose to add a third variable named
$T which would be replaced with the theme name.  The theme can be
specified as an init parameter for the servlet in web.xml and
possibly overridden by a BaseAction if a certain cookie is read in.
It looks as though the best place for the getter/setter would be in
the ActionServlet since it needs to be available to all Actions that
are created.  Better I guess would be to place it in a
THEME_NAME_KEY in the servletContext and then use put the get/set
method in the Action.

Before I make a patch I need to know where one would place this
information in order to modify.  The other issue I forsee is that
using WEB-INF for the jsp pages no longer becomes a viable option
since the path element would be 

/WEB-INF/jsp/example.jsp

doing

$M$T$P

would leave behind (in the default module configuration)

/default/WEB-INF/jsp/example.jsp

...so container security can be used instead.

The only issue I see with this in the taglibs is if you wanted to
include a common file to all themes.  Is there already a way to
change the pattern for creating the path in the taglibs...or is the
pattern sticky once it is set?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
When you're raised by the Jesuits, you become either obedient 
or impertinent 
 -- Jack McCoy, Law and Order
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re[2]: Can a form bean be repopulated w/same data if 'validate()' fa ils?

2003-07-18 Thread Martin Naskovski
Thursday, July 17, 2003, 8:02:12 PM, you wrote:

WS Martin wrote:
 I am curious, I cannot get the form to reappear with the data that I am
 validating. 

WS I have my forms in session scope and don't have this problem.  What scope
WS are your forms in?


Hi Wendy - I was initially placing them in the request scope. Then I
realized they had to be in the session if the contents are going to be
preserved between subsequent requests. Then after that ,I realized
that I was overwriting the session form bean each time I call
Load*Action  Then I stopped doing that, and everything started
working like a charm.  Between before and after, maybe like 10 minutes
expired - thus my feeling like a dimwit - I just wasnt paying any
attention to what I was doing :).

Tnx.  You seem to read this list a lot :).

Martin

-- 


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



Re: Passing request from Action to another action

2003-07-18 Thread Martin Naskovski
There's 2 common ways to pass data between subsequent HTTP requests - through the
request scope and the session scope. If you use the request scope,
then make sure none of your global/local forwards in your
struts-config.xml are set to redirect=true.  On the other hand, if
you dont mind poluting your session scope, then you can use the
session to pass off whatever you like between requests.

The issue w/using session scope is that you have to worry about
cleaning it up. And that implies some sort of workflow.  IMHO, about
the only thing STruts 1.1 is missing is some nice workflow mechanism.
Maybe they could take the one from Struts Workflow Extension and adapt
it :). I think it was some german group that developed it.

Martin

Thursday, July 17, 2003, 11:12:07 PM, you wrote:

rxyvc Hi,
rxyvc In perform() of Action1, I put a Object in setAttribute and  submit to a
rxyvc xxx.do which forward my page to 2nd jsp. In the perform() of Action2 (this
rxyvc gets called when i submit xxx.do), I try to get the atribute... but it's
rxyvc giving me null.
rxyvc What could be wrong ?
rxyvc Is request the best way to pass objects between Servlets or session ?

rxyvc thanks
rxyvc -raj




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



-- 


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



Re: What Is The Proper Location To Place Inputs For Creating A Drop-Down Menu

2003-07-18 Thread Martin Naskovski
Thursday, July 17, 2003, 11:30:03 PM, you wrote:

CJ I want to put the label and value pairs of the 51
CJ states of the U.S. in a file, read in the file into an
CJ ArrayList, and then create a drop-down menu in a .jsp
CJ file.

The United States has 50 states. :)

CJ Question 1.  Where is the proper place to put those
CJ label and value pairs?  Create a table in the
CJ database? or put those pairs in a properties file? 
CJ Which directory does this properties file go?

You can put them anywhere. The way I store the U.S. states is in a
static String[], which I then convert to an ArrayList of
LabelValueBeans. These are all defined in a Constants.java file.
Unless we annex Canada or Mexico, this will remain pretty
constant :), so I felt ok to hardcode it in a file, versus putting it
in a flat file or a db table.

CJ Question 2.  Do I read those pairs into an ArrayList
CJ in the controller servlet?

No. You put the arraylist of LVB's on some scope (request or session),
and inside your JSP you iterate over it by using the struts-logic
tags, or even better, the JSTL tags, as they are even more expressive
than some of the struts-logic tags.

HTH,

Martin


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



Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread Ajay Patil
Hi,

Is it possible to retrieve the Action mapping object in the Filter
class ? 

To describe further, I am writing the filter (as per Servlet 2.3) to
authenticate the Strut actions and was wondering if I could get
the roles for the action triggered. I think Struts 1.1 allows for
roles to be stored in the ActionMapping.

Thanks in advance,
Ajay


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



Problem in Multiple Application

2003-07-18 Thread Naoki Wada
Hi.
(B
(BI making Multiple Application.
(BBut. I have problem.
(B
(B"html:link forward="forward2"forward2/html:link"
(B cannot be used in subapplication.
(B
(B"forward1" can be usually used.
(Bhtml:link forward="forward1"forward1/html:link
(B
(Bbut. how to use of "forward2"?
(B
(Bhelp me.
(BI'm sorry by poor English. 
(B
(BNaoki Wada
(B
(B web.xml 
(B
(B  servlet
(Bservlet-nameaction/servlet-name
(Bservlet-classorg.apache.struts.action.ActionServlet/servlet-class
(Binit-param
(B  param-nameconfig/param-name
(B  param-value/WEB-INF/struts-config.xml/param-value
(B/init-param
(Binit-param
(B  param-nameconfig/sample/param-name
(B  param-value/WEB-INF/struts-sample-config.xml/param-value
(B/init-param
(Binit-param
(B  param-namedebug/param-name
(B  param-value2/param-value
(B/init-param
(Binit-param
(B  param-namedetail/param-name
(B  param-value2/param-value
(B/init-param
(Bload-on-startup2/load-on-startup
(B  /servlet
(B  
(B  
(B struts-config.xml 
(Bglobal-forwards
(B   forward name="forward1" path="/forward1.jsp"/
(B/global-forwards
(B
(B
(B struts-sample-config.xml 
(Bglobal-forwards
(B   forward name="forward2" path="/forward2.jsp"/
(B/global-forwards
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread Navjot Singh
correct me if i am wrong

The filter servlet is hit before the request reaches the main servlet -
ActionServlet in struts case. As the request has not even reached
ActionServlet, ActionMapping object has not been initialized as of now.

so, you CANNOT have Mapping object in filter

navjot

|-Original Message-
|From: Ajay Patil [mailto:[EMAIL PROTECTED]
|Sent: Friday, July 18, 2003 1:20 PM
|To: [EMAIL PROTECTED]
|Subject: Is it possible to get the ActionMapping object in a filter ?
|
|
|Hi,
|
|Is it possible to retrieve the Action mapping object in the Filter
|class ?
|
|To describe further, I am writing the filter (as per Servlet 2.3) to
|authenticate the Strut actions and was wondering if I could get
|the roles for the action triggered. I think Struts 1.1 allows for
|roles to be stored in the ActionMapping.
|
|Thanks in advance,
|Ajay
|
|
|-
|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: Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread Andrew Hill
ActionMappings are initialised at startup surely and available from the
servlet context?

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, 18 July 2003 15:47
To: Struts Users Mailing List
Subject: RE: Is it possible to get the ActionMapping object in a filter
?


correct me if i am wrong

The filter servlet is hit before the request reaches the main servlet -
ActionServlet in struts case. As the request has not even reached
ActionServlet, ActionMapping object has not been initialized as of now.

so, you CANNOT have Mapping object in filter

navjot

|-Original Message-
|From: Ajay Patil [mailto:[EMAIL PROTECTED]
|Sent: Friday, July 18, 2003 1:20 PM
|To: [EMAIL PROTECTED]
|Subject: Is it possible to get the ActionMapping object in a filter ?
|
|
|Hi,
|
|Is it possible to retrieve the Action mapping object in the Filter
|class ?
|
|To describe further, I am writing the filter (as per Servlet 2.3) to
|authenticate the Strut actions and was wondering if I could get
|the roles for the action triggered. I think Struts 1.1 allows for
|roles to be stored in the ActionMapping.
|
|Thanks in advance,
|Ajay
|
|
|-
|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: File Upload size restriction ??

2003-07-18 Thread Nicolas De Loof
I submited a bug on bugzilla for this. I discovered that I get this strange freeze 
when generated HTML is *long*. As I
use the validator, I restricted the generated javascript to the 3 functions we use on 
the webapp and it works. If I add
some hundred of basic HTML at JSP end, if freeze.

You should try to limit generated HTML size, until someone founds the problem (no idea 
for myself, neither reading the
code nor using a debugger).

Nico.



 I'm experiencing the EXACT same problem (Win2000, Struts
 1.1 RC 1, Weblogic 7, Sun JDK 1.3.1_07).

 I've noticed that if my input forward is a simple JSP, it
 works fine.  Also, it works fine if the input forward is a
 tile definition which simply specifies a JSP, like this:

 definition name=tile.struts.upload.upload
 path=/upload.jsp/

 However, it hangs if I try to get fancy and use some
 inheritance in my definitions, like this:

definition name=tile.struts.upload.upload
 extends=tile.main
put name=window.title.key
 value=key.title.window.home/
put name=body.tile
 value=tile.struts.upload.upload.body/
/definition
definition name=tile.struts.upload.upload.body
 extends=tile.main.body.internalTitle
put name=title.key/
put name=content.tile value=/upload.jsp/
/definition

 It does eventually come back with the error message, but
 only after 5 - 10 minutes (and I see the second request
 just like Nico mentioned).  If I switch to JRockit 1.3.1,
 it hangs forever (well, at least as long as lunch :-)

 Nicolas, have you or anyone else discovered a
 solution/workaround?  Thanks!

 best,

 garthabrindoid

 Nicolas De Loof wrote:
  That's what I was trying to do and discovered that upload
  behaviour changes when going over Struts configured
  file-size limit (4Mo in my case).
 
  With a 3Mo file it works fine. With a 4,4Mo file I get
  errors on logs but upload goes on in the browser, and
  after a  long while (3 minutes) I get others validate()
  logs (related with no-file errors) and the errors are
  displayed on browser.
 
  I don't understand why I get TWO TIMES validate() logs !!
 
  If i set the size-limit to 6M, 4,4Mo upload works well
  in less than a seconds, but a  10Mo upload takes more
 than
  5 minutes. I get file-size error logs in the first
 request
  seconds, browser stays for a  (long) while and I get
  second validation error logs.
 
  Using IP or machine name doesn't change anything.
 
  Nico.


 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

 -
 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: Workflow Extension: Hurting struts functionality?

2003-07-18 Thread Matthias Bauer
I think the answer from Joe already addressed your question very good.

The general problem about extending Struts is the need to subclass the 
RequestProcessor.  Thus, two Struts extensions normally cannot be used 
together without the one knowing about the other. Consider extension A 
and extension B. In order to use both of them, the RequestProcessor of 
extension B has to subclass and extend the RequestProcessor from 
extension A (or the other way round).

Therefore,  if you want to use some more extensions than the Struts 
Workflow Extension, you need to do some coding in order to mash them 
together. However, as Tiles is a very popular Struts Extension that is 
even made part of the Struts Distribution (but sadly still is an 
extension), I decided to introduce Tiles support in version  1.0.2  of 
the Struts Workflow Extension.

--- Matthias

C F wrote:

Hello,
For anyone here who's had experience using the Struts
Workflow extension
(http://www.livinglogic.de/Struts/index.html). can
you tell me what struts functionality you're missing
out on if you use this extension.  My first impression
was that it was just an extension and wouldn't affect
struts too much.  However, I notice that they just
added Tiles Support in version 1.02.  This indicates
to me that they must explicitly support certain kinds
of Struts features which then raises concerns that
it may not support all Struts functionality or that it
could introduce new bug or support issues.
Any info much appreciated.  Thanks!
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
You could look at this :

http://c-jdbc.objectweb.org/

this intermediate JDBC driver allow you to cluster databases. Notice I never used it, 
use it at your own risk ;-)

Nico.


 Hi,

 I am sure that someone here must have worked on a
 large website with heavy load using struts and I
 wonder if you'll be kindly enough to give me some
 suggestions in this occasion.

 I am using tomcat+jboss as application server.I have
 setup several tomcat_jboss instances in a cluster
 environment and of course I use struts in my
 application.HttpSession created in one instance will
 get replicated across all members in the cluster.It's
 just what I want.The problem is how should I connect
 the app servers with the backend db server(s)? If I
 use only one db instance,all app server can connect to
 it without any problem,but here lies the bottleneck.I
 want to use several db instances(preferrably
 mysql).How can I do that?

 Thanks in advance!

 Guo Yingshou

 _
 Do You Yahoo!?
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

 -
 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: question on heavy load website design using struts

2003-07-18 Thread guo yingshou
Nico,

Great! That is exactly what I'm looking for.Maybe I'll
have some hard time to setup a testing environment and
write some code to see what will happen.

Thanks a lot!

Guo Yingshou

 --- Nicolas De Loof [EMAIL PROTECTED]
 You could look at this :
 
 http://c-jdbc.objectweb.org/
 
 this intermediate JDBC driver allow you to cluster
 databases. Notice I never used it, use it at your
 own risk ;-)
 
 Nico.
 
 
  Hi,
 
  I am sure that someone here must have worked on a
  large website with heavy load using struts and I
  wonder if you'll be kindly enough to give me some
  suggestions in this occasion.
 
  I am using tomcat+jboss as application server.I
 have
  setup several tomcat_jboss instances in a cluster
  environment and of course I use struts in my
  application.HttpSession created in one instance
 will
  get replicated across all members in the
 cluster.It's
  just what I want.The problem is how should I
 connect
  the app servers with the backend db server(s)? If
 I
  use only one db instance,all app server can
 connect to
  it without any problem,but here lies the
 bottleneck.I
  want to use several db instances(preferrably
  mysql).How can I do that?
 
  Thanks in advance!
 
  Guo Yingshou
 
 

_
  Do You Yahoo!?
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
 
 

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

_
Do You Yahoo!? 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

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



Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
Please could you send me feedback if you experiment this jdbc-cluster-driver ?

Nico



 Nico,

 Great! That is exactly what I'm looking for.Maybe I'll
 have some hard time to setup a testing environment and
 write some code to see what will happen.

 Thanks a lot!

 Guo Yingshou

  --- Nicolas De Loof [EMAIL PROTECTED]
  You could look at this :
 
  http://c-jdbc.objectweb.org/
 
  this intermediate JDBC driver allow you to cluster
  databases. Notice I never used it, use it at your
  own risk ;-)
 
  Nico.
 
 
   Hi,
  
   I am sure that someone here must have worked on a
   large website with heavy load using struts and I
   wonder if you'll be kindly enough to give me some
   suggestions in this occasion.
  
   I am using tomcat+jboss as application server.I
  have
   setup several tomcat_jboss instances in a cluster
   environment and of course I use struts in my
   application.HttpSession created in one instance
  will
   get replicated across all members in the
  cluster.It's
   just what I want.The problem is how should I
  connect
   the app servers with the backend db server(s)? If
  I
   use only one db instance,all app server can
  connect to
   it without any problem,but here lies the
  bottleneck.I
   want to use several db instances(preferrably
   mysql).How can I do that?
  
   Thanks in advance!
  
   Guo Yingshou
  
  
 
 _
   Do You Yahoo!?
   
  
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
  
  
 
 -
   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]
 

 _
 Do You Yahoo!?
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

 -
 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: question on heavy load website design using struts

2003-07-18 Thread guo yingshou
Sure! Only a little bit patience,please.It may take me
one or two weeks to go over the test.I used to meet a
problem on container managed security using jboss
cluster.That is,jboss'clusterring feature works fine
except when I use declarative security model to
protect my page,the authenticated principal will not
get replicated across the members in the cluster.At
this time,I want to find a work around to that too.

Again,thaks for your info.

Guo Yingshou
 --- Nicolas De Loof [EMAIL PROTECTED]
 Please could you send me feedback if you
experiment
 this jdbc-cluster-driver ?
 
 Nico
 
 
 
  Nico,
 
  Great! That is exactly what I'm looking for.Maybe
 I'll
  have some hard time to setup a testing environment
 and
  write some code to see what will happen.
 
  Thanks a lot!
 
  Guo Yingshou
 
   --- Nicolas De Loof [EMAIL PROTECTED]
   You could look at this :
  
   http://c-jdbc.objectweb.org/
  
   this intermediate JDBC driver allow you to
 cluster
   databases. Notice I never used it, use it at
 your
   own risk ;-)
  
   Nico.
  
  
Hi,
   
I am sure that someone here must have worked
 on a
large website with heavy load using struts and
 I
wonder if you'll be kindly enough to give me
 some
suggestions in this occasion.
   
I am using tomcat+jboss as application
 server.I
   have
setup several tomcat_jboss instances in a
 cluster
environment and of course I use struts in my
application.HttpSession created in one
 instance
   will
get replicated across all members in the
   cluster.It's
just what I want.The problem is how should I
   connect
the app servers with the backend db server(s)?
 If
   I
use only one db instance,all app server can
   connect to
it without any problem,but here lies the
   bottleneck.I
want to use several db instances(preferrably
mysql).How can I do that?
   
Thanks in advance!
   
Guo Yingshou
   
   
  
 

_
Do You Yahoo!?

   
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
   
   
  
 

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

_
  Do You Yahoo!?
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
 
 

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

_
Do You Yahoo!? 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

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



Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
No problem, I'll be patient. I just want my boss to stop saying Oracle replication 
each time we get load-ballancing
needs.

Nico.



 Sure! Only a little bit patience,please.It may take me
 one or two weeks to go over the test.I used to meet a
 problem on container managed security using jboss
 cluster.That is,jboss'clusterring feature works fine
 except when I use declarative security model to
 protect my page,the authenticated principal will not
 get replicated across the members in the cluster.At
 this time,I want to find a work around to that too.

 Again,thaks for your info.

 Guo Yingshou
  --- Nicolas De Loof [EMAIL PROTECTED]
  Please could you send me feedback if you
 experiment
  this jdbc-cluster-driver ?
 
  Nico
 
 
 
   Nico,
  
   Great! That is exactly what I'm looking for.Maybe
  I'll
   have some hard time to setup a testing environment
  and
   write some code to see what will happen.
  
   Thanks a lot!
  
   Guo Yingshou
  
--- Nicolas De Loof [EMAIL PROTECTED]
You could look at this :
   
http://c-jdbc.objectweb.org/
   
this intermediate JDBC driver allow you to
  cluster
databases. Notice I never used it, use it at
  your
own risk ;-)
   
Nico.
   
   
 Hi,

 I am sure that someone here must have worked
  on a
 large website with heavy load using struts and
  I
 wonder if you'll be kindly enough to give me
  some
 suggestions in this occasion.

 I am using tomcat+jboss as application
  server.I
have
 setup several tomcat_jboss instances in a
  cluster
 environment and of course I use struts in my
 application.HttpSession created in one
  instance
will
 get replicated across all members in the
cluster.It's
 just what I want.The problem is how should I
connect
 the app servers with the backend db server(s)?
  If
I
 use only one db instance,all app server can
connect to
 it without any problem,but here lies the
bottleneck.I
 want to use several db instances(preferrably
 mysql).How can I do that?

 Thanks in advance!

 Guo Yingshou


   
  
 
 _
 Do You Yahoo!?
 

   
  
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html


   
  
 
 -
 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]
   
  
  
 
 _
   Do You Yahoo!?
   
  
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
  
  
 
 -
   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]
 

 _
 Do You Yahoo!?
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

 -
 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: Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread ashwani . kalra

Only if you load the servlet at startup ? Other wise on the first request
which may pose problem in filter .  Correct me if I am wrong





   
 
Andrew Hill  
 
[EMAIL PROTECTED]To: Struts Users Mailing List 
[EMAIL PROTECTED]  
dnode.comcc: (bcc: ashwani.kalra/Polaris) 
 
  Subject: RE: Is it possible to 
get the ActionMapping object in a  
07/18/2003 01:25 PM   filter ? 
 
Please respond to  
 
Struts Users Mailing  
 
List  
 
   
 
   
 





ActionMappings are initialised at startup surely and available from the
servlet context?

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, 18 July 2003 15:47
To: Struts Users Mailing List
Subject: RE: Is it possible to get the ActionMapping object in a filter
?


correct me if i am wrong

The filter servlet is hit before the request reaches the main servlet -
ActionServlet in struts case. As the request has not even reached
ActionServlet, ActionMapping object has not been initialized as of now.

so, you CANNOT have Mapping object in filter

navjot

|-Original Message-
|From: Ajay Patil [mailto:[EMAIL PROTECTED]
|Sent: Friday, July 18, 2003 1:20 PM
|To: [EMAIL PROTECTED]
|Subject: Is it possible to get the ActionMapping object in a filter ?
|
|
|Hi,
|
|Is it possible to retrieve the Action mapping object in the Filter
|class ?
|
|To describe further, I am writing the filter (as per Servlet 2.3) to
|authenticate the Strut actions and was wondering if I could get
|the roles for the action triggered. I think Struts 1.1 allows for
|roles to be stored in the ActionMapping.
|
|Thanks in advance,
|Ajay
|
|
|-
|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]





This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

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

RE: question on heavy load website design using struts

2003-07-18 Thread Mohd Amin Mohd Din
You could try Oracle Real Application Clusters or Dataguard

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 5:16 PM
To: Struts Users Mailing List
Subject: Re: question on heavy load website design using struts

No problem, I'll be patient. I just want my boss to stop saying Oracle
replication each time we get load-ballancing
needs.

Nico.



 Sure! Only a little bit patience,please.It may take me
 one or two weeks to go over the test.I used to meet a
 problem on container managed security using jboss
 cluster.That is,jboss'clusterring feature works fine
 except when I use declarative security model to
 protect my page,the authenticated principal will not
 get replicated across the members in the cluster.At
 this time,I want to find a work around to that too.

 Again,thaks for your info.

 Guo Yingshou
  --- Nicolas De Loof [EMAIL PROTECTED]
  Please could you send me feedback if you
 experiment
  this jdbc-cluster-driver ?
 
  Nico
 
 
 
   Nico,
  
   Great! That is exactly what I'm looking for.Maybe
  I'll
   have some hard time to setup a testing environment
  and
   write some code to see what will happen.
  
   Thanks a lot!
  
   Guo Yingshou
  
--- Nicolas De Loof [EMAIL PROTECTED]
You could look at this :
   
http://c-jdbc.objectweb.org/
   
this intermediate JDBC driver allow you to
  cluster
databases. Notice I never used it, use it at
  your
own risk ;-)
   
Nico.
   
   
 Hi,

 I am sure that someone here must have worked
  on a
 large website with heavy load using struts and
  I
 wonder if you'll be kindly enough to give me
  some
 suggestions in this occasion.

 I am using tomcat+jboss as application
  server.I
have
 setup several tomcat_jboss instances in a
  cluster
 environment and of course I use struts in my
 application.HttpSession created in one
  instance
will
 get replicated across all members in the
cluster.It's
 just what I want.The problem is how should I
connect
 the app servers with the backend db server(s)?
  If
I
 use only one db instance,all app server can
connect to
 it without any problem,but here lies the
bottleneck.I
 want to use several db instances(preferrably
 mysql).How can I do that?

 Thanks in advance!

 Guo Yingshou


   
  
 
 _
 Do You Yahoo!?
 

   
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laj
i/index.html


   
  
 
 -
 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]
   
  
  
 
 _
   Do You Yahoo!?
   
  
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laj
i/index.html
  
  
 
 -
   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]
 

 _
 Do You Yahoo!?
 

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laj
i/index.html

 -
 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: Struts in iPlanet/Sun ONE Web Server 6.0 SP5 throws exception

2003-07-18 Thread thirumalai . veeraswamy

Hi,

When I debugged the location of the line of messagetag.java, i
found it is not able to retrieve the message from the properties file.

   But the message source has been configured in the struts-config.xml
file. I said null=true in action servet configuration, then it started
giving the values like ???en.welcome.heading???, ???en.welcome.message???.

I commented the message resouces entry in struts-config file and
added the application entry in web.xml. Still it is not picking up the
messages.

   This happens only in iPlanet, in Tomcat as soon as deployed it
started working.

Regards
Thiru



   

thirumalai.ve  

eraswamy To: [EMAIL PROTECTED] 
   
 cc:   

07/18/2003   Subject: Struts in iPlanet/Sun ONE Web 
Server 6.0 SP5 throws  
10:17 AM exception 

   

   




Hi,

  I have deployed the struts-blank.war file in Sun ONE Web Server
6.0(iPlanet) SP5. When I access the application through the URL it throws
an exception as mentioned below.

 In the documentation I believe it mentions it will work in SP2+.

 Please do the needful.

Regards
Thiru

[18/Jul/2003:10:04:52] info ( 2448): iPlanet-WebServer-Enterprise/6.0SP5
B10/31/2002 14:41

[18/Jul/2003:10:10:53] failure ( 2448): Internal error: servlet service
function had thrown ServletException (uri=/struts-blank/Welcome.do):
javax.servlet.ServletException, stack: javax.servlet.ServletException
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
 at _jsps._pages._Welcome_jsp._jspService(_Welcome_jsp.java:226)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
 at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
 at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
 at
com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
 at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
 at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
 at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
 at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
 at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
 at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
, root cause: javax.servlet.jsp.JspException
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)
 at _jsps._pages._Welcome_jsp._jspService(_Welcome_jsp.java:89)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
 at

Re: question on heavy load website design using struts

2003-07-18 Thread Vic Cekvencih
FYI, one site I worked on PT (performance and tuning) we improved
performance by removing replication.
Also look at postgresql.org, it is much like Oracle.

(self-promo: keep me in mind for engineering larger sites, I have some
useful experience with good ROI)

Nicolas De Loof wrote:

 No problem, I'll be patient. I just want my boss to stop saying Oracle replication 
 each time we get load-ballancing
 needs.
 
 Nico.
 
 
 
 
Sure! Only a little bit patience,please.It may take me
one or two weeks to go over the test.I used to meet a
problem on container managed security using jboss
cluster.That is,jboss'clusterring feature works fine
except when I use declarative security model to
protect my page,the authenticated principal will not
get replicated across the members in the cluster.At
this time,I want to find a work around to that too.

Again,thaks for your info.

Guo Yingshou
 --- Nicolas De Loof [EMAIL PROTECTED]
 Please could you send me feedback if you
experiment

this jdbc-cluster-driver ?

Nico




Nico,

Great! That is exactly what I'm looking for.Maybe

I'll

have some hard time to setup a testing environment

and

write some code to see what will happen.

Thanks a lot!

Guo Yingshou

 --- Nicolas De Loof [EMAIL PROTECTED]
 You could look at this :

http://c-jdbc.objectweb.org/

this intermediate JDBC driver allow you to

cluster

databases. Notice I never used it, use it at

your

own risk ;-)

Nico.



Hi,

I am sure that someone here must have worked

on a

large website with heavy load using struts and

I

wonder if you'll be kindly enough to give me

some

suggestions in this occasion.

I am using tomcat+jboss as application

server.I

have

setup several tomcat_jboss instances in a

cluster

environment and of course I use struts in my
application.HttpSession created in one

instance

will

get replicated across all members in the

cluster.It's

just what I want.The problem is how should I

connect

the app servers with the backend db server(s)?

If

I

use only one db instance,all app server can

connect to

it without any problem,but here lies the

bottleneck.I

want to use several db instances(preferrably
mysql).How can I do that?

Thanks in advance!

Guo Yingshou



_

Do You Yahoo!?



http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html


-

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]



_

Do You Yahoo!?



http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html


-

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]


_
Do You Yahoo!?

http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html

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

-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced a href =baseBeans.comStruts Training/a and project
recovery in North East.
Open Source a href =baseBeans.comContent Management/a  basicPortal
sofware
Best practicea href =baseBeans.comStruts Support/a v.1.1 helper
ScafflodingXPress



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



Re: question on heavy load website design using struts

2003-07-18 Thread Nicolas De Loof
Thanks Vic.

We allready used PostgreSQL on a non strategic project, but our customers aren't 
open-source addicts (until they need
to reduce costs !)

Nico.


 FYI, one site I worked on PT (performance and tuning) we improved
 performance by removing replication.
 Also look at postgresql.org, it is much like Oracle.

 (self-promo: keep me in mind for engineering larger sites, I have some
 useful experience with good ROI)

 Nicolas De Loof wrote:

  No problem, I'll be patient. I just want my boss to stop saying Oracle 
  replication each time we get
load-ballancing
  needs.
 
  Nico.
 
 
 
 
 Sure! Only a little bit patience,please.It may take me
 one or two weeks to go over the test.I used to meet a
 problem on container managed security using jboss
 cluster.That is,jboss'clusterring feature works fine
 except when I use declarative security model to
 protect my page,the authenticated principal will not
 get replicated across the members in the cluster.At
 this time,I want to find a work around to that too.
 
 Again,thaks for your info.
 
 Guo Yingshou
  --- Nicolas De Loof [EMAIL PROTECTED]
  Please could you send me feedback if you
 experiment
 
 this jdbc-cluster-driver ?
 
 Nico
 
 
 
 
 Nico,
 
 Great! That is exactly what I'm looking for.Maybe
 
 I'll
 
 have some hard time to setup a testing environment
 
 and
 
 write some code to see what will happen.
 
 Thanks a lot!
 
 Guo Yingshou
 
  --- Nicolas De Loof [EMAIL PROTECTED]
  You could look at this :
 
 http://c-jdbc.objectweb.org/
 
 this intermediate JDBC driver allow you to
 
 cluster
 
 databases. Notice I never used it, use it at
 
 your
 
 own risk ;-)
 
 Nico.
 
 
 
 Hi,
 
 I am sure that someone here must have worked
 
 on a
 
 large website with heavy load using struts and
 
 I
 
 wonder if you'll be kindly enough to give me
 
 some
 
 suggestions in this occasion.
 
 I am using tomcat+jboss as application
 
 server.I
 
 have
 
 setup several tomcat_jboss instances in a
 
 cluster
 
 environment and of course I use struts in my
 application.HttpSession created in one
 
 instance
 
 will
 
 get replicated across all members in the
 
 cluster.It's
 
 just what I want.The problem is how should I
 
 connect
 
 the app servers with the backend db server(s)?
 
 If
 
 I
 
 use only one db instance,all app server can
 
 connect to
 
 it without any problem,but here lies the
 
 bottleneck.I
 
 want to use several db instances(preferrably
 mysql).How can I do that?
 
 Thanks in advance!
 
 Guo Yingshou
 
 
 
 _
 
 Do You Yahoo!?
 
 
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
 
 
 -
 
 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]
 
 
 
 _
 
 Do You Yahoo!?
 
 
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
 
 
 -
 
 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]
 
 
 _
 Do You Yahoo!?
 
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -- 
 Vic Cekvenich,
 Struts Instructor,
 1-800-917-JAVA

 Advanced a href =baseBeans.comStruts Training/a and project
 recovery in North East.
 Open Source a href =baseBeans.comContent Management/a  basicPortal
 sofware
 Best practicea href =baseBeans.comStruts Support/a v.1.1 helper
 ScafflodingXPress



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



how to solve case sensitive variable into a criteria

2003-07-18 Thread Mario Signorelli
Hi to all 

I'have a problem with case sensitive variable into a criteria

Criteria crit = new Criteria();
crit.addEqualTo(USERNAME, username);
crit.addEqualTo(PASSWORD, password);

Query query = new QueryByCriteria(Utenti.class, crit);
Collection lista = broker.getCollectionByQuery(query);

Into the db the username is 'a' and the password 'a' and if I put in the text login 
'A' e password 'A' it doesn't find the user. 
Is there any method to solve this case sensitive problem?

Thanks a lot 

Mario Signorelli
PIMM S.R.L.
via Lampugnano, 144
20151 - Milano
Tel. - 02/48206371
Fax. - 02/48206437

  



Re: question on heavy load website design using struts

2003-07-18 Thread Vic Cekvencih


Nicolas De Loof wrote:
 Thanks Vic.
 
 We allready used PostgreSQL on a non strategic project, but our customers aren't 
 open-source addicts (until they need
 to reduce costs !)
 
 Nico.
 

Yup!
:-)

Open source rant:

Some people just do not care about profitably until they are laying
people of, because their competitors are more profitable.

It's like being on a project where people have a short deadline:
-we do not have time to unit test
-we do not have time to do it right and use O.O.
OK, I understand.

They all will eventually, just plot the curve until they are all open
source: ( a bit overused, but I love this chart)
http://news.netcraft.com/archives/web_server_survey.html

Saving money is good.



.V




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



OT: JSR-168 is available for review

2003-07-18 Thread Michael Baldwin
The portlet API specification has been released for public review.

If you've been waiting (im)patiently to see what the Portlet API holds 
for us, go take a look at:

http://jcp.org/aboutJava/communityprocess/review/jsr168/index.html

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


actions best practice question

2003-07-18 Thread Erez Efrati
I have a login page with a link with forgot password? for users to
retrieve the passwords to their email account in case they forgot it.
It's pretty trivial but still using struts what is the best practice?

Should the link inside the login page point to the ForgotPassword.jsp or
to a ForgotPassword.do action?

Currently I used a ForgotPassword.do, and in the action I check if
there's an 'action' parameter with the value of 'send'. If the 'action'
parameter does not exist then I locally forward to the
ForgotPassword.jsp using struts-config.xml local forwards configuration.
If it does exist and equals to 'send' then I perform the actual
operation of going to the EJB layer and do what is necessary to do.
Is this the way to do it, or am I missing the point here?

Any comment would be greatly appreciated here,
Thanks,
Erez




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



Re: actions best practice question

2003-07-18 Thread Nicolas De Loof
According to MVC pattern ,alway link to action, not to JSP. This way you controler 
always knows what the user is doing,
and you can add some logic if needed.

Using a request parameter to addapt action behaviour is a common Struts use (take a 
look at DispatchAction).

Nico.




 I have a login page with a link with forgot password? for users to
 retrieve the passwords to their email account in case they forgot it.
 It's pretty trivial but still using struts what is the best practice?

 Should the link inside the login page point to the ForgotPassword.jsp or
 to a ForgotPassword.do action?

 Currently I used a ForgotPassword.do, and in the action I check if
 there's an 'action' parameter with the value of 'send'. If the 'action'
 parameter does not exist then I locally forward to the
 ForgotPassword.jsp using struts-config.xml local forwards configuration.
 If it does exist and equals to 'send' then I perform the actual
 operation of going to the EJB layer and do what is necessary to do.
 Is this the way to do it, or am I missing the point here?

 Any comment would be greatly appreciated here,
 Thanks,
 Erez




 -
 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: actions best practice question

2003-07-18 Thread Erez Efrati
Nico, 

I agree with that, and that is basically how I did. But I was wondering
for the first time the action is called, basically just for displaying
the page letting the user type in the fields values and click submit,
what action do you use, if any? Cause, it's only the next time the
action is called that the action is going to do real action.

Erez

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 2:24 PM
To: Struts Users Mailing List
Subject: Re: actions best practice question

According to MVC pattern ,alway link to action, not to JSP. This way you
controler always knows what the user is doing,
and you can add some logic if needed.

Using a request parameter to addapt action behaviour is a common Struts
use (take a look at DispatchAction).

Nico.




 I have a login page with a link with forgot password? for users to
 retrieve the passwords to their email account in case they forgot it.
 It's pretty trivial but still using struts what is the best practice?

 Should the link inside the login page point to the ForgotPassword.jsp
or
 to a ForgotPassword.do action?

 Currently I used a ForgotPassword.do, and in the action I check if
 there's an 'action' parameter with the value of 'send'. If the
'action'
 parameter does not exist then I locally forward to the
 ForgotPassword.jsp using struts-config.xml local forwards
configuration.
 If it does exist and equals to 'send' then I perform the actual
 operation of going to the EJB layer and do what is necessary to do.
 Is this the way to do it, or am I missing the point here?

 Any comment would be greatly appreciated here,
 Thanks,
 Erez




 -
 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: actions best practice question

2003-07-18 Thread Nicolas De Loof
I use to set a specialized action-mapping for such init request, that is a simple 
forward (no Action class needed)

/newUser/init.do  = forward to newUser.jsp

/newUser/register.do = RegiterUserAction = welcome.jsp^

if needed, forward to newUser.jsp can be easily changed by a full Action class (to 
init a form-bean with some default
values for example)

Nico.




 Nico,

 I agree with that, and that is basically how I did. But I was wondering
 for the first time the action is called, basically just for displaying
 the page letting the user type in the fields values and click submit,
 what action do you use, if any? Cause, it's only the next time the
 action is called that the action is going to do real action.

 Erez

 -Original Message-
 From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 2:24 PM
 To: Struts Users Mailing List
 Subject: Re: actions best practice question

 According to MVC pattern ,alway link to action, not to JSP. This way you
 controler always knows what the user is doing,
 and you can add some logic if needed.

 Using a request parameter to addapt action behaviour is a common Struts
 use (take a look at DispatchAction).

 Nico.




  I have a login page with a link with forgot password? for users to
  retrieve the passwords to their email account in case they forgot it.
  It's pretty trivial but still using struts what is the best practice?
 
  Should the link inside the login page point to the ForgotPassword.jsp
 or
  to a ForgotPassword.do action?
 
  Currently I used a ForgotPassword.do, and in the action I check if
  there's an 'action' parameter with the value of 'send'. If the
 'action'
  parameter does not exist then I locally forward to the
  ForgotPassword.jsp using struts-config.xml local forwards
 configuration.
  If it does exist and equals to 'send' then I perform the actual
  operation of going to the EJB layer and do what is necessary to do.
  Is this the way to do it, or am I missing the point here?
 
  Any comment would be greatly appreciated here,
  Thanks,
  Erez
 
 
 
 
  -
  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]


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



RE: actions best practice question

2003-07-18 Thread Erez Efrati
Nico, thanks a lot for the prompt answers.
 
Do you use for that the org.apache.struts.actions.ForwardAction ?

Erez



-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 2:48 PM
To: Struts Users Mailing List
Subject: Re: actions best practice question

I use to set a specialized action-mapping for such init request, that
is a simple forward (no Action class needed)

/newUser/init.do  = forward to newUser.jsp

/newUser/register.do = RegiterUserAction = welcome.jsp^

if needed, forward to newUser.jsp can be easily changed by a full Action
class (to init a form-bean with some default
values for example)

Nico.




 Nico,

 I agree with that, and that is basically how I did. But I was
wondering
 for the first time the action is called, basically just for displaying
 the page letting the user type in the fields values and click submit,
 what action do you use, if any? Cause, it's only the next time the
 action is called that the action is going to do real action.

 Erez

 -Original Message-
 From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 2:24 PM
 To: Struts Users Mailing List
 Subject: Re: actions best practice question

 According to MVC pattern ,alway link to action, not to JSP. This way
you
 controler always knows what the user is doing,
 and you can add some logic if needed.

 Using a request parameter to addapt action behaviour is a common
Struts
 use (take a look at DispatchAction).

 Nico.




  I have a login page with a link with forgot password? for users to
  retrieve the passwords to their email account in case they forgot
it.
  It's pretty trivial but still using struts what is the best
practice?
 
  Should the link inside the login page point to the
ForgotPassword.jsp
 or
  to a ForgotPassword.do action?
 
  Currently I used a ForgotPassword.do, and in the action I check if
  there's an 'action' parameter with the value of 'send'. If the
 'action'
  parameter does not exist then I locally forward to the
  ForgotPassword.jsp using struts-config.xml local forwards
 configuration.
  If it does exist and equals to 'send' then I perform the actual
  operation of going to the EJB layer and do what is necessary to do.
  Is this the way to do it, or am I missing the point here?
 
  Any comment would be greatly appreciated here,
  Thanks,
  Erez
 
 
 
 
 
-
  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]


-
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: actions best practice question

2003-07-18 Thread Nicolas De Loof
I use a Forward action-mapping :

action path=/newUser/init 
forward=/newUser.jsp /

You can use ForwardAction instead :

action path=/newUser/init 
type=org.apache.struts.actions.ForwardAction
parameter=/newUser.jsp/

I think ForwardAction is prefered when you want this request to use a formbean and 
have validation.

Nico.


 Nico, thanks a lot for the prompt answers.
  
 Do you use for that the org.apache.struts.actions.ForwardAction ?
 
 Erez
 
 
 
 -Original Message-
 From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 18, 2003 2:48 PM
 To: Struts Users Mailing List
 Subject: Re: actions best practice question
 
 I use to set a specialized action-mapping for such init request, that
 is a simple forward (no Action class needed)
 
 /newUser/init.do  = forward to newUser.jsp
 
 /newUser/register.do = RegiterUserAction = welcome.jsp^
 
 if needed, forward to newUser.jsp can be easily changed by a full Action
 class (to init a form-bean with some default
 values for example)
 
 Nico.
 
 
 
 
  Nico,
 
  I agree with that, and that is basically how I did. But I was
 wondering
  for the first time the action is called, basically just for displaying
  the page letting the user type in the fields values and click submit,
  what action do you use, if any? Cause, it's only the next time the
  action is called that the action is going to do real action.
 
  Erez
 
  -Original Message-
  From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 18, 2003 2:24 PM
  To: Struts Users Mailing List
  Subject: Re: actions best practice question
 
  According to MVC pattern ,alway link to action, not to JSP. This way
 you
  controler always knows what the user is doing,
  and you can add some logic if needed.
 
  Using a request parameter to addapt action behaviour is a common
 Struts
  use (take a look at DispatchAction).
 
  Nico.
 
 
 
 
   I have a login page with a link with forgot password? for users to
   retrieve the passwords to their email account in case they forgot
 it.
   It's pretty trivial but still using struts what is the best
 practice?
  
   Should the link inside the login page point to the
 ForgotPassword.jsp
  or
   to a ForgotPassword.do action?
  
   Currently I used a ForgotPassword.do, and in the action I check if
   there's an 'action' parameter with the value of 'send'. If the
  'action'
   parameter does not exist then I locally forward to the
   ForgotPassword.jsp using struts-config.xml local forwards
  configuration.
   If it does exist and equals to 'send' then I perform the actual
   operation of going to the EJB layer and do what is necessary to do.
   Is this the way to do it, or am I missing the point here?
  
   Any comment would be greatly appreciated here,
   Thanks,
   Erez
  
  
  
  
  
 -
   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]
 
 
 -
 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: actions best practice question

2003-07-18 Thread Erez Efrati
Thanks again Nico.

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 3:06 PM
To: Struts Users Mailing List
Subject: Re: actions best practice question

I use a Forward action-mapping :

action path=/newUser/init 
forward=/newUser.jsp /

You can use ForwardAction instead :

action path=/newUser/init 
type=org.apache.struts.actions.ForwardAction
parameter=/newUser.jsp/

I think ForwardAction is prefered when you want this request to use a
formbean and have validation.

Nico.


 Nico, thanks a lot for the prompt answers.
  
 Do you use for that the org.apache.struts.actions.ForwardAction ?
 
 Erez
 
 
 
 -Original Message-
 From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 18, 2003 2:48 PM
 To: Struts Users Mailing List
 Subject: Re: actions best practice question
 
 I use to set a specialized action-mapping for such init request,
that
 is a simple forward (no Action class needed)
 
 /newUser/init.do  = forward to newUser.jsp
 
 /newUser/register.do = RegiterUserAction = welcome.jsp^
 
 if needed, forward to newUser.jsp can be easily changed by a full
Action
 class (to init a form-bean with some default
 values for example)
 
 Nico.
 
 
 
 
  Nico,
 
  I agree with that, and that is basically how I did. But I was
 wondering
  for the first time the action is called, basically just for
displaying
  the page letting the user type in the fields values and click
submit,
  what action do you use, if any? Cause, it's only the next time the
  action is called that the action is going to do real action.
 
  Erez
 
  -Original Message-
  From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 18, 2003 2:24 PM
  To: Struts Users Mailing List
  Subject: Re: actions best practice question
 
  According to MVC pattern ,alway link to action, not to JSP. This way
 you
  controler always knows what the user is doing,
  and you can add some logic if needed.
 
  Using a request parameter to addapt action behaviour is a common
 Struts
  use (take a look at DispatchAction).
 
  Nico.
 
 
 
 
   I have a login page with a link with forgot password? for users
to
   retrieve the passwords to their email account in case they forgot
 it.
   It's pretty trivial but still using struts what is the best
 practice?
  
   Should the link inside the login page point to the
 ForgotPassword.jsp
  or
   to a ForgotPassword.do action?
  
   Currently I used a ForgotPassword.do, and in the action I check if
   there's an 'action' parameter with the value of 'send'. If the
  'action'
   parameter does not exist then I locally forward to the
   ForgotPassword.jsp using struts-config.xml local forwards
  configuration.
   If it does exist and equals to 'send' then I perform the actual
   operation of going to the EJB layer and do what is necessary to
do.
   Is this the way to do it, or am I missing the point here?
  
   Any comment would be greatly appreciated here,
   Thanks,
   Erez
  
  
  
  
  
 -
   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]
 
 
 -
 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]




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



DynaValidatorForm property type

2003-07-18 Thread Eugen Bushuev
Hi.
Is it possible to have form-property of a DynaValidatorForm of some type 
but String? Since it is stated so in dtd I had humble hope about it, but 
got javax.servlet.ServletException: Exception creating bean of class 
org.apache.struts.validator.DynaValidatorForm: {1}

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


Re: What Is The Proper Location To Place Inputs For Creating A Drop-Down Menu

2003-07-18 Thread Sandeep Takhar
I'd put it in the database.

The value can be the abbreviated state name and the
label can be the resource property that you look up.

You can do something like what I saw in Struts in
Action book.

It uses an action in scaffolding contrib project (part
of start) that is called ExistsAttribute that will
check to see if an attribute exists in a certain scope
(I believe specified in the parameter attribute of the
action-mapping).  If it doesn't it goes one way
(forward) or the other.  It passes control to another
action which will load the stuff up in app scope and
then forward to the action that needs the stuff.

I guess the only problem with this scheme is that
states can be used in many different places.  You
would probably have different mappings for each of
these.

Scaffolding also uses a different back-end bean for
each mapping (or many of them).  So you could load
many different beans if you want.

You could have a servlet load the stuff in application
scope if you liked as well.

Lots of different ways of doing this.

LabelValueBeans are part of struts and are useful for
this type of thing.  html:optionsCollections interface
directly with LabelValueBeans and are used within an
html:select.

Another approach is to have a common jsp using a
TilesController that loads it up if it isn't there
already.

I like the scaffolding approach.  there are ways to
make it dynamically dispatch to the appropriate action
after loading up the beans.  Scaffolding has a number
of built in methods that may work (although I am
thinking they may not).  One is the BaseForm which has
a dispatch parameter and the other is
BaseActionMapping which has a parameter (specified in
action-mapping).

sandeep


--- Caroline Jen [EMAIL PROTECTED] wrote:
 I want to put the label and value pairs of the 51
 states of the U.S. in a file, read in the file into
 an
 ArrayList, and then create a drop-down menu in a
 .jsp
 file.
 
 Question 1.  Where is the proper place to put those
 label and value pairs?  Create a table in the
 database? or put those pairs in a properties file? 
 Which directory does this properties file go?
 
 Question 2.  Do I read those pairs into an ArrayList
 in the controller servlet?   
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Struts in iPlanet/Sun ONE Web Server 6.0 SP5 throws exception

2003-07-18 Thread JavaXML Developer
Sometimes back i had issue with iPlanet web server 6.0 with SP1. Now my app is running 
well on iWS with SP1. Am sure it should work well with later SP versions. Did you make 
sure your lib and tlds are getting picked up? Take a look at your _Welcome_jsp.java 
line 226 on which you are getting error in your error trace.
 
-Vicky

[EMAIL PROTECTED] wrote:

Hi,

When I debugged the location of the line of messagetag.java, i
found it is not able to retrieve the message from the properties file.

But the message source has been configured in the struts-config.xml
file. I said null=true in action servet configuration, then it started
giving the values like ???en.welcome.heading???, ???en.welcome.message???.

I commented the message resouces entry in struts-config file and
added the application entry in web.xml. Still it is not picking up the
messages.

This happens only in iPlanet, in Tomcat as soon as deployed it
started working.

Regards
Thiru




thirumalai.ve 
eraswamy To: [EMAIL PROTECTED] 
cc: 
07/18/2003 Subject: Struts in iPlanet/Sun ONE Web Server 6.0 SP5 throws 
10:17 AM exception 





Hi,

I have deployed the struts-blank.war file in Sun ONE Web Server
6.0(iPlanet) SP5. When I access the application through the URL it throws
an exception as mentioned below.

In the documentation I believe it mentions it will work in SP2+.

Please do the needful.

Regards
Thiru

[18/Jul/2003:10:04:52] info ( 2448): iPlanet-WebServer-Enterprise/6.0SP5
B10/31/2002 14:41

[18/Jul/2003:10:10:53] failure ( 2448): Internal error: servlet service
function had thrown ServletException (uri=/struts-blank/Welcome.do):
javax.servlet.ServletException, stack: javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
at _jsps._pages._Welcome_jsp._jspService(_Welcome_jsp.java:226)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
at
com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
, root cause: javax.servlet.jsp.JspException
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)
at _jsps._pages._Welcome_jsp._jspService(_Welcome_jsp.java:89)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
at
com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)
at

DispatchAction role

2003-07-18 Thread Witbeck, Shane
Is there any disadvantage of to letting a DispatchAction handle both the
setup and submission of a form something like the following:

DispatchAction contains the following methods:

1. init() - sets up the form with initial values for select lists, etc.
2. submitForm() - handles the validation and data associated with the
completed form setup above and forwards to another DispatchAction's init()
method.

This is a re-post but since no one responded I made my post a little more
concise this time.

Any suggestions or opinions on this is much appreciated.

Thanks,

Shane 

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



RE: How to map multiple submit actions for a single form

2003-07-18 Thread Witbeck, Shane
Take a look at LookupDispatchAction

-Original Message-
From: pradeep bhargav [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 11:54 PM
To: [EMAIL PROTECTED]
Subject: How to map multiple submit actions for a single form


Hi All,

 I'm creating a basic struts application. In my application, I'm 
showing a list of products available to the user. In this page, I'm having
4 buttons New, Modify, Delete, Cancel. Now all these are submit buttons
but I'm having a single form. Now, how can I map the submit actions to 
different pages in struts config. I'm also attaching the jsp file. Can 
anyone please suggest how to solve this problem.

I also want to use a checkbox to select a record to perform modify or 
delete action on the selected record. Can anyone plz tell me how to
achieve this??

Regards,

Pradeep Bhargav



=

pradeepbhargav
JCE CIVIL GROUP
MatrixOne India
Scandent Group
[EMAIL PROTECTED]




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: how to solve case sensitive variable into a criteria

2003-07-18 Thread Hookom, Jacob
You can do a couple of things:

Turn off case sensitivity on the server (probably not a good idea)

Crit.addEqualTo(USERNAME, username.toLowerCase());

Jacob Hookom
Senior Analyst/Programmer
McKesson Medical-Surgical
Golden Valley, Minnesota
http://www.mckesson.com

-Original Message-
From: Mario Signorelli [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: how to solve case sensitive variable into a criteria

Hi to all

I'have a problem with case sensitive variable into a criteria

Criteria crit = new Criteria();
crit.addEqualTo(USERNAME, username);
crit.addEqualTo(PASSWORD, password);

Query query = new QueryByCriteria(Utenti.class, crit);
Collection lista = broker.getCollectionByQuery(query);

Into the db the username is 'a' and the password 'a' and if I put in the
text login 'A' e password 'A' it doesn't find the user.
Is there any method to solve this case sensitive problem?

Thanks a lot

Mario Signorelli
PIMM S.R.L.
via Lampugnano, 144
20151 - Milano
Tel. - 02/48206371
Fax. - 02/48206437

 

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



[Struts 1.0.2] How to detect errors in JSP

2003-07-18 Thread bruno . morin
Hello,

I need to know if there are errors message or not in my JSP.

I tried logic:present name=org.apache.struts.action.ERROR scope
=request but it don't work.

How to do that with Struts 1.0.2 ?

Thank you for your help.

Bruno.
Cet e-mail et ses annexes (le message) sont strictement confidentiels et
peuvent contenir des informations légalement confidentielles. Ce message
est établi à l'intention exclusive des personnes ou entités auxquelles il
est adressé. Si vous n'êtes pas le destinataire de ce message, toute
lecture, copie, diffusion, publication ou toute autre utilisation de ce
message est interdite.
Merci de nous notifier immédiatement si ce message vous a été adressé par
erreur et de le détruire.
L'intégrité et la sécurité de ce message ne sont pas garanties, et
Euroclear France ne peut être responsable d'altération, d'interception des
données ou modification non autorisée.
Euroclear est le nom commercial du système Euroclear, Euroclear Plc,
Euroclear Bank et ses filiales.

This e-mail message, including any attachments transmitted with it, is
CONFIDENTIAL and may contain legally privileged information. This message
is intended solely for the use of the individual or entity to whom it is
addressed. If you are not the intended recipient you should not read, copy,
distribute, disclose or otherwise use this information. If you have
received this message in error,  please notify us immediately and delete it
from your system. The integrity and security of this message cannot be
guaranteed and it may be subject to data corruption, interception and
unauthorised amendment, for which we accept no liability. Euroclear is the
marketing name for the Euroclear System, Euroclear plc, Euroclear Bank and
their affiliates.  http://www.euroclear.com





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



action mapping 'input' question

2003-07-18 Thread Erez Efrati
I guess it's simple, but why can't I put an action /MyAction.do in the
'input' field in a action-mapping in the struts-config.xml?

Erez



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



RE: action mapping 'input' question

2003-07-18 Thread Amit Kirdatt
You can but have to account for the state the form associated with
/MyAction.do.
Before I try to suggest a solution can you please tell us specifically what
problem you are experiencing?



-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 9:46 AM
To: 'Struts Users Mailing List'
Subject: action mapping 'input' question


I guess it's simple, but why can't I put an action /MyAction.do in the
'input' field in a action-mapping in the struts-config.xml?

Erez



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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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



Re: How to map multiple submit actions for a single form

2003-07-18 Thread Sandeep Takhar
Lots of ways, but best to read more about them..

1. LookupDispatchAction
2. You can have different forms for each of them quite
easily.
3. Cancel should be an html:cancel and you can check
(preferabbly in a BaseAction) if isCancelled(request).
4. Can have an action that one form points to and just
have this (preferrably in a baseAction)
if (request.getParameter(button_Name_delete)
{
   deleteAction
}
Note that this is similar to LookupDispatchAction.

sandeep
--- pradeep bhargav [EMAIL PROTECTED] wrote:
 Hi All,
 
  I'm creating a basic struts application. In my
 application, I'm 
 showing a list of products available to the user. In
 this page, I'm having
 4 buttons New, Modify, Delete, Cancel. Now all these
 are submit buttons
 but I'm having a single form. Now, how can I map the
 submit actions to 
 different pages in struts config. I'm also attaching
 the jsp file. Can 
 anyone please suggest how to solve this problem.
 
 I also want to use a checkbox to select a record
 to perform modify or 
 delete action on the selected record. Can anyone plz
 tell me how to
 achieve this??
 
 Regards,
 
 Pradeep Bhargav
 
 
 
 =
 
 pradeepbhargav
 JCE CIVIL GROUP
 MatrixOne India
 Scandent Group
 [EMAIL PROTECTED]
 
 
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: action mapping 'input' question

2003-07-18 Thread Erez Efrati
I am using struts/tiles/validator in my application.

Using the following configuration works fine, still I see that on the
first invocation the form gets validated and I get validation errors. My
ForgotPasswordAction action is used both for the INIT and the SUBMIT
operations. The only solution I read about is putting 'validate'=false
and control the invocation of the super.validate() in my code. Is this
true?

action name=ForgotPasswordForm 
type=web.ForgotPasswordAction  
validate=true 
input=.forgotPassword 
scope=request 
path=/ForgotPassword 

forward name=show path=.forgotPassword redirect=false /
/action

If I use the following:
action name=ForgotPasswordForm 
type=web.ForgotPasswordAction  
validate=true 
input=/ForgotPassword.do 
scope=request 
path=/ForgotPassword 

forward name=show path=.forgotPassword redirect=false /
/action

Then I get the following error: (now it's endless... really so sorry :)

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:19
9)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.StackOverflowError
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
HttpRequest.java:247)
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
HttpRequest.java:250)
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
HttpRequest.java:250)
at

Complex form data

2003-07-18 Thread Joe Zendle
Hi all,

In general I have noticed that if a form class is 'complex', i.e., it
contains collections of other beans (that may contain other collections)
and the form is defined to have request scope I get 'array index out of
bounds' exceptions from the controller when the form is submitted
(before my action is called). If the form is changed to session scope
then the problem 'goes away'. This seems to be a BFH fix though.

I guess my question is: Are there limitations or criteria to the
complexity of forms defined with request scope?

Any thoughts are appreciated!


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



Re: DynaValidatorForm property type

2003-07-18 Thread mohan
Yes we can do this i guess try this

  form name=xyzForm type=org.apache.struts.validator.DynaValidatorForm
 form-property name=person type=com.abcd.youejbbean /

I am sure it shud work, lemme know if it does

--Mohan



 Hi.
 Is it possible to have form-property of a DynaValidatorForm of some type
  but String? Since it is stated so in dtd I had humble hope about it,
 but  got javax.servlet.ServletException: Exception creating bean of
 class  org.apache.struts.validator.DynaValidatorForm: {1}

 senx.
 --
 ó Õ×ÁÖÅÎÉÅÍ, å.âÕÛÕÅ×.


 - 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: DispatchAction role

2003-07-18 Thread Rick Reumann
On Fri, Jul 18,'03 (09:22 AM GMT-0400), Witbeck, wrote: 

 Is there any disadvantage of to letting a DispatchAction handle both
 the setup and submission of a form something like the following:
 
 DispatchAction contains the following methods:
 
 1. init() - sets up the form with initial values for select lists,
 etc. 2. submitForm() - handles the validation and data associated with
 the completed form setup above and forwards to another
 DispatchAction's init() method.

I do exactly that, and think it's fine. I often have a 

setUp()  
update()
display()

works for me:)

-- 
Rick


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



Re: DispatchAction role

2003-07-18 Thread Rick Reumann
On Fri, Jul 18,'03 (10:49 AM GMT-0400), Rick wrote: 
 
  1. init() - sets up the form with initial values for select lists,
  etc. 2. submitForm() - handles the validation and data associated
  with the completed form setup above and forwards to another
  DispatchAction's init() method.
 
 I do exactly that, and think it's fine. I often have a 
 
 setUp()  
 update()
 display()
 

Although I should comment that I haven't ever had a need to do your #2
above (forwarding to another dispatch action). I generally don't like to
forward my actions to other actions (I'm not in the camp that would say
'never' do it... I just haven't found a need to yet).

-- 
Rick




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



RE: Complex form data

2003-07-18 Thread Amit Kirdatt
Joe,

I had similar problems...check out this thread

http://www.mail-archive.com/[EMAIL PROTECTED]/thrd3.html#73162

thanks,
Amit

-Original Message-
From: Joe Zendle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 9:31 AM
To: Struts Users Mailing List
Subject: Complex form data


Hi all,

In general I have noticed that if a form class is 'complex', i.e., it
contains collections of other beans (that may contain other collections)
and the form is defined to have request scope I get 'array index out of
bounds' exceptions from the controller when the form is submitted
(before my action is called). If the form is changed to session scope
then the problem 'goes away'. This seems to be a BFH fix though.

I guess my question is: Are there limitations or criteria to the
complexity of forms defined with request scope?

Any thoughts are appreciated!


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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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



RE: DispatchAction role

2003-07-18 Thread Witbeck, Shane
Thanks for the reply Rick. 

The reason for my #2 submitForm() method is to handle the validation of the
form submission within the same Action as the setup and update methods. This
way everything is contained within one Action for a specific JSP form rather
than the typical cross-pollination of the next Action handling the previous
form's validation. 

I should have also mentioned that this implementation is being used in a
wizard type of application where there are several steps chained together to
collect data.

Shane

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Re: DispatchAction role


On Fri, Jul 18,'03 (10:49 AM GMT-0400), Rick wrote: 
 
  1. init() - sets up the form with initial values for select lists,
  etc. 2. submitForm() - handles the validation and data associated
  with the completed form setup above and forwards to another
  DispatchAction's init() method.
 
 I do exactly that, and think it's fine. I often have a 
 
 setUp()  
 update()
 display()
 

Although I should comment that I haven't ever had a need to do your #2
above (forwarding to another dispatch action). I generally don't like to
forward my actions to other actions (I'm not in the camp that would say
'never' do it... I just haven't found a need to yet).

-- 
Rick




-
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: Multiple row selection

2003-07-18 Thread Erik Price


Goldy J wrote:
Hello, 
I am facing a peculiar problem . I have a Action Class1 which  gets RS from DB. I set the elements of FormBean1 and add them into a ArrayList1. So at the end of my Action Class1 i have a Array List 1 which has objects of my formbean1.
 
I call this ArrayList1 in my JSP1 and using Iterate tag , is able to get the formbean object and is able to show it as a row of a table. So effectively one row of my table is an Object of Formbean1(is it ??).
Now i has this requirement of selecting any number of rows of the populated table in JSP1 and taking them to JSP2. 
I have tried checkboxes, multiboxes but couldn't get thru it . I think the problem is when I submit JSP1 it is submitted as one formbean object , whereas in my case each row is a different object. So need some mechanism so that when somebody checks it is set in the Arraylist 1 itself and i can get the value in action class or may be some other scheme which make life easier!!!
I find it helpful to use the primary key of the database row as a form 
input.  So when a user selects FB1, FB3, and FB6, the primary keys of 
each of those FormBeans gets sent back to the server.  On the second 
JSP, you can then fetch these FormBeans from the DB in a new database 
query (or from a cache if you are caching them within the application).

Erik

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


Re: Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread Erik Price


Navjot Singh wrote:
correct me if i am wrong

The filter servlet is hit before the request reaches the main servlet -
ActionServlet in struts case. As the request has not even reached
ActionServlet, ActionMapping object has not been initialized as of now.
You can always have the access code performed in the Filter, *after* the 
filter chain has been invoked.  However, it might be of no use for your 
use case by that time.

MyFilterActionServlet Mapping
   | |   |
   | |   |
   - doChain()   |   |
  | |   |
  | |   | | instantiates |
  | |   | |--
  | |   | | | |
  | |   | |
  | |getRoles   | |
  | |--| |




Erik

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


RE: Complex form data

2003-07-18 Thread Joe Zendle
I see. Very subtle (at least to me!)

Since the form is defined as request scope, upon submission, a brand new
form is instantiated with a default nested Collection of 0 size (via my
c'tor). As struts attempts to populate the vector it will call
getIndexedProperty(int size) which will add a new bean to the Collection
and promptly return it for population. This process continues until a
copy of the entire rendered page is complete. Makes sense now. Thanks!

Should this be added to the 'Indexed Property' page in the struts
documentation? The examples there are all for fixed sized data
structures and don't address this frustrating nuance.

Joe
-Original Message-
From: Amit Kirdatt [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 8:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Complex form data

Joe,

I had similar problems...check out this thread

http://www.mail-archive.com/[EMAIL PROTECTED]/thrd3.html#73
162

thanks,
Amit

-Original Message-
From: Joe Zendle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 9:31 AM
To: Struts Users Mailing List
Subject: Complex form data


Hi all,

In general I have noticed that if a form class is 'complex', i.e., it
contains collections of other beans (that may contain other collections)
and the form is defined to have request scope I get 'array index out of
bounds' exceptions from the controller when the form is submitted
(before my action is called). If the form is changed to session scope
then the problem 'goes away'. This seems to be a BFH fix though.

I guess my question is: Are there limitations or criteria to the
complexity of forms defined with request scope?

Any thoughts are appreciated!


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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that
any dissemination, distribution or copying of this e-mail is prohibited.
If
you have received this e-mail in error, please notify the sender by
replying
to this message and delete this e-mail immediately.

-
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] Precompiling JSP with JSTL tag Libs

2003-07-18 Thread Pat Quinn
Sorry guys this is not a struts question but i'm hoping someone on here has 
had this problem before ive got an ANT task to precompile my jsp's 
everything worked fine until i decided to upgrade to use JSTL tag libs not i 
get the following error,

[echo] Precompiling JSPS
2003-07-18 04:27:26 - Internal Error: File /WEB-INF/web.xml not found
2003-07-18 04:27:29 - ERROR-the file '\jsp\myjsp.jsp'
generated the following general exception: org.apache.jasper.JasperException
: XML parsing error on file /WEB-INF/tld/c.tld: (line 307, col 39):
The string -- is not permitted within comments.
[jasper] Error in class org.apache.jasper.JspC
MyJsp.jsp is the only jsp which is currently using the c.tld.

My ANT Task is as follows:

   target name=jsp  depends=webinf
   taskdef name=jasper
classname=org.apache.jasper.JspC
classpath=${class.path}/
   echo message=Precompiling JSPS/

   jasper package=com.my.web.servlets
   uriroot=${web.basedir}
   webXmlFragment=${jsp.web.fragment.file}
   outputDir=${web.src.dir} /
   /target
Any Ideas as i'm going crazy now I've tried upgrading to xerces 2.4.0 
but i still get the same error.

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: [OT] Precompiling JSP with JSTL tag Libs

2003-07-18 Thread David Graham
--- Pat Quinn [EMAIL PROTECTED] wrote:
 Sorry guys this is not a struts question but i'm hoping someone on here
 has 
 had this problem before ive got an ANT task to precompile my jsp's 
 everything worked fine until i decided to upgrade to use JSTL tag libs
 not i 
 get the following error,
 
 [echo] Precompiling JSPS
 2003-07-18 04:27:26 - Internal Error: File /WEB-INF/web.xml not found
 2003-07-18 04:27:29 - ERROR-the file '\jsp\myjsp.jsp'
 generated the following general exception:
 org.apache.jasper.JasperException
 
 : XML parsing error on file /WEB-INF/tld/c.tld: (line 307, col 39):
 The string -- is not permitted within comments.
 [jasper] Error in class org.apache.jasper.JspC

You don't need to copy tld files anywhere under Servlet 2.3 containers. 
Remove the tlds and try again.

David

 
 MyJsp.jsp is the only jsp which is currently using the c.tld.
 
 
 My ANT Task is as follows:
 
 
 target name=jsp  depends=webinf
 taskdef name=jasper
  classname=org.apache.jasper.JspC
  classpath=${class.path}/
 
 echo message=Precompiling JSPS/
 
 jasper package=com.my.web.servlets
 uriroot=${web.basedir}
 webXmlFragment=${jsp.web.fragment.file}
 outputDir=${web.src.dir} /
 /target
 
 
 Any Ideas as i'm going crazy now I've tried upgrading to xerces
 2.4.0 
 but i still get the same error.
 
 _
 Protect your PC - get McAfee.com VirusScan Online 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Complex form data

2003-07-18 Thread Amit Kirdatt
Joe, I agree with you, because I too had to fish for a while and it seems
a like a fairly common question/problem. Can somebody, who controls the FAQ
section of the Struts site, please put this on the FAQ or Examples section
of the site? Pretty please???

Thanks,
Amit

-Original Message-
From: Joe Zendle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 10:36 AM
To: Struts Users Mailing List
Subject: RE: Complex form data


I see. Very subtle (at least to me!)

Since the form is defined as request scope, upon submission, a brand new
form is instantiated with a default nested Collection of 0 size (via my
c'tor). As struts attempts to populate the vector it will call
getIndexedProperty(int size) which will add a new bean to the Collection
and promptly return it for population. This process continues until a
copy of the entire rendered page is complete. Makes sense now. Thanks!

Should this be added to the 'Indexed Property' page in the struts
documentation? The examples there are all for fixed sized data
structures and don't address this frustrating nuance.

Joe
-Original Message-
From: Amit Kirdatt [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 8:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Complex form data

Joe,

I had similar problems...check out this thread

http://www.mail-archive.com/[EMAIL PROTECTED]/thrd3.html#73
162

thanks,
Amit

-Original Message-
From: Joe Zendle [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 9:31 AM
To: Struts Users Mailing List
Subject: Complex form data


Hi all,

In general I have noticed that if a form class is 'complex', i.e., it
contains collections of other beans (that may contain other collections)
and the form is defined to have request scope I get 'array index out of
bounds' exceptions from the controller when the form is submitted
(before my action is called). If the form is changed to session scope
then the problem 'goes away'. This seems to be a BFH fix though.

I guess my question is: Are there limitations or criteria to the
complexity of forms defined with request scope?

Any thoughts are appreciated!


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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that
any dissemination, distribution or copying of this e-mail is prohibited.
If
you have received this e-mail in error, please notify the sender by
replying
to this message and delete this e-mail immediately.

-
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, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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



Bread crumb trail

2003-07-18 Thread Curtney Jacobs
Greetings!

About two weeks ago someone said they would post the Tiles implementation of a 
Bread crumb trail, if requested.

I requested. What happened to the Bread crumb trail post?


_CJ

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



[Friday] How far can we let the clients push us?

2003-07-18 Thread Yansheng Lin

To them, Online spreadsheet data-entry is a reasonable request.  They don't want
to change their ways of practise, what can we do?  They are paying us!

Darn, life is so hard!
 


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



Re: [OT] Precompiling JSP with JSTL tag Libs

2003-07-18 Thread Craig R. McClanahan


On Fri, 18 Jul 2003, Pat Quinn wrote:

 Date: Fri, 18 Jul 2003 16:41:33 +0100
 From: Pat Quinn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [OT] Precompiling JSP with JSTL tag Libs

 Sorry guys this is not a struts question but i'm hoping someone on here has
 had this problem before ive got an ANT task to precompile my jsp's
 everything worked fine until i decided to upgrade to use JSTL tag libs not i
 get the following error,

 [echo] Precompiling JSPS
 2003-07-18 04:27:26 - Internal Error: File /WEB-INF/web.xml not found
 2003-07-18 04:27:29 - ERROR-the file '\jsp\myjsp.jsp'
 generated the following general exception: org.apache.jasper.JasperException

 : XML parsing error on file /WEB-INF/tld/c.tld: (line 307, col 39):
 The string -- is not permitted within comments.
 [jasper] Error in class org.apache.jasper.JspC

 MyJsp.jsp is the only jsp which is currently using the c.tld.


 My ANT Task is as follows:


 target name=jsp  depends=webinf
 taskdef name=jasper
  classname=org.apache.jasper.JspC
  classpath=${class.path}/

 echo message=Precompiling JSPS/

 jasper package=com.my.web.servlets
 uriroot=${web.basedir}
 webXmlFragment=${jsp.web.fragment.file}
 outputDir=${web.src.dir} /
 /target


 Any Ideas as i'm going crazy now I've tried upgrading to xerces 2.4.0
 but i still get the same error.

I suspect that it really is related to your XML parser ... this looks
suspiciously like a bug in earlier versions of Xerces.  It turned out that
one of our Struts DTDs had a comment line longer than 80 characters, but
caused Xerces to output a totally bogus error just like this, pointing at
a place totally unrelated to where the problem really was.

Note that, if you're using JDK 1.4, simply putting Xerces 2.4 into your
classpath does *not* replace the use of the built-in parser.  You have to
put it in the endorsed standards directory ($JAVA_HOME/jre/endorsed I
*think* -- it's in the JDK docs), or use a system property to declare the
directory containing this JAR to be your endorsed directory.

To use an updated parser in Tomcat 4.1 or later, put it in
$CATALINA_HOME/common/endorsed.

Craig

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



Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread Erik Price


Yansheng Lin wrote:
To them, Online spreadsheet data-entry is a reasonable request.  They don't want
to change their ways of practise, what can we do?  They are paying us!
Darn, life is so hard!
Can you embed an applet that replicates spreadsheet functionality into a 
web page?





Erik

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


order of bean form population

2003-07-18 Thread Joe Zendle
This is probably a JSP question but here goes:

What is the order in which bean properties are populated. Is it from 1st
to last as defined in the class (assuming reflection is used)? Can I
reliably use a property's value defined 1st to make a decision of how to
populate a later attribute? I am trying to make a form that can be used
to hold various business entities that share common attributes. 

Ex:

Assume hidden value is used in jsp to populate dataType below:

class MyForm extends ActionForm {
   private String dataType;
   private Vector holdsBaseClass = new Vector();


   public Set/getDataType(){}

   BaseClass getHoldsBaseClass(int index) {
   // need to know the concrete type to add
   while (holdsBaseClass.size()-1  index) {
if ( dataType.equals(derived1)
 holdsBaseClass.add(new Derived1());
if ( dataType.equals(derived2)
 holdsBaseClass.add(new Derived2());
   }
   return holdsBaseClass.elementAt(index);
}
}

   

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



Validator form 'vs' reset method in ActionForm and DynaActionForm

2003-07-18 Thread José Fortunato H. Tomás
Hi!

I'm trying to evaluate how to move my ActionForm's to Validator one's.

I found a problem for which I don't see the solution.
In basic (Dyna)ActionForm we have the reset() method, where we have access to 
the request, and from there we can set some request.Atributes (for example 
ArrayList width values for some combo-boxes).

For Validator form's I can not see the way to do the same, which is have some 
method or class that runs first and I can set those attributes in request.

Anyone has any idea or information that can help me?

Thanks

--
José Tomás
 LINK Consulting SA - http://www.link.pt
 Av. Duque de Avila 23 5º Dto. - 1000-138 Lisboa
 Telf: (+351) 213 100 095  Fax: (+351) 213 100 079


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


Re: actions best practice question

2003-07-18 Thread Wes Rood

Currently I used a ForgotPassword.do, and in the action I check if
there's an 'action' parameter with the value of 'send'. If the 'action'
parameter does not exist then I locally forward to the
ForgotPassword.jsp using struts-config.xml local forwards configuration.
If it does exist and equals to 'send' then I perform the actual
operation of going to the EJB layer and do what is necessary to do.
Is this the way to do it, or am I missing the point here?
 

You may consider utilizing the input forward. 

You can set the input attribute of the Action element to be 
forgotpassword.jsp, then in the Action, when the action parameter does 
not exist, just do:

   return mapping.getInputForward();

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


Re: Validator form 'vs' reset method in ActionForm and DynaActionForm

2003-07-18 Thread José Fortunato H. Tomás
Thanks any way, I have already the solution.

Hi!

I'm trying to evaluate how to move my ActionForm's to Validator one's.

I found a problem for which I don't see the solution.
In basic (Dyna)ActionForm we have the reset() method, where we have 
access to the request, and from there we can set some request.Atributes 
(for example ArrayList width values for some combo-boxes).

For Validator form's I can not see the way to do the same, which is have 
some method or class that runs first and I can set those attributes in 
request.

Anyone has any idea or information that can help me?

Thanks

--
José Tomás
 LINK Consulting SA - http://www.link.pt
 Av. Duque de Avila 23 5º Dto. - 1000-138 Lisboa
 Telf: (+351) 213 100 095  Fax: (+351) 213 100 079


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


RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Mike Jasnowski
I worked on projects with similar request, one client wanted to be able to
have Rich TExt editing of memos.

Re: the Spreadsheet , have you looked at Forumla One? Or ExtenXSL?

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 12:18 PM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?




Yansheng Lin wrote:
 To them, Online spreadsheet data-entry is a reasonable request.  They
don't want
 to change their ways of practise, what can we do?  They are paying us!

 Darn, life is so hard!

Can you embed an applet that replicates spreadsheet functionality into a
web page?





Erik


-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Yansheng Lin
No, too slow(hope 1.5 will improve the start-up time).  Beside we got the struts
framework set up for all other apps.  Can I use swing with struts:).  Hey, may
be that's a good idea.  After all, it all comes down to request/response and
plus session stuff.

Had a rough week, that's all.  Sometimes they don't understand the
difficulties/limitations.




-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 10:18 AM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?




Yansheng Lin wrote:
 To them, Online spreadsheet data-entry is a reasonable request.  They don't
want
 to change their ways of practise, what can we do?  They are paying us!
 
 Darn, life is so hard!

Can you embed an applet that replicates spreadsheet functionality into a 
web page?





Erik


-
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: order of bean form population

2003-07-18 Thread Craig R. McClanahan


On Fri, 18 Jul 2003, Joe Zendle wrote:

 Date: Fri, 18 Jul 2003 10:22:34 -0600
 From: Joe Zendle [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: order of bean form population

 This is probably a JSP question but here goes:

 What is the order in which bean properties are populated. Is it from 1st
 to last as defined in the class (assuming reflection is used)? Can I
 reliably use a property's value defined 1st to make a decision of how to
 populate a later attribute? I am trying to make a form that can be used
 to hold various business entities that share common attributes.


The only reasonable assumption to make is that it's undefined.  It ends up
being driven by the order the request parameter names are iterated through
from a HashMap, and that's essentially out of your control.  (See the
method RequestUtils.populate() for the gory details.)

Craig


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



RE: action mapping 'input' question

2003-07-18 Thread Michael Ruppin
Unless validation suceeds, this looks like an infinite
loop to me:

input=/ForgotPassword.do
path=/ForgotPassword 

m

--- Erez Efrati [EMAIL PROTECTED] wrote:
 I am using struts/tiles/validator in my application.
 
 Using the following configuration works fine, still
 I see that on the
 first invocation the form gets validated and I get
 validation errors. My
 ForgotPasswordAction action is used both for the
 INIT and the SUBMIT
 operations. The only solution I read about is
 putting 'validate'=false
 and control the invocation of the super.validate()
 in my code. Is this
 true?
 
 action name=ForgotPasswordForm 
   type=web.ForgotPasswordAction  
   validate=true 
   input=.forgotPassword 
   scope=request 
   path=/ForgotPassword 
 
   forward name=show path=.forgotPassword
 redirect=false /
 /action
 
 If I use the following:
 action name=ForgotPasswordForm 
   type=web.ForgotPasswordAction  
   validate=true 
   input=/ForgotPassword.do 
   scope=request 
   path=/ForgotPassword 
 
   forward name=show path=.forgotPassword
 redirect=false /
 /action
 
 Then I get the following error: (now it's endless...
 really so sorry :)
 
 javax.servlet.ServletException: Servlet execution
 threw an exception
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:269)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
 erChain.java:193)
   at

org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:19
 9)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:213)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
 erChain.java:193)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
 e.java:256)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
 e.java:191)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
 va:246)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:641)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
 5)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :180)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
 lve.java:171)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:641)
   at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
 :172)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:641)
   at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509
 )
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:641)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
 java:174)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:643)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 80)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
 4)
   at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
 onnection(Http11Protocol.java:392)
   at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
 5)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:619)
   at java.lang.Thread.run(Thread.java:536)
 
 
 root cause 
 
 java.lang.StackOverflowError
   at

org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
 HttpRequest.java:247)
   at


Re: order of bean form population

2003-07-18 Thread David Graham
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Fri, 18 Jul 2003, Joe Zendle wrote:
 
  Date: Fri, 18 Jul 2003 10:22:34 -0600
  From: Joe Zendle [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: order of bean form population
 
  This is probably a JSP question but here goes:
 
  What is the order in which bean properties are populated. Is it from
 1st
  to last as defined in the class (assuming reflection is used)? Can I
  reliably use a property's value defined 1st to make a decision of how
 to
  populate a later attribute? I am trying to make a form that can be
 used
  to hold various business entities that share common attributes.
 
 
 The only reasonable assumption to make is that it's undefined.  It ends
 up
 being driven by the order the request parameter names are iterated
 through
 from a HashMap, and that's essentially out of your control.  (See the
 method RequestUtils.populate() for the gory details.)

Also, the order the form elements are submitted via HTTP is undefined
although many browsers submit the fields in the order they are declared on
the form.

David

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread David Graham
--- Yansheng Lin [EMAIL PROTECTED] wrote:
 
 To them, Online spreadsheet data-entry is a reasonable request.  They
 don't want
 to change their ways of practise, what can we do?  

This implies that they are currently using an online spreadsheet program. 
Are they, or do they want you to build them one?  I would hand them a CD
with OpenOffice on it and tell them to have fun :-).

David

 They are paying us!
 
 Darn, life is so hard!
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Mark Galbreath
What's the issue?  They paying you, aren't they?  Be glad to have a job!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 12:54 PM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


--- Yansheng Lin [EMAIL PROTECTED] wrote:
 
 To them, Online spreadsheet data-entry is a reasonable request.  They 
 don't want to change their ways of practise, what can we do?

This implies that they are currently using an online spreadsheet program. 
Are they, or do they want you to build them one?  I would hand them a CD
with OpenOffice on it and tell them to have fun :-).

David

 They are paying us!
 
 Darn, life is so hard!
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

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



Scope Issues Between Struts Tags and JSTL

2003-07-18 Thread Hunter Hillegas
I am trying to use both Struts tags and JSTL in a page.

I have the following:

nested:iterate property=lineItems
!--
FS: c:out value=${fulfillmentStatus}/
SO: c:out value=${sampleOrigin}/
--
c:if test=${fulfillmentStatus == 'In Process'  sampleOrigin ==
'special_order'}
... THIS IS NEVER DISPLAYED SINCE JSTL TAGS CAN'T FIND VARS ...
/c:if
/nested:iterate

Now, my JSTL tags can't find these variables in any scope. How should I
properly address the data?

Thanks,
Hunter


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



RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Raible, Matt
We had the same requirement from our client - and we actually implemented
it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
columns, have tabs for different sheets - pretty slick IMO.  Of course, it's
an intranet app, so we require standards-compliant browsers
(http://webstandards.org/upgrade/).

I think you have to estimate how long it will take to develop (and maintain)
this, vs. a simpler system.  If they're willing to pay you for it - why not?
If you tell them it'll cost them $500,000 for the online spreadsheet vs.
$100,000 for the simpler version, they'll start to see the light.

HTH,

Matt

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 10:12 AM
To: 'Struts Users Mailing List'
Subject: [Friday] How far can we let the clients push us?



To them, Online spreadsheet data-entry is a reasonable request.  They don't
want
to change their ways of practise, what can we do?  They are paying us!

Darn, life is so 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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Erik Price


Raible, Matt wrote:
We had the same requirement from our client - and we actually implemented
it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
columns, have tabs for different sheets - pretty slick IMO.
That is cool.  DOM is unwieldy, but it's an incredibly powerful 
mechanism in web pages -- it really does add a ton of control.  What I'm 
curious, though, is what was done with this data after the users had 
entered it into the spreadsheet -- was every single cell a form field, 
or did you implode the cells into a big string and ship that to the server?



Erik

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


Re: dificult problem, preventing population (repost)

2003-07-18 Thread Sandeep Takhar
I suppose you would get the page expired if you are
using noCache...

So what do people do?  Do they just right their own
stuff.  On the application that we have built over the
last year - we have opened another window and with the
parameters passed to the open window we have removed
the menu lines.  However if the user hits backspace in
certain situations, this is equivalent to pressing the
back button.

I know the struts workflow extension proposes a
solution.  But what are people doing??  I guess that
is the original question, but the more I think about
it the more I'm curious to know what the options are.

I suppose what was mentioned before about using
mappings and subclassing ActionMapping may be the only
way?  (This is essentially what workflow does)

sandeep
--- Jing Zhou [EMAIL PROTECTED] wrote:
 Hi, Sandeep,
 
 There is no clean solution to this problem, not
 only in Struts but also in many others ...
 
 I wish there could be a simple way to disable
 the Back button. But browser vendors would
 say once it is disabled, who is responsible
 to enable it. There should be some better
 algorithm for this problem.
 
 Jing
 
 - Original Message - 
 From: Sandeep Takhar [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]; Jing
 Zhou [EMAIL PROTECTED]
 Sent: Thursday, July 17, 2003 12:35 PM
 Subject: Re: dificult problem, preventing population
 (repost)
 
 
  Ah... I see what you mean.
 
  Yes, not thinking that clearly, but I have not
 done it
  either so that is my excuse...
 
  So I think that to make this too complicated is
 not
  good.
 
  So the original problem states that when pressing
 the
  back button that they get back to the screen.  I
 am
  wondering right now that when the press the back
  button they should be in the submit state again
 and
  the token check should occur again?
 
 If the previous page is a submitted page, you would
 get
 Page has Expired  If the previous page is
 retrieved
 by an http get method, you would do a GET again.
 
 
  Sometimes I wish I could pick up the phone and
 sort
  these type of things out because I'm probably
 missing
  something again.
 
  sandeep
 
 
  --- Jing Zhou [EMAIL PROTECTED] wrote:
  
   - Original Message - 
   From: Sandeep Takhar
 [EMAIL PROTECTED]
   To: Struts Users Mailing List
   [EMAIL PROTECTED]
   Sent: Thursday, July 17, 2003 7:49 AM
   Subject: Re: dificult problem, preventing
 population
   (repost)
  
  
I think he meant isTokenValid().
   
Also the form tag will create the token and
 you
   can
look at it in the source.
   
You can check the token higher if you want
 (before
population) by placing it in one of these
 methods
   on
the requestProcessor..
  
   My analysis shows we can't simply check the
 token
   at processPreProcess method, as an example.
 Because
   the RequestProcessor doesn't known when it
 should
   check and when it should not.
  
   It could involve more complicated logics than
 what
   we can imagine to get it done here, although
   it is not all impossible.
  
   If someone would like to layout a detail
 algorithm
   here, I believe some parameters in action
 mappings
   should be used. But that is easier to create
 *holes*
   than ... That's why it is a *difficult* problem
 :-)
  
   Jing
  
   
(not sure logistically which one has the
 request
signature  more importantly which one makes
   sense)...
   
This is in order:
   
processMultipart
processPath
processLocale
processContent
processNoCache
processPreProcess * looks promising
processMapping
processRoles
processActionForm
processPopulate
   
1st and 3rd are normally done in the action
 class.
  
One that handles the display and the one that
 you
   are
submitting to.
   
sandeep
--- Adam Hardy
 [EMAIL PROTECTED]
wrote:
 I'm sure a quick look in the source code
 would
   give
 you what you want -
 try looking at isTokenValue() in Action.java

 Jing Zhou wrote:
  - Original Message - 
  From: Rob [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, July 16, 2003 6:57 PM
  Subject: dificult problem, preventing
   population
 (repost)
 
 
 
 I have the following scenario occuring.
 
 I have a form with several fields on it
 (the
 fields are sourced to a
 collection in an
 ActionForm). I have a button that allows
 the
 removal of fields from the
 form (items
 from the collection). If a user removes a
   field
 from the form and then
 double
 submits/clicks back and reloads then an
   exception
 is thrown from
 BeanUtils.populate()
 because it attempts to take details from
 the
   (now
 removed field) and
 populate it into
 the object that is stored in the position
 it
   was
 located in the
 collection.  Obviously
 since the collection is now smaller this
   results
 

RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Casey Forbes
We also had to write a web app which includes a spreadsheet-ish interface.
The fun starts when they want cells that contain calculations.
Welcome to javascript hell :)

Casey


On Fri, 18 Jul 2003, Raible, Matt said:

 We had the same requirement from our client - and we actually implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
 columns, have tabs for different sheets - pretty slick IMO.  Of course, it's
 an intranet app, so we require standards-compliant browsers
 (http://webstandards.org/upgrade/).

 I think you have to estimate how long it will take to develop (and maintain)
 this, vs. a simpler system.  If they're willing to pay you for it - why not?
 If you tell them it'll cost them $500,000 for the online spreadsheet vs.
 $100,000 for the simpler version, they'll start to see the light.

 HTH,

 Matt

 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 10:12 AM
 To: 'Struts Users Mailing List'
 Subject: [Friday] How far can we let the clients push us?



 To them, Online spreadsheet data-entry is a reasonable request.  They don't
 want
 to change their ways of practise, what can we do?  They are paying us!

 Darn, life is so 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: Scope Issues Between Struts Tags and JSTL

2003-07-18 Thread Chen, Gin
Remember that JSTL and struts are not the same.
Therefore, JSTL tags cant auto pick up the current element that a Struts tag
is looking at.
You should have: 

nested:iterate id=foo property=lineItems
!--
FS: c:out value=${foo.fulfillmentStatus}/
SO: c:out value=${foo.sampleOrigin}/
--
c:if test=${foo.fulfillmentStatus == 'In Process'  foo.sampleOrigin ==
'special_order'}
... THIS IS NEVER DISPLAYED SINCE JSTL TAGS CAN'T FIND VARS ...
/c:if
/nested:iterate   

PS: (Not sure how you even get it to show up without the id attribute?)

-Tim

-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 1:20 PM
To: Struts List
Subject: Scope Issues Between Struts Tags and JSTL


I am trying to use both Struts tags and JSTL in a page.

I have the following:



Now, my JSTL tags can't find these variables in any scope. How should I
properly address the data?

Thanks,
Hunter


-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread David Graham
--- Raible, Matt [EMAIL PROTECTED] wrote:
 We had the same requirement from our client - and we actually
 implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort
 by
 columns, have tabs for different sheets - pretty slick IMO.  Of course,
 it's
 an intranet app, so we require standards-compliant browsers
 (http://webstandards.org/upgrade/).
 
 I think you have to estimate how long it will take to develop (and
 maintain)
 this, vs. a simpler system.  If they're willing to pay you for it - why
 not?
 If you tell them it'll cost them $500,000 for the online spreadsheet vs.
 $100,000 for the simpler version, they'll start to see the light.

Hmm, that's a tough choice.  OpenOffice for $0 or online spreadsheet for
$500,000?  I wonder which one they'll pick.

David 

 
 HTH,
 
 Matt
 
 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 10:12 AM
 To: 'Struts Users Mailing List'
 Subject: [Friday] How far can we let the clients push us?
 
 
 
 To them, Online spreadsheet data-entry is a reasonable request.  They
 don't
 want
 to change their ways of practise, what can we do?  They are paying us!
 
 Darn, life is so 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]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Scope Issues Between Struts Tags and JSTL

2003-07-18 Thread Hunter Hillegas
Thanks. This did the trick. Just didn't see this documented anywhere.

 From: Chen, Gin [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Fri, 18 Jul 2003 13:41:26 -0400
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Scope Issues Between Struts Tags and JSTL
 
 Remember that JSTL and struts are not the same.
 Therefore, JSTL tags cant auto pick up the current element that a Struts tag
 is looking at.
 You should have: 
 
 nested:iterate id=foo property=lineItems
 !--
 FS: c:out value=${foo.fulfillmentStatus}/
 SO: c:out value=${foo.sampleOrigin}/
 --
 c:if test=${foo.fulfillmentStatus == 'In Process'  foo.sampleOrigin ==
 'special_order'}
 ... THIS IS NEVER DISPLAYED SINCE JSTL TAGS CAN'T FIND VARS ...
 /c:if
 /nested:iterate
 
 PS: (Not sure how you even get it to show up without the id attribute?)
 
 -Tim
 
 -Original Message-
 From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 1:20 PM
 To: Struts List
 Subject: Scope Issues Between Struts Tags and JSTL
 
 
 I am trying to use both Struts tags and JSTL in a page.
 
 I have the following:
 
 
 
 Now, my JSTL tags can't find these variables in any scope. How should I
 properly address the data?
 
 Thanks,
 Hunter
 
 
 -
 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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Vic Cekvencih
baseBeans did it for a client we already built a MVC Struts app that 
grew.

They wanted Excel to be the GUI as well (so same info in JSP and Excell)
Design was PocketSoap (on baseBeans.com cheat sheets) via Excel VBA 
talking to Struts FormBeans via Axis. Nice to be MVC.

They were very happy with impplementation.
.V
Raible, Matt wrote:
We had the same requirement from our client - and we actually implemented
it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
columns, have tabs for different sheets - pretty slick IMO.  Of course, it's
an intranet app, so we require standards-compliant browsers
(http://webstandards.org/upgrade/).
I think you have to estimate how long it will take to develop (and maintain)
this, vs. a simpler system.  If they're willing to pay you for it - why not?
If you tell them it'll cost them $500,000 for the online spreadsheet vs.
$100,000 for the simpler version, they'll start to see the light.
HTH,

Matt

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 10:12 AM
To: 'Struts Users Mailing List'
Subject: [Friday] How far can we let the clients push us?


To them, Online spreadsheet data-entry is a reasonable request.  They don't
want
to change their ways of practise, what can we do?  They are paying us!
Darn, life is so hard!
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced a href =baseBeans.comStruts Training/a and project 
recovery in North East.
Open Source a href =baseBeans.comContent Management/a  basicPortal 
sofware
Best practicea href =baseBeans.comStruts Support/a v.1.1 helper 
ScafflodingXPress



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


RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Yansheng Lin
Thanks Mark!  You made me feel much better.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 11:11 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [Friday] How far can we let the clients push us?


What's the issue?  They paying you, aren't they?  Be glad to have a job!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 12:54 PM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


--- Yansheng Lin [EMAIL PROTECTED] wrote:
 
 To them, Online spreadsheet data-entry is a reasonable request.  They 
 don't want to change their ways of practise, what can we do?

This implies that they are currently using an online spreadsheet program. 
Are they, or do they want you to build them one?  I would hand them a CD
with OpenOffice on it and tell them to have fun :-).

David

 They are paying us!
 
 Darn, life is so hard!
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

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



Action Under a Tile?

2003-07-18 Thread Aaron Longwell
I am intermediately experienced with Struts, but I hit a brick wall 
today trying to solve the following problem:

I am about 90% finished with a web app for a client. In discussions 
yesterday they decided to add an at-a-glance section to each page of 
the web site. You can think of this as a news feed that will sit on the 
left sidebar, it will have the same information on every page, but 
generating the information will require some business logic, and thus an 
Action.

I can easily add the layout for this into the tile that services the 
pages on the site It will be a simple collection to iterate over, so 
the JSP is simple as well.

The Complicated Part: adding a collection to the request scope for each 
of my existing actions. There are 15 actions existing.

I dreamed that it would be possible to add a tiles definition that 
included the result of an Action as opposed to a JSP (well, more 
accurately, included a JSP after being sent through an action first). 
Essentially, this means 2 actions are executed on each request the 
request's action... and the action to populate the data sidebar.

I tried to do this, by using a tag like this:
tiles:put name=at-a-glance value=/common/at-a-glance.do/
I get the following error: Exception in /common/at-a-glance.do Cannot 
forward after response has been committed

I am intermediately experienced with servlets, and I know that servlet 
includes are somewhat possible... but I'm obviously not experienced 
enough to solve this problem. Thanks for your help!

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


RE: Action Under a Tile?

2003-07-18 Thread Mike Jasnowski
We have a tile definition that does something similar, it includes a JSP
with an import of another JSP on it
The JSP the tile points to has this code on it

c:import url=/url/

Additionally the url is parameterized via tiles controller, so the actual
tag usage looks like this:

c:import url=${view.form}/



Which includes the contents there.

Not sure if this will solve your problem.

-Original Message-
From: Aaron Longwell [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:04 PM
To: Struts-User
Subject: Action Under a Tile?


I am intermediately experienced with Struts, but I hit a brick wall
today trying to solve the following problem:

I am about 90% finished with a web app for a client. In discussions
yesterday they decided to add an at-a-glance section to each page of
the web site. You can think of this as a news feed that will sit on the
left sidebar, it will have the same information on every page, but
generating the information will require some business logic, and thus an
Action.

I can easily add the layout for this into the tile that services the
pages on the site It will be a simple collection to iterate over, so
the JSP is simple as well.

The Complicated Part: adding a collection to the request scope for each
of my existing actions. There are 15 actions existing.

I dreamed that it would be possible to add a tiles definition that
included the result of an Action as opposed to a JSP (well, more
accurately, included a JSP after being sent through an action first).
Essentially, this means 2 actions are executed on each request the
request's action... and the action to populate the data sidebar.

I tried to do this, by using a tag like this:
tiles:put name=at-a-glance value=/common/at-a-glance.do/

I get the following error: Exception in /common/at-a-glance.do Cannot
forward after response has been committed

I am intermediately experienced with servlets, and I know that servlet
includes are somewhat possible... but I'm obviously not experienced
enough to solve this problem. Thanks for your help!


-
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: Action Under a Tile?

2003-07-18 Thread K.C. Baltz
I suspect the problem is somehow specific to your at-a-glance action.   
Is it possible that it's trying to redirect?

I know that it's possible to do:

tiles:insert page=/someaction.do /

which is basically what you're trying to do I assume.

K.C.

Aaron Longwell wrote:

I am intermediately experienced with Struts, but I hit a brick wall 
today trying to solve the following problem:

I am about 90% finished with a web app for a client. In discussions 
yesterday they decided to add an at-a-glance section to each page of 
the web site. You can think of this as a news feed that will sit on 
the left sidebar, it will have the same information on every page, but 
generating the information will require some business logic, and thus 
an Action.

I can easily add the layout for this into the tile that services the 
pages on the site It will be a simple collection to iterate over, 
so the JSP is simple as well.

The Complicated Part: adding a collection to the request scope for 
each of my existing actions. There are 15 actions existing.

I dreamed that it would be possible to add a tiles definition that 
included the result of an Action as opposed to a JSP (well, more 
accurately, included a JSP after being sent through an action first). 
Essentially, this means 2 actions are executed on each request the 
request's action... and the action to populate the data sidebar.

I tried to do this, by using a tag like this:
tiles:put name=at-a-glance value=/common/at-a-glance.do/
I get the following error: Exception in /common/at-a-glance.do Cannot 
forward after response has been committed

I am intermediately experienced with servlets, and I know that servlet 
includes are somewhat possible... but I'm obviously not experienced 
enough to solve this problem. Thanks for your help!

-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Yansheng Lin

Haha, that's what I did with my table when I have to submit the whole table at
one.  Old string + new string.  

-
 Javascript: sorry, I don't know you. what's your name again?
 JSP: jsp, stands for javaserver page.
 Javascript: nope, sorry buddy.  Object not found
-



-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 11:29 AM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


Raible, Matt wrote:
 We had the same requirement from our client - and we actually implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
 columns, have tabs for different sheets - pretty slick IMO.

That is cool.  DOM is unwieldy, but it's an incredibly powerful 
mechanism in web pages -- it really does add a ton of control.  What I'm 
curious, though, is what was done with this data after the users had 
entered it into the spreadsheet -- was every single cell a form field, 
or did you implode the cells into a big string and ship that to the server?



Erik


-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Mike Jasnowski
You could also bind the JS to an applet which just pushes the updates back
to the server, the applet is not visible on the page.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:15 PM
To: 'Struts Users Mailing List'
Subject: RE: [Friday] How far can we let the clients push us?



Haha, that's what I did with my table when I have to submit the whole table
at
one.  Old string + new string.

-
 Javascript: sorry, I don't know you. what's your name again?
 JSP: jsp, stands for javaserver page.
 Javascript: nope, sorry buddy.  Object not found
-



-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: July 18, 2003 11:29 AM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


Raible, Matt wrote:
 We had the same requirement from our client - and we actually implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
 columns, have tabs for different sheets - pretty slick IMO.

That is cool.  DOM is unwieldy, but it's an incredibly powerful
mechanism in web pages -- it really does add a ton of control.  What I'm
curious, though, is what was done with this data after the users had
entered it into the spreadsheet -- was every single cell a form field,
or did you implode the cells into a big string and ship that to the server?



Erik


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



Nested iterator and radio button name

2003-07-18 Thread Zeswitz, Andrew
I'm having an issue getting radio buttons on a JSP to be named properly
using the iterate tags available in Struts 1.1.  I have a list of
questions; each question has a list of answers.  

The code is [supposed to be] looping through the primary list
(question), writing the pertinent data, performing a secondary loop
through the appropriate answers for that question and writing the
answers in the form of a radio button control.

The radio button naming should be something like the following:
Question[0].answer value=Yes 
Question[0].answer value=No

Instead, I'm receiving 
Question[0].answer value=Yes 
Question[1].answer value=No

The latter is not valid.

Here's the code.  Any thoughts?

Questions is an Array that is populated in the page context by my
LoadForm action.


nested:iterate id=sQuestion
name=questions
type=xxx..xxx.xxx.common.dto.QuestionDTO
indexId=index
 nested:root name=sQuestion
tr valign=top
td%= index.intValue() + 1 %/td
tdnested:write name=sQuestion
property=question//td
/tr
tr
td/td
td

nested:iterate id=validResponse
name=sQuestion
property=validResponseList
nested:root name=validResponse
%  //if a long list, display vertically,
otherwise horiz
  String sepChar =
nbsp;nbsp;nbsp;;
if(
sQuestion.getValidResponseList().size()  2)
sepChar = br;
%
nested:radio name=sQuestion
  property=answer
  value=%=validResponse%
 
indexed=true/%=validResponse + sepChar%
/nested:root
   /nested:iterate


/td
/tr
 /nested:root
/nested:iterate

NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the sender 
immediately and delete the original. Any other use of this e-mail by you is prohibited.

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



Re: Action Under a Tile?

2003-07-18 Thread Aaron Longwell
KC,

I tried your setup, and I double-checked to make sure my forward said 
redirect=false. I am still getting the same error: Cannot forward 
after response has been committed.

Are you sure that's a legal process?

Here's the top of the stack trace:
2003-07-18 12:33:42 ApplicationDispatcher[] Servlet.service() for 
servlet StrutsAction threw exception
java.lang.IllegalStateException: Cannot forward after response has been 
committed
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:368)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
   at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
   at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Thanks,
Aaron
K.C. Baltz wrote:

I suspect the problem is somehow specific to your at-a-glance 
action.   Is it possible that it's trying to redirect?

I know that it's possible to do:

tiles:insert page=/someaction.do /

which is basically what you're trying to do I assume.

K.C.

Aaron Longwell wrote:

I am intermediately experienced with Struts, but I hit a brick wall 
today trying to solve the following problem:

I am about 90% finished with a web app for a client. In discussions 
yesterday they decided to add an at-a-glance section to each page 
of the web site. You can think of this as a news feed that will sit 
on the left sidebar, it will have the same information on every page, 
but generating the information will require some business logic, and 
thus an Action.

I can easily add the layout for this into the tile that services the 
pages on the site It will be a simple collection to iterate over, 
so the JSP is simple as well.

The Complicated Part: adding a collection to the request scope for 
each of my existing actions. There are 15 actions existing.

I dreamed that it would be possible to add a tiles definition that 
included the result of an Action as opposed to a JSP (well, more 
accurately, included a JSP after being sent through an action first). 
Essentially, this means 2 actions are executed on each request 
the request's action... and the action to populate the data sidebar.

I tried to do this, by using a tag like this:
tiles:put name=at-a-glance value=/common/at-a-glance.do/
I get the following error: Exception in /common/at-a-glance.do Cannot 
forward after response has been committed

I am intermediately experienced with servlets, and I know that 
servlet includes are somewhat possible... but I'm obviously not 
experienced enough to solve this problem. Thanks for your help!

-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Jing Zhou
Hi, Yansheng,

The slow start-up time (of applets) has been improved significantly in the
latest release J2SE 1.4.2. A high quality applet will also find ways to
improve the initialization time as we do in our product, Carrier. It is
available for download at http://www.netspread.com

In the universe of data entries, there are two kinds of data structures
that business people are using: tabular data and hierarchical data.
A spreadsheet can handle tabular data with easy, but it is
very difficult to handle hierarchical data, such as the data in Ant project
configurations with many levels of nested elements.

The algorithms of Carrier Wheels solve the puzzle and are able to
handle both data structures completely on Internet. Our phased
validation model could be used to ensure data entries for every row
are valid as well as for every nested form.

If you look at our demo IRS Form 2441, you will find it is a typical
spreadsheet like application. With one custom event handler to
calculate the taxes, you compose the application completely within
the Carrier client environment. The data entries are automatically
persisted in database tables and restored back in hyper form beans
by default.

What makes Carrier different than a spreadsheet is its ability to
manage hundreds or thousands web applications on Internet.
It is the first Internet IDE in its concept. End users could even
use it to exchange data entries in self-designed web forms
without the need of writing single line of codes.

If anyone would like to test such capabilities on Internet, send email
to [EMAIL PROTECTED] Our live demo has been tested
in many different client environments, like Fortune 500 corporate.
Life should not be that hard, it is beautiful :-)

Carrier works with existing Struts applications within one web
application. It is intended to solve problems in solution spaces to
help Struts users to quickly get their job done. The source codes
for Carrier Wheels are open. Also free volume redistribution
licenses are available for pilot users/consultants.

Jing
Netspread Carrier
http://www.netspread.com



- Original Message - 
From: Yansheng Lin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:28 AM
Subject: RE: [Friday] How far can we let the clients push us?


 No, too slow(hope 1.5 will improve the start-up time).  Beside we got the
struts
 framework set up for all other apps.  Can I use swing with struts:).  Hey,
may
 be that's a good idea.  After all, it all comes down to request/response
and
 plus session stuff.

 Had a rough week, that's all.  Sometimes they don't understand the
 difficulties/limitations.




 -Original Message-
 From: Erik Price [mailto:[EMAIL PROTECTED]
 Sent: July 18, 2003 10:18 AM
 To: Struts Users Mailing List
 Subject: Re: [Friday] How far can we let the clients push us?




 Yansheng Lin wrote:
  To them, Online spreadsheet data-entry is a reasonable request.  They
don't
 want
  to change their ways of practise, what can we do?  They are paying us!
 
  Darn, life is so hard!

 Can you embed an applet that replicates spreadsheet functionality into a
 web page?





 Erik


 -
 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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Adam Levine
Somewhere about 6months ago I saw a demo, danged if I can remember who it 
was, for software that wrapped around your swing application and delivered 
it in html.   was quite slick, it handled the conversion for almost every 
component quite well -- the demo site used the standard Java SwingSet 
application.

From: Yansheng Lin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [Friday]  How far can we let the clients push us?
Date: Fri, 18 Jul 2003 12:14:51 -0600
Haha, that's what I did with my table when I have to submit the whole table 
at
one.  Old string + new string.

-
 Javascript: sorry, I don't know you. what's your name again?
 JSP: jsp, stands for javaserver page.
 Javascript: nope, sorry buddy.  Object not found
-


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: July 18, 2003 11:29 AM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?
Raible, Matt wrote:
 We had the same requirement from our client - and we actually implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
 columns, have tabs for different sheets - pretty slick IMO.
That is cool.  DOM is unwieldy, but it's an incredibly powerful
mechanism in web pages -- it really does add a ton of control.  What I'm
curious, though, is what was done with this data after the users had
entered it into the spreadsheet -- was every single cell a form field,
or did you implode the cells into a big string and ship that to the server?


Erik

-
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]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Mark Galbreath
I'm serious, dude!  I know many unemployed developers right now.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 1:59 PM
To: 'Struts Users Mailing List'
Subject: RE: [Friday] How far can we let the clients push us?


Thanks Mark!  You made me feel much better.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 11:11 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [Friday] How far can we let the clients push us?


What's the issue?  They paying you, aren't they?  Be glad to have a job!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 12:54 PM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


--- Yansheng Lin [EMAIL PROTECTED] wrote:
 
 To them, Online spreadsheet data-entry is a reasonable request.  They
 don't want to change their ways of practise, what can we do?

This implies that they are currently using an online spreadsheet program. 
Are they, or do they want you to build them one?  I would hand them a CD
with OpenOffice on it and tell them to have fun :-).

David

 They are paying us!
 
 Darn, life is so hard!
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

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



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



Re: [OT] (SOLVED) Redirecting forwards under WAS 4.0.4

2003-07-18 Thread José Ventura
Sorry for the delay -- it worked!

Thanks, Susan! You're a life-saver!

And here I was almost making a workaround by duplicating every single
mapping in my struts-config (I'd remove them someday. No, really, I
would. I just needed to get it working for the time being ;)

[]'s
- ventura

- Original Message -
From: Susan Bradeen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:25 PM
Subject: Re: [OT] Redirecting forwards under WAS 4.0.4


 On 07/16/2003 08:37:00 PM José Ventura wrote:

  I'm back with my usual bizarre and weird grotesqueries under Websphere
  4.0. I've even marked this one off-topic to annoy less people!
 
  When I use a forward from within an Action, via the following snippet,
  it works:
 
  fwd = /editQuestionnaire.do?qId= + qId;
  return new ActionForward( fwd );
 
  If I use a redirecting forward instead, my app bites the dust:
 
  fwd = /editQuestionnaire.do?qId= + qId;
  return new ActionForward( fwd, true ); // redirect == true
 
  In the first case, Struts finds my action mapping (/editQuestionnaire)
  and everything works fine. In the redirecting forward, Struts complains
  it can't find a mapping for /inquirer/editQuestionnaire. This is
  evident -- there is a mapping for /editQuestionnaire, with no trailing
  /inquirer, wich is the context-root for my app.
 
  Somehow, Struts is receiving the full URL for the redirect, instead
  of only the /edit part.
 
  As you may have guessed, it works fine on Tomcat.
 
  I will ask if anyone has seen this before, but since I suspect I'm
  making a huge yet subtle mistake somewhere (Websphere can't be THAT
  idiot, now can it?), I won't expect much.

 LOL! Nope, its not you. This behavior has been witness by a few people on
 this list including myself. My app has to support WAS 4.0.3. You can
 search the archives for Websphere and you should dig up some posts related
 to this. Since you are running 4.0.4 you should already have the fix pack
 that supposedly corrected this, but you also need to set a system property
 to make WAS redirect properly. I think the system property is

 com.ibm.webshpere.sendredirect.compliance=true

 Hope this helps,

 Susan Bradeen

 
  []'s
  - ventura

 -
 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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Raible, Matt
Every cell contains a form element (i.e. input type=text), and then using
indexed properties, they're submitted just like a regular form.  Validation
is done in the validate() method of the form, as usual.

Matt

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:29 AM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?




Raible, Matt wrote:
 We had the same requirement from our client - and we actually implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
 columns, have tabs for different sheets - pretty slick IMO.

That is cool.  DOM is unwieldy, but it's an incredibly powerful 
mechanism in web pages -- it really does add a ton of control.  What I'm 
curious, though, is what was done with this data after the users had 
entered it into the spreadsheet -- was every single cell a form field, 
or did you implode the cells into a big string and ship that to the server?



Erik


-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Yansheng Lin

50% of them will pick the second choice:).  

My 0.001 cents,

IMO, if everyone uses open-source, companies(esp medium and small sized) can
afford to hire a lot of real good programmers to write better products.  But a
good buddy of mine(Microsoft certified) replies that it's because of the
tremendously confusing collection of their technologies, more people are hired.

Bah, endless argument!


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 11:45 AM
To: Struts Users Mailing List
Subject: RE: [Friday] How far can we let the clients push us?


--- Raible, Matt [EMAIL PROTECTED] wrote:
 We had the same requirement from our client - and we actually
 implemented
 it!  Using JavaScript and the DOM, we're able to add/delete rows, sort
 by
 columns, have tabs for different sheets - pretty slick IMO.  Of course,
 it's
 an intranet app, so we require standards-compliant browsers
 (http://webstandards.org/upgrade/).
 
 I think you have to estimate how long it will take to develop (and
 maintain)
 this, vs. a simpler system.  If they're willing to pay you for it - why
 not?
 If you tell them it'll cost them $500,000 for the online spreadsheet vs.
 $100,000 for the simpler version, they'll start to see the light.

Hmm, that's a tough choice.  OpenOffice for $0 or online spreadsheet for
$500,000?  I wonder which one they'll pick.

David 

 
 HTH,
 
 Matt
 
 -Original Message-
 From: Yansheng Lin [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 10:12 AM
 To: 'Struts Users Mailing List'
 Subject: [Friday] How far can we let the clients push us?
 
 
 
 To them, Online spreadsheet data-entry is a reasonable request.  They
 don't
 want
 to change their ways of practise, what can we do?  They are paying us!
 
 Darn, life is so 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]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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: [Friday] How far can we let the clients push us?

2003-07-18 Thread Yansheng Lin
Yeah I know. That's why I have been working to get that app out this week.

But again, if we save money by making sane decisions, maybe a lot of our buddies
will get hired sooner.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 12:58 PM
To: 'Struts Users Mailing List'
Subject: RE: [Friday] How far can we let the clients push us?


I'm serious, dude!  I know many unemployed developers right now.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 1:59 PM
To: 'Struts Users Mailing List'
Subject: RE: [Friday] How far can we let the clients push us?


Thanks Mark!  You made me feel much better.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 11:11 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [Friday] How far can we let the clients push us?


What's the issue?  They paying you, aren't they?  Be glad to have a job!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 12:54 PM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


--- Yansheng Lin [EMAIL PROTECTED] wrote:
 
 To them, Online spreadsheet data-entry is a reasonable request.  They
 don't want to change their ways of practise, what can we do?

This implies that they are currently using an online spreadsheet program. 
Are they, or do they want you to build them one?  I would hand them a CD
with OpenOffice on it and tell them to have fun :-).

David

 They are paying us!
 
 Darn, life is so hard!
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

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



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



Which JSTL impl?

2003-07-18 Thread Herrick, Mike
Hi, 

I'm starting to use JSTL and am wondering which JSTL impl is my best bet.

I know of the Jakarta one and the one that ships with the Sun Web Services Dev Kit.

Thanks in advance,

Mike

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



[Friday] How do you describe the greatest general?

2003-07-18 Thread Jing Zhou
He defeats every opponent in enemy's camp.

How do you describe the greatest politician?



Jing

Re: Which JSTL impl?

2003-07-18 Thread David Graham
--- Herrick, Mike [EMAIL PROTECTED] wrote:
 Hi, 
 
 I'm starting to use JSTL and am wondering which JSTL impl is my best
 bet.
 
 I know of the Jakarta one and the one that ships with the Sun Web
 Services Dev Kit.

I use the Jakarta version without problems.

David

 
 Thanks in advance,
 
 Mike
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: [Friday] How do you describe the greatest general?

2003-07-18 Thread Jeff Kyser
blind fornicating deer

On Friday, July 18, 2003, at 02:31  PM, Jing Zhou wrote:

He defeats every opponent in enemy's camp.

How do you describe the greatest politician?



Jing


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


RE: [Friday] How far can we let the clients push us?

2003-07-18 Thread Mike Jasnowski
I saw that product also, probably at least a year ago. But it's name and a
Google search escape me at the moment.

-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: RE: [Friday] How far can we let the clients push us?


Somewhere about 6months ago I saw a demo, danged if I can remember who it
was, for software that wrapped around your swing application and delivered
it in html.   was quite slick, it handled the conversion for almost every
component quite well -- the demo site used the standard Java SwingSet
application.

From: Yansheng Lin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [Friday]  How far can we let the clients push us?
Date: Fri, 18 Jul 2003 12:14:51 -0600


Haha, that's what I did with my table when I have to submit the whole table
at
one.  Old string + new string.

-
  Javascript: sorry, I don't know you. what's your name again?
  JSP: jsp, stands for javaserver page.
  Javascript: nope, sorry buddy.  Object not found
-



-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: July 18, 2003 11:29 AM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


Raible, Matt wrote:
  We had the same requirement from our client - and we actually implemented
  it!  Using JavaScript and the DOM, we're able to add/delete rows, sort by
  columns, have tabs for different sheets - pretty slick IMO.

That is cool.  DOM is unwieldy, but it's an incredibly powerful
mechanism in web pages -- it really does add a ton of control.  What I'm
curious, though, is what was done with this data after the users had
entered it into the spreadsheet -- was every single cell a form field,
or did you implode the cells into a big string and ship that to the server?



Erik


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

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



  1   2   >