Re: CSS Question

2002-07-16 Thread slickdev

na... just use tables.
- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 7:31 PM
Subject: Re: CSS Question


> That's pretty neat :-)
>
> Jacob Hookom wrote:
>
> >http://www.milonic.co.uk/menu/
> >
> >Jacob Hookom
> >CS Student
> >University of Wisconsin, Eau Claire
> >===
> >http://www.swanked.net
> >you're not hip enough yet
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Stxx opencode

2002-07-16 Thread Konstantina Stamopoulou

Hi Jeff,
I have tried everything. I used Tomcat4.0.4 and I got the error that I wote
in my previous mail.
I used Tomcat4.1.7 and while it was loading the apps I got the following
error in the console:

WebappClassLoader:
validateJarFile(C:\jakarta\jakarta-tomcat-4.1.7\webapps\stxx-
example\WEB-INF\lib\orion.jar) - jar not loaded. See Servlet Spec 2.3,
section 9
.7.2. Offending class: javax/servlet/Servlet.class
WebappClassLoader:
validateJarFile(C:\jakarta\jakarta-tomcat-4.1.7\webapps\stxx-
example\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3,
section
 9.7.2. Offending class: javax/servlet/Servlet.class

and in the browser I got the following exception.

java.lang.NoSuchMethodError
 at
com.oroad.stxx.action.ActionServlet.processApplicationResources(ActionServle
t.java:814)
 at com.oroad.stxx.action.ActionServlet.initStxx(ActionServlet.java:760)
 at com.oroad.stxx.action.ActionServlet.init(ActionServlet.java:104)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)

I' using servlet2.3 API- I though that caused the problem - but obviously it
is something else. I haven't change the tomcat's conf files and I have put
the stxx.jar in lib dir webapps. What am I missing?

Konstantina




- Original Message -
From: "Jeff Pennal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 10:14 PM
Subject: Re: Stxx opencode


> Konstantina,
>
> People have had this error message before and it is usually the caused
> by one of two things.
>
> 1. Use only Tomcat 3.3+ or 4.04+
> 2. If you are putting the stxx-example.jar file in the Tomcat webapps
> directory, you will need to make sure that all the correct JAR's that
> stxx needs to run are in a "lib" direction under tomcat.
>
> For details on the required JAR's check out
> http://www.openroad.ca/opencode/stxx/download.html
>
> Andrew Hill wrote:
> > Have a look in the log file to see if you can pin down the actual error
that
> > occured, as if an exception is thrown when initialising stuff, thats the
> > message you get.
> >
> > -Original Message-
> > From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 16, 2002 20:00
> > To: Struts Users Mailing List
> > Subject: Stxx opencode
> >
> >
> > Hello,
> > I have just downloaded the stxx package and I tried to run the
stxx-example
> > application. But unfortunately I had no luck. I run it with tomcat-4.0.4
> > and tomcat-3.2.4 but I got the following exception.
> >
> > Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently
> > unavailable
> >
>
> --
--
> > 
> >
> > type Status report
> >
> > message Servlet action is currently unavailable
> >
> > description The requested service (Servlet action is currently
unavailable)
> > is not currently available.
> >
> >
>
> --
--
> > 
> >
> >
> >
> > I find stxx very flexible and since I have worked with struts I would be
> > very interetsed in using it for my application development. So if anyone
can
> > help me I would be gradeful.
> >
> > Thank you in advance,
> > Konstantina
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
>
>
> --
> Jeff Pennal p:604-694-0554(x107)
> Senior Software Developer   f:604-694-0558
> Openroad Communications e:[EMAIL PROTECTED]
> Vancouver, BC
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem passing thevalue

2002-07-16 Thread SATISH.T

Hi
Did'nt quite get what u r trying to say, btw if u meant u r setting some
properties of ur form bean with some values and want them in ur jsp ,
then its normally done as 
Html:  property=
For eg  .
Do explain clearly if it sth else.
Regs
satish



-Original Message-
From: Adarsh [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 17, 2002 11:19 AM
To: Struts Users Mailing List
Subject: Problem passing thevalue

Hi all,
I am taking some value in the form elements and getting the value in the
next page.but for that i am usiung .Is there any struts
tag
for the same..
Thanks in advance
Adarsh Gupta
Software Engineer
Patni Computer Systems Limited
SDF-7, 4th Floor, Unit 17, SEEPZ
Tel : (022)-8290479/8291454  Extn : 5741
Mobile : 9820224341
www.patni.com
World-Wide Partnerships.World-Class Solutions.





**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Problem passing thevalue

2002-07-16 Thread Adarsh

Hi all,
I am taking some value in the form elements and getting the value in the
next page.but for that i am usiung .Is there any struts tag
for the same..
Thanks in advance
Adarsh Gupta
Software Engineer
Patni Computer Systems Limited
SDF-7, 4th Floor, Unit 17, SEEPZ
Tel : (022)-8290479/8291454  Extn : 5741
Mobile : 9820224341
www.patni.com
World-Wide Partnerships.World-Class Solutions.





RE: How do I pass value

2002-07-16 Thread Gopalakrishnan Rangaswamy

Hi Radhakrishnan

Your imageFormAction, has to call the business tier logic which
generates the filename dynamically, then in your action class you can
set the file name as a property of formbean(imageForm), the jsp will
pick up this file name property from formbean.

Hope this clarifies.

Gopal

-Original Message-
From: Radhakrishnan R [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: How do I pass value


I am new to struts and currently trying to test the following scenario.

After submitting a form, a image has to be displayed to the user. The
image
is dynamically generated.The image file name is generated by the
business
tier.As a part of the submission process, I have an action bean , action
and
business logic class. I also have a forward for success.

  

  





In other words after the image.jsp is processed, I want to invoke the
showimage.jsp. This jsp file displays the image using .

The problem I have is how do I pass the filename generated by the
business(model) tier
to showimage.jsp.

Any help will be appreciated.

Thanks in advance


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts Tabs Example Error

2002-07-16 Thread Peggy Davidson

Yep, should have included that info, sorry. It's a nightly build,
jakarta-struts-20020715.tar.gz.  All of the other examples and tutorials
appear to work fine.  I am trying to run it from  the index.jsp located in
tiles-documentation/examples/index.jsp

Thanks,
Peggy

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 12:22 AM
To: Struts Users Mailing List
Subject: Re: Struts Tabs Example Error

Which version are you using?  Is this a 1.0.2 distribution?  ... 1.1beta
distribution?  ... nightly build?

I've had problems with some of the tiles stuff in the 1.1beta
distribution.  There's some heavy rearranging going on.  I don't recall
having any problems with that particular sample though - not the tabs
anyway.  Still, more information would help someone come up with a
solution, or, at least, something else for you to try.

Regards,

Eddie

Peggy Davidson wrote:

>Hi, in researching the mailing lists I did see the reference to the tab
>example included in the tiles distribution but when I try to use the either
>the tabs or tab example (tiles-documentation/examples/tabs.jsp or
>tiles-documentation/examples/summariesTabs.jsp) I am getting the following
>error: Has anyone run into this and knows off-hand what the fix is or is
>there possibly another tab example I can reference.  Thank you in advance.
>Peggy
>
>java.lang.NullPointerException
>   at
/layouts/tabsLayout.jsp._jspService(/layouts/tabsLayout.jsp.java:151)
>(JSP page line 36)
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Tabs Example Error

2002-07-16 Thread Eddie Bush

Which version are you using?  Is this a 1.0.2 distribution?  ... 1.1beta 
distribution?  ... nightly build?

I've had problems with some of the tiles stuff in the 1.1beta 
distribution.  There's some heavy rearranging going on.  I don't recall 
having any problems with that particular sample though - not the tabs 
anyway.  Still, more information would help someone come up with a 
solution, or, at least, something else for you to try.

Regards,

Eddie

Peggy Davidson wrote:

>Hi, in researching the mailing lists I did see the reference to the tab
>example included in the tiles distribution but when I try to use the either
>the tabs or tab example (tiles-documentation/examples/tabs.jsp or
>tiles-documentation/examples/summariesTabs.jsp) I am getting the following
>error: Has anyone run into this and knows off-hand what the fix is or is
>there possibly another tab example I can reference.  Thank you in advance.
>Peggy
>
>java.lang.NullPointerException
>   at /layouts/tabsLayout.jsp._jspService(/layouts/tabsLayout.jsp.java:151)
>(JSP page line 36)
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts Tabs Example Error

2002-07-16 Thread Peggy Davidson

Hi, in researching the mailing lists I did see the reference to the tab
example included in the tiles distribution but when I try to use the either
the tabs or tab example (tiles-documentation/examples/tabs.jsp or
tiles-documentation/examples/summariesTabs.jsp) I am getting the following
error: Has anyone run into this and knows off-hand what the fix is or is
there possibly another tab example I can reference.  Thank you in advance.
Peggy

java.lang.NullPointerException
at /layouts/tabsLayout.jsp._jspService(/layouts/tabsLayout.jsp.java:151)
(JSP page line 36)






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HOW TO: properly run client in JBOSS 3.0

2002-07-16 Thread Boney Sze

hello,

I will ask some help from you again.
I am having problems running a client properly.

the book i am reading (WROX) uses a jboss-2.2.2
version and the command line is like...

\BIN\JAVA -classpath
%JBOSS_HOME%\client\jnp-client.jar;%JBOSS_HOME%\client\jboss-client.jar;%JBOSS_HOME%\client\jbosssx-client.jar;SimpleBeanClient.jar;.
SalaryClient

but i keep having the error of NoClassFoundError when
i execute this.

Any ideas on how to properly execute a client in JBOSS
3.0 ?

thank you.



Boney



__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I navigate from one subApp to another in Struts1.1?

2002-07-16 Thread Trieu, Danny

Craig,

Does it mater if my action servlet is the TilesActionComponentServlet?

danny

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 7:53 PM
To: Struts Users Mailing List
Subject: RE: How do I navigate from one subApp to another in Struts1.1?



On Tue, 16 Jul 2002, Trieu, Danny wrote:

> Date: Tue, 16 Jul 2002 19:22:08 -0700
> From: "Trieu, Danny" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: How do I navigate from one subApp to another in Struts1.1?
>
> Craig,
>
> I have an action=foo under subapp bar.
> I register my subapp like this:
> Web.xml
> 
>   config/bar
>   /WEB-INF/struts-bar.xml
> 
>
>
> How come it give me a 404 error when I call my action in the browser with
> this URL: http://localhost:7001/my_web_app/bar/foo.do
>

What does your servlet mapping look like?  It should still use the "*.do"
pattern.

Do you also have a "default" subapp configured with the plain "config"
init parameter?  I've never tried it without, although conceptually it
should work.

Craig


>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 6:38 PM
> To: Struts Users Mailing List
> Subject: Re: How do I navigate from one subApp to another in Struts1.1?
>
>
>
> On Tue, 16 Jul 2002, Trieu, Danny wrote:
>
> > Date: Tue, 16 Jul 2002 18:11:48 -0700
> > From: "Trieu, Danny" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: How do I navigate from one subApp to another in Struts1.1?
> >
> > For example: I am in a page of a sub-application of a Struts
application,
> > and I want to render a link that link you to another sub-application
> within
> > the application using the  tag.
> >
>
> The tempting way to do this is to do something like
>
>   
>
> and mark the "foo" forward as being context relative.  However, this will
> ONLY work if you are switching to the default sub-app, because you'd be
> bypassing the controller servlet where sub-app selection is performed.
>
> The better way is to make your link go through an  that uses the
> standard SwitchAction class.  This wants you to send along the application
> prefix of the sub-app you want to switch to, as well as a resource in that
> sub-app to forward to after the switch.
>
> > danny
> >
>
> Craig
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I navigate from one subApp to another in Struts1.1?

2002-07-16 Thread Trieu, Danny

Craig,

Here is my default cofig.


  config
  /WEB-INF/struts-config.xml


and my servlet mapping.

  
  
action
*.do
  


Thanks for helping Craig.

danny

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 7:53 PM
To: Struts Users Mailing List
Subject: RE: How do I navigate from one subApp to another in Struts1.1?



On Tue, 16 Jul 2002, Trieu, Danny wrote:

> Date: Tue, 16 Jul 2002 19:22:08 -0700
> From: "Trieu, Danny" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: How do I navigate from one subApp to another in Struts1.1?
>
> Craig,
>
> I have an action=foo under subapp bar.
> I register my subapp like this:
> Web.xml
> 
>   config/bar
>   /WEB-INF/struts-bar.xml
> 
>
>
> How come it give me a 404 error when I call my action in the browser with
> this URL: http://localhost:7001/my_web_app/bar/foo.do
>

What does your servlet mapping look like?  It should still use the "*.do"
pattern.

Do you also have a "default" subapp configured with the plain "config"
init parameter?  I've never tried it without, although conceptually it
should work.

Craig


>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 6:38 PM
> To: Struts Users Mailing List
> Subject: Re: How do I navigate from one subApp to another in Struts1.1?
>
>
>
> On Tue, 16 Jul 2002, Trieu, Danny wrote:
>
> > Date: Tue, 16 Jul 2002 18:11:48 -0700
> > From: "Trieu, Danny" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: How do I navigate from one subApp to another in Struts1.1?
> >
> > For example: I am in a page of a sub-application of a Struts
application,
> > and I want to render a link that link you to another sub-application
> within
> > the application using the  tag.
> >
>
> The tempting way to do this is to do something like
>
>   
>
> and mark the "foo" forward as being context relative.  However, this will
> ONLY work if you are switching to the default sub-app, because you'd be
> bypassing the controller servlet where sub-app selection is performed.
>
> The better way is to make your link go through an  that uses the
> standard SwitchAction class.  This wants you to send along the application
> prefix of the sub-app you want to switch to, as well as a resource in that
> sub-app to forward to after the switch.
>
> > danny
> >
>
> Craig
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I navigate from one subApp to another in Struts1.1?

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Trieu, Danny wrote:

> Date: Tue, 16 Jul 2002 19:22:08 -0700
> From: "Trieu, Danny" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: How do I navigate from one subApp to another in Struts1.1?
>
> Craig,
>
> I have an action=foo under subapp bar.
> I register my subapp like this:
> Web.xml
> 
>   config/bar
>   /WEB-INF/struts-bar.xml
> 
>
>
> How come it give me a 404 error when I call my action in the browser with
> this URL: http://localhost:7001/my_web_app/bar/foo.do
>

What does your servlet mapping look like?  It should still use the "*.do"
pattern.

Do you also have a "default" subapp configured with the plain "config"
init parameter?  I've never tried it without, although conceptually it
should work.

Craig


>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 6:38 PM
> To: Struts Users Mailing List
> Subject: Re: How do I navigate from one subApp to another in Struts1.1?
>
>
>
> On Tue, 16 Jul 2002, Trieu, Danny wrote:
>
> > Date: Tue, 16 Jul 2002 18:11:48 -0700
> > From: "Trieu, Danny" <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: How do I navigate from one subApp to another in Struts1.1?
> >
> > For example: I am in a page of a sub-application of a Struts application,
> > and I want to render a link that link you to another sub-application
> within
> > the application using the  tag.
> >
>
> The tempting way to do this is to do something like
>
>   
>
> and mark the "foo" forward as being context relative.  However, this will
> ONLY work if you are switching to the default sub-app, because you'd be
> bypassing the controller servlet where sub-app selection is performed.
>
> The better way is to make your link go through an  that uses the
> standard SwitchAction class.  This wants you to send along the application
> prefix of the sub-app you want to switch to, as well as a resource in that
> sub-app to forward to after the switch.
>
> > danny
> >
>
> Craig
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Rick Reumann wrote:

> Date: Tue, 16 Jul 2002 22:04:54 -0400
> From: Rick Reumann <[EMAIL PROTECTED]>
> To: Craig R. McClanahan <[EMAIL PROTECTED]>
> Cc: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re[2]: getting nested tags to work with DynaActionForm???
>
> On Tuesday, July 16, 2002, 9:04:04 PM, Craig R. McClanahan wrote:
>
> CRM> Setting stuff like this up in the reset() method is the standard approach.
> CRM> Arrays have to exist already for either standard JavaBean-based
> CRM> ActionForms, as well as DynaActionForms.
>
>  I'm still a bit confused by this. When I use a standard
>  ActionForm I don't have to do anything special with my ArrayList
>  in the ActionForm. A page that uses this ArrayList works fine.
>  However as soon as I try to use this ArrayList as property in a
>  DynaActionForm I run into problems trying to submit a jsp page
>  that was populated with the ArrayList info (the display works
>  fine, it's just upon submission).
>

If you're using request scope beans, a new instance gets created on every
request.  And I will bet that you probably have an initialization of this
array happening in your constructor, or in an initialization expression,
right?

For DynaActionForm instances, the default initialization of all
non-primitives in null.  That's why you still need to initialize in
reset(), or use the new "initial" property described below.

> CRM> In recent nightly builds, we added support for an additional mechanism --
> CRM> you can declare an intiialization expression for arrays in the
> CRM>  for a DynaActionForm bean, using the "initial" attribute.
> CRM> The syntax is basically like what you use in Java to initialize an array
> CRM> to a set of values in a variable declaration -- for example:
>
> CRM>CRM>  type="org.apache.struts.action.DynaActionForm">
>
> CRM>  CRM> initial="{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }"/>
>
> CRM>   
>
>What if the information in an ArrayList of beans that you want in a
>DynaActionForm is to first be populated by some database info.
>Do you need to first initialize it like a above to a bunch of
>nulls? If so what if the list size fluctuates (hence use of
>ArrayList) how do you know how many to initialize the ArrayList
>with?
>

That's definitely a place where loading the arrays in the reset() method
makes sense.

Having an "intArray" property of type "int[]" on a DynaBean is very much
like having the following method signatures on a standard JavaBean:

  public int[] getIntArray();
  public void setIntArray(int intArray[]);

so you don't have to pre-initialze the array to nulls or anything.  Just
set up the array you want as a local variable (of any desired
length), populate its values, and call:

  int intArray[] = ...;
  dynaform.set("intArray", intArray);

One really common scenario is that you don't know ahead of time how many
items you're going to read from the database.  An approach I use a lot is
to use an ArrayList to accumulate the values, then convert them to an
array.  Something like this (assuming you have a "labels" property of
type "java.lang.String[]"):

  ArrayList temp = new ArrayList();
  Connection conn = ...;
  Statement stmt = conn.createStatement();
  ResultSet rs = stmt.executeQuery("select label from customer_types");
  while (rs.next()) {
temp.add(rs.getString(1));
  }
  String labels[] = (String[]) temp.toArray(new String[temp.size()]);
  dynaFormBean.set("labels", labels);

Alternatively, you could set your property type to java.util.List instead
-- all the Struts tags that support indexed access against arrays work
perfectly well against a List as well.

>Thanks for any more thoughts.
>
> --
>
> Rick
>
> mailto:[EMAIL PROTECTED]
>
>

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I navigate from one subApp to another in Struts1.1?

2002-07-16 Thread Trieu, Danny

Craig,

I have an action=foo under subapp bar.  
I register my subapp like this:
Web.xml

  config/bar
  /WEB-INF/struts-bar.xml



How come it give me a 404 error when I call my action in the browser with
this URL: http://localhost:7001/my_web_app/bar/foo.do


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 6:38 PM
To: Struts Users Mailing List
Subject: Re: How do I navigate from one subApp to another in Struts1.1?



On Tue, 16 Jul 2002, Trieu, Danny wrote:

> Date: Tue, 16 Jul 2002 18:11:48 -0700
> From: "Trieu, Danny" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: How do I navigate from one subApp to another in Struts1.1?
>
> For example: I am in a page of a sub-application of a Struts application,
> and I want to render a link that link you to another sub-application
within
> the application using the  tag.
>

The tempting way to do this is to do something like

  

and mark the "foo" forward as being context relative.  However, this will
ONLY work if you are switching to the default sub-app, because you'd be
bypassing the controller servlet where sub-app selection is performed.

The better way is to make your link go through an  that uses the
standard SwitchAction class.  This wants you to send along the application
prefix of the sub-app you want to switch to, as well as a resource in that
sub-app to forward to after the switch.

> danny
>

Craig



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Rick Reumann

On Tuesday, July 16, 2002, 9:04:04 PM, Craig R. McClanahan wrote:

CRM> Setting stuff like this up in the reset() method is the standard approach.
CRM> Arrays have to exist already for either standard JavaBean-based
CRM> ActionForms, as well as DynaActionForms.

 I'm still a bit confused by this. When I use a standard
 ActionForm I don't have to do anything special with my ArrayList
 in the ActionForm. A page that uses this ArrayList works fine.
 However as soon as I try to use this ArrayList as property in a
 DynaActionForm I run into problems trying to submit a jsp page
 that was populated with the ArrayList info (the display works
 fine, it's just upon submission).

CRM> In recent nightly builds, we added support for an additional mechanism --
CRM> you can declare an intiialization expression for arrays in the
CRM>  for a DynaActionForm bean, using the "initial" attribute.
CRM> The syntax is basically like what you use in Java to initialize an array
CRM> to a set of values in a variable declaration -- for example:

CRM> type="org.apache.struts.action.DynaActionForm">

CRM>  initial="{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }"/>

CRM>   

   What if the information in an ArrayList of beans that you want in a
   DynaActionForm is to first be populated by some database info.
   Do you need to first initialize it like a above to a bunch of
   nulls? If so what if the list size fluctuates (hence use of
   ArrayList) how do you know how many to initialize the ArrayList
   with?

   Thanks for any more thoughts.

--

Rick

mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How do I navigate from one subApp to another in Struts1.1?

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Trieu, Danny wrote:

> Date: Tue, 16 Jul 2002 18:11:48 -0700
> From: "Trieu, Danny" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: How do I navigate from one subApp to another in Struts1.1?
>
> For example: I am in a page of a sub-application of a Struts application,
> and I want to render a link that link you to another sub-application within
> the application using the  tag.
>

The tempting way to do this is to do something like

  

and mark the "foo" forward as being context relative.  However, this will
ONLY work if you are switching to the default sub-app, because you'd be
bypassing the controller servlet where sub-app selection is performed.

The better way is to make your link go through an  that uses the
standard SwitchAction class.  This wants you to send along the application
prefix of the sub-app you want to switch to, as well as a resource in that
sub-app to forward to after the switch.

> danny
>

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How do I navigate from one subApp to another in Struts1.1?

2002-07-16 Thread Trieu, Danny

For example: I am in a page of a sub-application of a Struts application,
and I want to render a link that link you to another sub-application within
the application using the  tag.
 
danny



RE: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Roman Fail wrote:

> Date: Tue, 16 Jul 2002 16:34:46 -0700
> From: Roman Fail <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Rick Reumann <[EMAIL PROTECTED]>,
>  Struts List <[EMAIL PROTECTED]>
> Subject: RE: getting nested tags to work with DynaActionForm???
>
> I had the same problem - after reviewing the source code for
> DynaActionForm I realized that the underlying ArrayList is not
> 'automatically' instantiated by the DynaActionForm.  In other words,
> when the controller is trying to call DynaActionForm.set("myField[0]")
> because it sees a request parameter called 'myField[0]', there is no
> ArrayList there yet to match the "myField" property.  My solution was to
> subclass DynaActionForm and just override the reset() method in order to
> instantiate the ArrayList.  (since reset() is called before any
> setters).  I think I also did this using an array of BasicDynaBeans, and
> again had to initialize the array in reset().
>
>  Of course you don't have to do this when simply displaying the data,
> because you are populating the property with your ArrayList in
> Action.perform()/execute() before the DynaActionForm.get() methods are
> ever called.
>
>  Is there a better solution out there?  I don't like having to write a
> subclass just to instantiate the ArrayList.
>

Setting stuff like this up in the reset() method is the standard approach.
Arrays have to exist already for either standard JavaBean-based
ActionForms, as well as DynaActionForms.

In recent nightly builds, we added support for an additional mechanism --
you can declare an intiialization expression for arrays in the
 for a DynaActionForm bean, using the "initial" attribute.
The syntax is basically like what you use in Java to initialize an array
to a set of values in a variable declaration -- for example:

  



  

You can initialize arrays of anything that you've registered a converter
for, and even use strings with embedded whitespace (use single quotes
around the values if you're using double quotes in your XML attributes, or
vice versa).

>  This is another example of where knowing the exact sequence of Struts
> events is crucial.  Has anyone ever written up a detailed step-by-step
> of what the controller does when a request comes in?  I've written a
> brief one for our company's developers - shall I post it?
>

I don't know of any such diagrams off the top of my head, so would be
interested in seeing, say, a UML sequence diagram for this and including
it in the docs.  The important method to look at is
ActionServlet.process() (in Struts 1.0) or RequestProcessor.process (in
Struts 1.1), which is in charge of the entire request processing lifecycle
for each request going through the controller.  Going from there to each
of the processX methods it calls, and reading the corresponding
JavaDoc comments, will tell you what you need to know.

> Roman Fail
> Sr. Web Application Developer
> POS Portal, Inc.
>

Craig


>
>   -Original Message-
>   From: Rick Reumann [mailto:[EMAIL PROTECTED]]
>   Sent: Tue 7/16/2002 1:33 PM
>   To: Struts List
>   Cc:
>   Subject: getting nested tags to work with DynaActionForm???
>
>
>
>   I had an ArrayList property set in my DynaActionForm and it worked
>   fine with the nested tag in displaying the information from the beans
>   in the ArrayList of this DynaActionForm. The problem however came when
>   I when I hit submit with the updated information. I kept getting
>   BeanUtils.populate errors with no index value set for 'field.[0]'.
>   Sorry can't cite the exact error since I now went to using a typical
>   ActionForm and the nested tag page submits fine.
>
>   Is there something special I need to do in order to get
>   DynamicActionForms to work with Nested tags?
>
>   Thanks,
>
>   --
>
>   Rick
>   mailto:[EMAIL PROTECTED]
>
>
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: CSS Question

2002-07-16 Thread Eddie Bush

That's pretty neat :-)

Jacob Hookom wrote:

>http://www.milonic.co.uk/menu/
>
>Jacob Hookom
>CS Student
>University of Wisconsin, Eau Claire
>===
>http://www.swanked.net
>you're not hip enough yet
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Dan Cancro

I'd like to see what you've written.  

Here's how I understand it so far:
http://members.telocity.com/dcancro/images/eng/Struts_MVC.gif



> -Original Message-
> From: Roman Fail [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 4:35 PM
> To: Rick Reumann; Struts List
> Subject: RE: getting nested tags to work with DynaActionForm???
> 
> 
> I had the same problem - after reviewing the source code for 
> DynaActionForm I realized that the underlying ArrayList is 
> not 'automatically' instantiated by the DynaActionForm.  In 
> other words, when the controller is trying to call 
> DynaActionForm.set("myField[0]") because it sees a request 
> parameter called 'myField[0]', there is no ArrayList there 
> yet to match the "myField" property.  My solution was to 
> subclass DynaActionForm and just override the reset() method 
> in order to instantiate the ArrayList.  (since reset() is 
> called before any setters).  I think I also did this using an 
> array of BasicDynaBeans, and again had to initialize the 
> array in reset().  
>  
> Of course you don't have to do this when simply displaying 
> the data, because you are populating the property with your 
> ArrayList in Action.perform()/execute() before the 
> DynaActionForm.get() methods are ever called.  
>  
> Is there a better solution out there?  I don't like having to 
> write a subclass just to instantiate the ArrayList.
>  
> This is another example of where knowing the exact sequence 
> of Struts events is crucial.  Has anyone ever written up a 
> detailed step-by-step of what the controller does when a 
> request comes in?  I've written a brief one for our company's 
> developers - shall I post it?
>  
> Roman Fail
> Sr. Web Application Developer
> POS Portal, Inc.
>  
> 
>   -Original Message- 
>   From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
>   Sent: Tue 7/16/2002 1:33 PM 
>   To: Struts List 
>   Cc: 
>   Subject: getting nested tags to work with DynaActionForm???
>   
>   
> 
>   I had an ArrayList property set in my DynaActionForm 
> and it worked
>   fine with the nested tag in displaying the information 
> from the beans
>   in the ArrayList of this DynaActionForm. The problem 
> however came when
>   I when I hit submit with the updated information. I kept getting
>   BeanUtils.populate errors with no index value set for 
> 'field.[0]'.
>   Sorry can't cite the exact error since I now went to 
> using a typical
>   ActionForm and the nested tag page submits fine.
>   
>   Is there something special I need to do in order to get
>   DynamicActionForms to work with Nested tags?
>   
>   Thanks,
>   
>   --
>   
>   Rick
>   mailto:[EMAIL PROTECTED]
>   
>   
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to compare 2 bean values with logic:equal

2002-07-16 Thread Degner, Julie

I tried the following:


<% String [] theId = new String[numS.intValue()]; %>
<% int count = 0; %>










<% count++; %>


The jsp compiled, but I got a runtime null pointer expection in the
compareTag code
 
org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:
180)
Because the bean:define did not assign a value to theId[count].

Any ideas? Am I making something simple, hard?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Chuck Cavaness

In answer to this question, take a look at several of the chapters from my 
upcoming O'Reilly book on Struts, especially chapter 5 where I cover the 
steps that the controller goes through while processing a request.

http://www.theserverside.com/resources/strutsreview.jsp

chuck

>
>This is another example of where knowing the exact sequence of Struts 
>events is crucial.  Has anyone ever written up a detailed step-by-step of 
>what the controller does when a request comes in?  I've written a brief 
>one for our company's developers - shall I post it?
>
>Roman Fail
>Sr. Web Application Developer
>POS Portal, Inc.
>
>
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> Sent: Tue 7/16/2002 1:33 PM
> To: Struts List
> Cc:
> Subject: getting nested tags to work with DynaActionForm???
>
>
>
> I had an ArrayList property set in my DynaActionForm and it worked
> fine with the nested tag in displaying the information from the beans
> in the ArrayList of this DynaActionForm. The problem however came 
> when
> I when I hit submit with the updated information. I kept getting
> BeanUtils.populate errors with no index value set for 
> 'field.[0]'.
> Sorry can't cite the exact error since I now went to using a typical
> ActionForm and the nested tag page submits fine.
>
> Is there something special I need to do in order to get
> DynamicActionForms to work with Nested tags?
>
> Thanks,
>
> --
>
> Rick
> mailto:[EMAIL PROTECTED]
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Roman Fail

I had the same problem - after reviewing the source code for DynaActionForm I realized 
that the underlying ArrayList is not 'automatically' instantiated by the 
DynaActionForm.  In other words, when the controller is trying to call 
DynaActionForm.set("myField[0]") because it sees a request parameter called 
'myField[0]', there is no ArrayList there yet to match the "myField" property.  My 
solution was to subclass DynaActionForm and just override the reset() method in order 
to instantiate the ArrayList.  (since reset() is called before any setters).  I think 
I also did this using an array of BasicDynaBeans, and again had to initialize the 
array in reset().  
 
Of course you don't have to do this when simply displaying the data, because you are 
populating the property with your ArrayList in Action.perform()/execute() before the 
DynaActionForm.get() methods are ever called.  
 
Is there a better solution out there?  I don't like having to write a subclass just to 
instantiate the ArrayList.
 
This is another example of where knowing the exact sequence of Struts events is 
crucial.  Has anyone ever written up a detailed step-by-step of what the controller 
does when a request comes in?  I've written a brief one for our company's developers - 
shall I post it?
 
Roman Fail
Sr. Web Application Developer
POS Portal, Inc.
 

-Original Message- 
From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
Sent: Tue 7/16/2002 1:33 PM 
To: Struts List 
Cc: 
Subject: getting nested tags to work with DynaActionForm???



I had an ArrayList property set in my DynaActionForm and it worked
fine with the nested tag in displaying the information from the beans
in the ArrayList of this DynaActionForm. The problem however came when
I when I hit submit with the updated information. I kept getting
BeanUtils.populate errors with no index value set for 'field.[0]'.
Sorry can't cite the exact error since I now went to using a typical
ActionForm and the nested tag page submits fine.

Is there something special I need to do in order to get
DynamicActionForms to work with Nested tags?

Thanks,

--

Rick
mailto:[EMAIL PROTECTED]






Re: CSS Question

2002-07-16 Thread Eddie Bush

You can't acheive what you want using tables?  If everything has to be 
"absolute" then just specify explicit widths/heights for the table pieces.

slickdev wrote:

>I am developing a web app to simulate a windows fat client app.  I need to determine 
>the optimal approach for simulating the fat client screens.  In particular, the 
>elements must be fixed in absolute position.  This can be done with style sheets, but 
>seems to be very cumbersome, and frankly, I'd rather focus on the web systems 
>development than on web page design.
>
>I looked through the Struts and JSP taglibs, but have not seen anything related to 
>the positioning of elements.  Can anyone provide an experienced opinion about the 
>best approach to take for absolute positioning?
>
>Thanks!
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CSS Question

2002-07-16 Thread Jacob Hookom

http://www.milonic.co.uk/menu/

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: slickdev [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 6:00 PM
To: Struts Users Mailing List
Subject: CSS Question

I am developing a web app to simulate a windows fat client app.  I need
to determine the optimal approach for simulating the fat client screens.
In particular, the elements must be fixed in absolute position.  This
can be done with style sheets, but seems to be very cumbersome, and
frankly, I'd rather focus on the web systems development than on web
page design.

I looked through the Struts and JSP taglibs, but have not seen anything
related to the positioning of elements.  Can anyone provide an
experienced opinion about the best approach to take for absolute
positioning?

Thanks!

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Adventures in Vonderland - Part II - Security Concerns and MoreHassles

2002-07-16 Thread slickdev

"bitch-agent-from-hell " == woman from boston.
I worked in cambridge mass for two years, and made 72 round trips on AA.  At
that time AA seemed fine.


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "Wankers (E-mail)" <[EMAIL PROTECTED]>
Cc: "Struts (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 6:06 PM
Subject: Adventures in Vonderland - Part II - Security Concerns and More
Hassles


> American Airlines suck.  We dutifully arrived at BWI 4 hours before our
> flight and were met with a line that looked like a cattle market.  It took
> more than an hour to shuffle our way through the nylon-roped maze to the
> counter for our boarding passes, manned by only four ticket agents for a
> line that must have constantly numbered at least 50 people.  One of the
> agents was dedicated to first class and would not take a coach passenger
> even though no one was in the first class queue.  When more than one first
> class passenger was present, one of the coach agents halted the cattle to
> accommodate first class.  Every now and then an expeditor agent would show
> up and ask if anyone was in line for a flight that was due to leave in the
> next 45 minutes or so and those passengers would be taken directly to the
> counter while the rest of us who arrived within the time frame suggested
by
> the airline waited.
>
> Ironically, security at both BWI and JFK sucked.  Though our carry-on was
> packed with everything from a bag of dollar coins and personal hygiene
items
> to several books, binoculars, and beer opener, it was passed right through
> the screening machine while the attendant ran back and forth between the
> viewer and setting passengers' items on the conveyor belt.  My belt buckle
> set off the walk-through alarm and when I explained, "It's just my belt
> buckle," they let me walk right through without further check.
>
> I forgot to mention that while I was being booked at Heathrow police
> station, Four Play found that AA had lost our backpacks and spent the next
6
> hours running between the station and Terminal 3 trying to get our luggage
> and registering at a nearby hotel (this constituted a "local address" for
> bail purposes!).
>
> When we arrived at the Dover-Calais ferry, our backpacks were not screened
> and I was not even asked for my passport.
>
> We decided to fly back to London the following Tuesday so we would have
some
> time to see something of the city besides its judicial system.  At Schipol
> airport in Amsterdam, we had booked a flight on something called "Easy
Jet."
> This sounded too much like "Value Jet" for my comfort, but it was better
> than spending another 8 hours on trains (because of the time zone, you
> actually get to Gatwick 5 minutes before you leave Schipol).  After
spending
> 45 minutes in the cattle pen leading up to Easy Jet's counter, we are told
> that our backpacks are too large to go through the conveyor (which was
> incredible, seeing the massive trunks most women were checking) and to
place
> them on the white luggage cart at the end of the counter.  This we do, but
> we stand there looking around and there is absolutely no one paying
> attention to us.  While FP waits by the backpacks I go back to the counter
> and tell an obviously annoyed ticket agent that I'm uncomfortable with (a)
> leaving our luggage unattended in an unsecured area and (b) if the cart
was
> going to carry luggage to the plane, what was to keep anybody from placing
> anything on it?
>
> This turned out predictably.  At security I was taken aside and all but
> strip-searched - even had to remove my shoes so they could be subjected to
a
> chemical test for explosives.
>
> Wednesday, we leave London via Heathrow and meet the longest line in front
> of the AA counter yet - at least 100 people (of course, there was
virtually
> no one at any other counter).  At least this time they had 6 ticketing
> agents processing the cattle ("M!").  Much to our relief, our
> reservations were till valid (we thought the incident on the way over
might
> have affected that), but my backpack was searched and all my cigar matches
> were confiscated.  It was okay to carry one book of matches and one butane
> lighter in my pocket, but I was prohibited from checking luggage
containing
> matches.
>
> At security, FP got picked for the "random" anal probe and the electric
hand
> wand went off as it passed over her left knee.  She explained that she had
> had reconstructive surgery (the scars are very evident) and had screws in
> her bone, but we were detained for 15 minutes while three agents decided
(I
> guess) what the odds were that she was carrying some kind of weapon.  Once
> on the plane and for the entire flight back, we were treated to the
rudest,
> most insensitive flight attendants I've ever met - FP didn't even get an
> apology when one spilled ice water in her lap.
>
> We arrive at Logan that afternoon and have to sit on the tarmac for an
hour
> and a half becaus

Re: Adventures in Vonderland - Part II - Security Concerns and MoreHassles

2002-07-16 Thread slickdev

right: they check the guy that complains about his bags being left in an
unsecured area... dumb asses.

yes AA sucks.  our friendly al Quida assholes know that very well.

did you know that many airlines are now telling their valued customers that
they can't do a back-to-back ticket purchase?  btb is a way to get a cheaper
round trip fair, by taking advantage of saturday night stay-over.  see
monday's usa today for the story.  guess which airline doesn't enforce this
supposed "illegal" purchasing practice, yet is turning profit when the us
airline industry cleverly managed to lose 7 B$ last year?  A: southwest.


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "Wankers (E-mail)" <[EMAIL PROTECTED]>
Cc: "Struts (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 6:06 PM
Subject: Adventures in Vonderland - Part II - Security Concerns and More
Hassles


> American Airlines suck.  We dutifully arrived at BWI 4 hours before our
> flight and were met with a line that looked like a cattle market.  It took
> more than an hour to shuffle our way through the nylon-roped maze to the
> counter for our boarding passes, manned by only four ticket agents for a
> line that must have constantly numbered at least 50 people.  One of the
> agents was dedicated to first class and would not take a coach passenger
> even though no one was in the first class queue.  When more than one first
> class passenger was present, one of the coach agents halted the cattle to
> accommodate first class.  Every now and then an expeditor agent would show
> up and ask if anyone was in line for a flight that was due to leave in the
> next 45 minutes or so and those passengers would be taken directly to the
> counter while the rest of us who arrived within the time frame suggested
by
> the airline waited.
>
> Ironically, security at both BWI and JFK sucked.  Though our carry-on was
> packed with everything from a bag of dollar coins and personal hygiene
items
> to several books, binoculars, and beer opener, it was passed right through
> the screening machine while the attendant ran back and forth between the
> viewer and setting passengers' items on the conveyor belt.  My belt buckle
> set off the walk-through alarm and when I explained, "It's just my belt
> buckle," they let me walk right through without further check.
>
> I forgot to mention that while I was being booked at Heathrow police
> station, Four Play found that AA had lost our backpacks and spent the next
6
> hours running between the station and Terminal 3 trying to get our luggage
> and registering at a nearby hotel (this constituted a "local address" for
> bail purposes!).
>
> When we arrived at the Dover-Calais ferry, our backpacks were not screened
> and I was not even asked for my passport.
>
> We decided to fly back to London the following Tuesday so we would have
some
> time to see something of the city besides its judicial system.  At Schipol
> airport in Amsterdam, we had booked a flight on something called "Easy
Jet."
> This sounded too much like "Value Jet" for my comfort, but it was better
> than spending another 8 hours on trains (because of the time zone, you
> actually get to Gatwick 5 minutes before you leave Schipol).  After
spending
> 45 minutes in the cattle pen leading up to Easy Jet's counter, we are told
> that our backpacks are too large to go through the conveyor (which was
> incredible, seeing the massive trunks most women were checking) and to
place
> them on the white luggage cart at the end of the counter.  This we do, but
> we stand there looking around and there is absolutely no one paying
> attention to us.  While FP waits by the backpacks I go back to the counter
> and tell an obviously annoyed ticket agent that I'm uncomfortable with (a)
> leaving our luggage unattended in an unsecured area and (b) if the cart
was
> going to carry luggage to the plane, what was to keep anybody from placing
> anything on it?
>
> This turned out predictably.  At security I was taken aside and all but
> strip-searched - even had to remove my shoes so they could be subjected to
a
> chemical test for explosives.
>
> Wednesday, we leave London via Heathrow and meet the longest line in front
> of the AA counter yet - at least 100 people (of course, there was
virtually
> no one at any other counter).  At least this time they had 6 ticketing
> agents processing the cattle ("M!").  Much to our relief, our
> reservations were till valid (we thought the incident on the way over
might
> have affected that), but my backpack was searched and all my cigar matches
> were confiscated.  It was okay to carry one book of matches and one butane
> lighter in my pocket, but I was prohibited from checking luggage
containing
> matches.
>
> At security, FP got picked for the "random" anal probe and the electric
hand
> wand went off as it passed over her left knee.  She explained that she had
> had reconstructive surgery (the scars are very evident) and h

Adventures in Vonderland - Part II - Security Concerns and More Hassles

2002-07-16 Thread Galbreath, Mark

American Airlines suck.  We dutifully arrived at BWI 4 hours before our
flight and were met with a line that looked like a cattle market.  It took
more than an hour to shuffle our way through the nylon-roped maze to the
counter for our boarding passes, manned by only four ticket agents for a
line that must have constantly numbered at least 50 people.  One of the
agents was dedicated to first class and would not take a coach passenger
even though no one was in the first class queue.  When more than one first
class passenger was present, one of the coach agents halted the cattle to
accommodate first class.  Every now and then an expeditor agent would show
up and ask if anyone was in line for a flight that was due to leave in the
next 45 minutes or so and those passengers would be taken directly to the
counter while the rest of us who arrived within the time frame suggested by
the airline waited.
 
Ironically, security at both BWI and JFK sucked.  Though our carry-on was
packed with everything from a bag of dollar coins and personal hygiene items
to several books, binoculars, and beer opener, it was passed right through
the screening machine while the attendant ran back and forth between the
viewer and setting passengers' items on the conveyor belt.  My belt buckle
set off the walk-through alarm and when I explained, "It's just my belt
buckle," they let me walk right through without further check.
 
I forgot to mention that while I was being booked at Heathrow police
station, Four Play found that AA had lost our backpacks and spent the next 6
hours running between the station and Terminal 3 trying to get our luggage
and registering at a nearby hotel (this constituted a "local address" for
bail purposes!).
 
When we arrived at the Dover-Calais ferry, our backpacks were not screened
and I was not even asked for my passport.
 
We decided to fly back to London the following Tuesday so we would have some
time to see something of the city besides its judicial system.  At Schipol
airport in Amsterdam, we had booked a flight on something called "Easy Jet."
This sounded too much like "Value Jet" for my comfort, but it was better
than spending another 8 hours on trains (because of the time zone, you
actually get to Gatwick 5 minutes before you leave Schipol).  After spending
45 minutes in the cattle pen leading up to Easy Jet's counter, we are told
that our backpacks are too large to go through the conveyor (which was
incredible, seeing the massive trunks most women were checking) and to place
them on the white luggage cart at the end of the counter.  This we do, but
we stand there looking around and there is absolutely no one paying
attention to us.  While FP waits by the backpacks I go back to the counter
and tell an obviously annoyed ticket agent that I'm uncomfortable with (a)
leaving our luggage unattended in an unsecured area and (b) if the cart was
going to carry luggage to the plane, what was to keep anybody from placing
anything on it?
 
This turned out predictably.  At security I was taken aside and all but
strip-searched - even had to remove my shoes so they could be subjected to a
chemical test for explosives.
 
Wednesday, we leave London via Heathrow and meet the longest line in front
of the AA counter yet - at least 100 people (of course, there was virtually
no one at any other counter).  At least this time they had 6 ticketing
agents processing the cattle ("M!").  Much to our relief, our
reservations were till valid (we thought the incident on the way over might
have affected that), but my backpack was searched and all my cigar matches
were confiscated.  It was okay to carry one book of matches and one butane
lighter in my pocket, but I was prohibited from checking luggage containing
matches.
 
At security, FP got picked for the "random" anal probe and the electric hand
wand went off as it passed over her left knee.  She explained that she had
had reconstructive surgery (the scars are very evident) and had screws in
her bone, but we were detained for 15 minutes while three agents decided (I
guess) what the odds were that she was carrying some kind of weapon.  Once
on the plane and for the entire flight back, we were treated to the rudest,
most insensitive flight attendants I've ever met - FP didn't even get an
apology when one spilled ice water in her lap.
 
We arrive at Logan that afternoon and have to sit on the tarmac for an hour
and a half because the INS is understaffed and is busy processing three
planes that have arrived before us.  Once inside, it is pandemonium between
the INS, Customs, and USDA gauntlet.  My backpack gets searched again and
the hundred or so flower bulbs I've purchased in Holland are confiscated,
even though the packaging has a "US Export" seal ("Not on the 'approved'
list," we are told).
 
After this cluster fuck, we find that our connecting flight is in Terminal B
(we are in Terminal A) and at Logan, that means taking a bus across the
airport campus about a mile away.  W

CSS Question

2002-07-16 Thread slickdev

I am developing a web app to simulate a windows fat client app.  I need to determine 
the optimal approach for simulating the fat client screens.  In particular, the 
elements must be fixed in absolute position.  This can be done with style sheets, but 
seems to be very cumbersome, and frankly, I'd rather focus on the web systems 
development than on web page design.

I looked through the Struts and JSP taglibs, but have not seen anything related to the 
positioning of elements.  Can anyone provide an experienced opinion about the best 
approach to take for absolute positioning?

Thanks!



RE: Log4j Daily File Appender

2002-07-16 Thread Jacob Hookom

Don't I feel stupid... I should read the API :-P

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 4:49 PM
To: 'Struts Users Mailing List'
Subject: Log4j Daily File Appender

Does anyone have a snippet from a log4j.properties for a daily rolling
file appender?

# mine --- doesn't work properly just web.log is created, no date append
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=C:/Colorpath/LOGS/web.log
log4j.appender.A2.datePattern='.'-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

If anyone can point out my folly, I would be very greatful!

Jacob Hookom
Computer Science Student
University of Wisconsin, Eau Claire

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: What does locale="true" really do?

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Kurosaka, Teruhiko wrote:

> Date: Tue, 16 Jul 2002 14:48:59 -0700
> From: "Kurosaka, Teruhiko" <[EMAIL PROTECTED]>
> To: Craig R. McClanahan <[EMAIL PROTECTED]>
> Cc: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: What does locale="true" really do?
>
> Thank you for reply, Craig.
>
> > The implementation of this tag grabs the current locale from
> > the session
>
> So it is up to the servlet container?
>

Unless the application overrides it.  However, AFAIK, containers will
all implement ServletRequest.getLocale() in terms of the highest priority
language listed on the Accept-Language header -- that's what Tomcat 4
does -- so this represents the *requested* language unless the application
changes to something else.

> -kuro
>

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Log4j Daily File Appender

2002-07-16 Thread Jacob Hookom

Does anyone have a snippet from a log4j.properties for a daily rolling
file appender?

# mine --- doesn't work properly just web.log is created, no date append
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=C:/Colorpath/LOGS/web.log
log4j.appender.A2.datePattern='.'-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

If anyone can point out my folly, I would be very greatful!

Jacob Hookom
Computer Science Student
University of Wisconsin, Eau Claire

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Trouble getting response.setContentType to work

2002-07-16 Thread Chen, Dean (Zhun)

Hi,
I'm having a bit of trouble getting Struts to serve Excel spreadsheets.
I have the following JSP. If I serve the JSP directly, Internet Explorer
works fine. If I have a page not within a frame and do a post ie:
"getjsp.do", it works fine. However, if I have the page within a frame and
do "getjsp.do" IE doesn't prompt me for download/open Excel. I can do the
same thing in Netscape and it works fine also. Any ideas?

<%
out.clear();
response.setHeader("Content-Disposition","attachment;filename=data.xls");
response.setContentType("application/vnd.ms-excel");
%>




Excel-Export



1997
2000
1999


12.3
13.4
15.6





Thanks,

Dean Chen

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: Arron Bates, Monkey Example: List of BananaLists

2002-07-16 Thread Rick Reumann

On Monday, July 15, 2002, 4:00:41 PM, hemant wrote:

h> I have a situation where I have a Collection of  banana Lists.

h>  type="java.util.Collection">

h>   
h>   -
h> 
h>  
h>  .

h> Does the above mean it is trying to do a lookup on a
h> crateOfBanaLists.bananaList

   From my understanding in the above you have a collection of
   some objects in a Collection called "crates." Then inside of
   "crates" each Object in that collection should have fields called
   "bananaType" and "description" (with appropriate getters for those
   fields). I believe the property is what really matters and id is
   just what you are referring to the object as, so in the above I
   think you should have a Collection in your FormBean called "crates"
   with a a getCrates() method returning you your collection of Crate
   objects. If you want each crate object to have a List of bannanas
   you should have a property in the crate object called "bananaList".
   You might already have that field name, and if so change the part
   where it says
   
   to
   
   I could be wrong but I think you are getting confused with the
   property part.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help with enabling Struts logging

2002-07-16 Thread Chuck Cavaness

My chapter on Logging with Struts Applications should be posted on 
theserverside.com tonight or tomorrow. When it shows up, download it and 
read it and see if it helps. That will be a good test on how effective it 
is. Any feedback you can provide will be very helpful.

You can find it (when it's actually posted) here: 
http://www.theserverside.com/resources/strutsreview.jsp

Chuck


At 04:19 PM 7/16/2002 -0400, you wrote:
>Hello,
>
>Please forgive what I believe to be a newbie question.  I tried RTFM and 
>the RTFMLA (mailing list archives).  I dunno, maybe my brain isn't 
>functioning at the moment.  Anyway.  I have a simple Tomcat 4.0.4 
>installation with Struts 1.1b1.  I haven't done anything to the logging 
>configuration.  I would like the lines:
>
> if (log.isDebugEnabled()) {...
>
>to return true and the for results of the lines:
>
> log.debug("...
>
>to get print to System.out.
>
>I can't for the life of me figure out how to enable debugging for 
>Struts.  Please HELP!
>
>Thanks!
>Matthew
>
>
>
> protected ActionForm processActionForm(HttpServletRequest request,
>HttpServletResponse response,
>ActionMapping mapping) {
>
> // Create (if necessary a form bean to use
> ActionForm instance = RequestUtils.createActionForm
> (request, mapping, appConfig, servlet);
> if (instance == null) {
> return (null);
> }
>
> // Store the new instance in the appropriate scope
> if (log.isDebugEnabled()) {
> log.debug(" Storing ActionForm bean instance in scope '" +
> mapping.getScope() + "' under attribute key '" +
> mapping.getAttribute() + "'");
> }
> if ("request".equals(mapping.getScope())) {
> request.setAttribute(mapping.getAttribute(), instance);
> } else {
> HttpSession session = request.getSession();
> session.setAttribute(mapping.getAttribute(), instance);
> }
> return (instance);
>
> }
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help with enabling Struts logging

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Matthew Lehrian wrote:

> Date: Tue, 16 Jul 2002 16:19:55 -0400
> From: Matthew Lehrian <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts List <[EMAIL PROTECTED]>
> Subject: Help with enabling Struts logging
>
> Hello,
>
> Please forgive what I believe to be a newbie question.  I tried RTFM and
> the RTFMLA (mailing list archives).  I dunno, maybe my brain isn't
> functioning at the moment.  Anyway.  I have a simple Tomcat 4.0.4
> installation with Struts 1.1b1.  I haven't done anything to the logging
> configuration.  I would like the lines:
>
>   if (log.isDebugEnabled()) {...
>
> to return true and the for results of the lines:
>
>   log.debug("...
>
> to get print to System.out.
>
> I can't for the life of me figure out how to enable debugging for
> Struts.  Please HELP!
>

Struts 1.1 uses the commons-logging package as a logging wrapper.
Configuring it (or, more properly, configuring how it uses your underlying
logging implementation) is documented on the Package Documentation page of
the org.apache.commons.logging package, available online at:

  http://jakarta.apache.org/commons/logging/api/

The convention in Struts (and many other packages) is to use the fully
qualified name of the class as the name of the logger to be written to.
Thus, you can turn on debug level logging for all of Struts internal
components by setting the logging level for "org.apache.struts", or be
more specific if you need to (org.apache.struts.action.RequestProcessor).

> Thanks!
> Matthew

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Passing form objects between actions?

2002-07-16 Thread Matthew Lehrian

Hi,

I have a situation where I have a jsp that invokes an action with form.  
That action forwards to a second action that uses the form of the next 
jsp in the chain.  I need access to the first form from within the 
second action.  It seems "sometimes" I can get the first form with a 
request.getAttribute("formName") call from within the 2nd action, but it 
doesn't always work.  Can anyone explain if this is a doable thing?

Ex.

++ +--+ 
+--+ ++
  |  |   |  Page1 
Post  |   |  Page2 
Pre   |   |  |
  |  page1.jsp  |   ->   | Process |   ->   | 
Process |   ->   |  page2.jsp  |
  |  |   |  
Action   |   |   
Action   |   |  |
++ +--+ 
+--+ ++
  |   
   |
  |   
   |
  |   
   |
 ++   
+--+
  | 
Page1 ||Page2   |
  |  
Form   || Form |
 ++   
+--+

The Page1PostProcessAction creates a database record, which generates a 
primary key which is set in Page1Form.  Page2PreProcessAction needs 
access to the primary key.  From examing the Struts code, Page1Form 
would appear to be set into the request attributes under the attribute 
(or name, if attribute is null) value defined for the action.  
Sometimes, from within Page2PreProcessAction, I can call 
request.getAttribute("page1Form") and it return me the form.  Other 
times, it is null.

Is this "supported" functionality?  Should I not be doing this?  Any 
suggestion on how to avoid this?  I thought about manually modifying the 
URI and appending a querystring (as someone was talking about earlier 
today) but sometime I have a lot of data I need from the previous form 
and that would be a bit cumbersome and maintenance-intensive.

Thanks for you help!
Matthew


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




getting nested tags to work with DynaActionForm???

2002-07-16 Thread Rick Reumann

I had an ArrayList property set in my DynaActionForm and it worked
fine with the nested tag in displaying the information from the beans
in the ArrayList of this DynaActionForm. The problem however came when
I when I hit submit with the updated information. I kept getting
BeanUtils.populate errors with no index value set for 'field.[0]'.
Sorry can't cite the exact error since I now went to using a typical
ActionForm and the nested tag page submits fine.

Is there something special I need to do in order to get
DynamicActionForms to work with Nested tags?

Thanks,

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help with enabling Struts logging

2002-07-16 Thread Matthew Lehrian

Hello,

Please forgive what I believe to be a newbie question.  I tried RTFM and 
the RTFMLA (mailing list archives).  I dunno, maybe my brain isn't 
functioning at the moment.  Anyway.  I have a simple Tomcat 4.0.4 
installation with Struts 1.1b1.  I haven't done anything to the logging 
configuration.  I would like the lines:

if (log.isDebugEnabled()) {...

to return true and the for results of the lines:

log.debug("...

to get print to System.out.

I can't for the life of me figure out how to enable debugging for 
Struts.  Please HELP!

Thanks!
Matthew



 protected ActionForm processActionForm(HttpServletRequest request,
HttpServletResponse response,
ActionMapping mapping) {

 // Create (if necessary a form bean to use
 ActionForm instance = RequestUtils.createActionForm
 (request, mapping, appConfig, servlet);
 if (instance == null) {
 return (null);
 }

 // Store the new instance in the appropriate scope
 if (log.isDebugEnabled()) {
 log.debug(" Storing ActionForm bean instance in scope '" +
 mapping.getScope() + "' under attribute key '" +
 mapping.getAttribute() + "'");
 }
 if ("request".equals(mapping.getScope())) {
 request.setAttribute(mapping.getAttribute(), instance);
 } else {
 HttpSession session = request.getSession();
 session.setAttribute(mapping.getAttribute(), instance);
 }
 return (instance);

 }


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What does locale="true" really do?

2002-07-16 Thread Craig R. McClanahan



On Mon, 15 Jul 2002, Kurosaka, Teruhiko wrote:

> Date: Mon, 15 Jul 2002 18:33:53 -0700
> From: "Kurosaka, Teruhiko" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: "Kurosaka, Teruhiko" <[EMAIL PROTECTED]>
> Subject: What does locale="true" really do?
>
> Hello,
> Various documents suggest that we are supposed to say:
> 
> in Struts-based JSP files.  This directive somehow sets
> the locale automatically, as I understand it.
> But I am wondering exactly how Struts sets a locale.
> Does anyone know?
>

The implementation of this tag grabs the current locale from the session
(set from either a call to request.getLocale() or later updated by the
application) and uses that to set the "lang" attribute on the  tag.

> I am hoping that Struts won't just blindly pick up the
> language of the heaviest weight in the request's
> Accept-Language header, because that is simply
> wrong.  When there is no German version of a .jsp
> file, "accept-language: de" should not be honored,
> for example.  I am hoping that somehow Struts knows
> the list of available languages for a page, but I cannot
> seem to locate that description.  Does anyone know
> anything about it?
>

Struts doesn't know anything about this, because "languages available" is
an application specific concept.  However, your application is
free to set the Locale (in the session, under key Action.LOCALE_KEY) to
whatever you think is correct.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Arron Bates, Monkey Example: List of BananaLists

2002-07-16 Thread Emerson Cargnin - SICREDI Serviços

didn't get the point...

hemant wrote:

> - Original Message -
> From: "Emerson Cargnin - SICREDI Serviços" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, July 15, 2002 5:43 PM
> Subject: Re: Arron Bates, Monkey Example: List of BananaLists
> 
> 
> 
>>could you point the url of this tutorial???
>>
>>hemant wrote:
>>
>>
>>>First of all, the tutorial@ keyboardmonkey.com was extremely helpful.
>>>Arron, Thank You very much.
>>>
>>>
>>>I have a situation where I have a Collection of  banana Lists.
>>>
>>>
>property="crates"  type="java.util.Collection">
>>>
>>>  
>>>  -
>>>
>>> 
>>> .
>>>
>>>
>>>Does the above mean it is trying to do a lookup on a
>>>crateOfBanaLists.bananaList
>>>
>>>I get a NullPointerException. What could possibly be wrong. I get a
>>>feeling it is not that complicated. Iam missing some minute detail
>>>somewhere. Is it because I have the id? and that bananaList is null?
>>>
>>>All I want to do is to iterate on the bananaList in the Crate of
>>>BananaLists. The above code works for logic:iterate .
>>>
>>>
>>>Regards and Thanks in advance
>>>hemant
>>>
>>>java.lang.NullPointerException
>>>java.lang.Throwable()
>>>java.lang.Exception()
>>>java.lang.RuntimeException()
>>>java.lang.NullPointerException()
>>>java.lang.String
>>>org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(j
>>>ava.lang.String, javax.servlet.jsp.tagext.Tag)
>>>java.lang.String
>>>org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(j
>>>ava.lang.String, javax.servlet.jsp.tagext.Tag)
>>>java.lang.String
>>>org.apache.struts.taglib.nested.NestedPropertyHelper.getNestedProperty(o
>>>rg.apache.struts.taglib.nested.NestedPropertySupport)
>>>void
>>>org.apache.struts.taglib.nested.NestedPropertyHelper.setNestedProperties
>>>(org.apache.struts.taglib.nested.NestedPropertySupport)
>>>int
>>>org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag()
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>--
>>Emerson Cargnin - MSA
>>SICREDI - Tel : 3358-4860
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
> 
> 
>>For additional commands, e-mail:
>>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


-- 
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: child window problem, URGENT!!!!!!

2002-07-16 Thread Daniel Jaffa

Check the archives i answered this question already.  The only javascript
that i use is

Where "opener" is the keyword


window.opener.document.forms[0].updateFromNames.value="true";
window.opener.document.forms[0].submit();
window.close();


- Original Message -
From: "Samip Ladhawala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 3:12 AM
Subject: RE: child window problem, URGENT!!


> Hi Guys,
>
> Thanks for replying. we are trying to acheive this
> problem by avoiding javascript and scriplets as much
> as possible. Let me explian our scenario:
>
> We have a JSP page lets call it page 'A' in which we
> have 3 fields LastName, FirstName and MiddleName. We
> also have a link for search on this page. We have
> option that user can enter first few letters of the
> last name and search for the person using search link.
> We wanted to open a new window lets call it 'B' and
> display the names found on the basis of user input.
> Now when user double clicks on one name in child
> window 'B', that name will be displayed back on to the
> parent window i.e. 'A' in the appropriate fields.
>
> We are using following approach for the above
> scenario:
>
> we have 2 JSP's and 2 formbeans associated to that
> JSPs. Now when user enters first few letters of the
> LastName on parent form 'A' and clicks search link, we
> submit itself i.e. parent Form. We also have one flag
> in parent form ,apart from other attributes, whose
> value is "false" by default. In action (We use
> DispatchAction) we create instance of child form 'B'
> and set the attributes for query into it and put that
> into session. We make the flag in parent form equal to
> "true" and forward the mapping to itself. Now in
> parent JSP we use logic tag to check the value of that
> flag, if it is true then we call a javascript function
> to open a child window 'B'.
> Now in child 'B' JSP onload we submit itself i.e.
> Child Form with action equal to 'search'. In search
> method in action class of child form we talk to the
> business delegate and call the method to get the
> results for the user input, which is present in the
> child form bean, since we set that from parent and put
> it in session. Now after we get the possible matches
> on the basis of user input from business we forward
> the mapping to same page i.e child jsp. Now when user
> double clicks the one value from the list, we submit
> child form itself with action equal to selectPerson.
> In this method we get the parent form from the session
> and set the appropriate values in LastName, FirstName
> and MiddleName from the selected value and set the
> flag in parentform equal to "false". Then thru
> javascript in child JSP we are reloading the parent
> and closing the child window. This doesn't reload the
> parent window with new values in the formbean, which
> is being set in child action. We checked the session
> using debugger and we found that values in the parent
> form are being updated by child action correctly.
>
> Questions:
> 1) Does location.realod()[in javascript] flush the new
> values set in the session ?
> 2) What is the best way to refresh or submit the
> parent from child?
> 3) Is there any better way to solve this (By avoiding
> use of javascript and scriplets as much as possible)?
>
> Sorry for long Email. Any help will be appreciated.
>
> Thanks,
> Samip
>
>
> __
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Stxx opencode

2002-07-16 Thread Jeff Pennal

Konstantina,

People have had this error message before and it is usually the caused 
by one of two things.

1. Use only Tomcat 3.3+ or 4.04+
2. If you are putting the stxx-example.jar file in the Tomcat webapps 
directory, you will need to make sure that all the correct JAR's that 
stxx needs to run are in a "lib" direction under tomcat.

For details on the required JAR's check out 
http://www.openroad.ca/opencode/stxx/download.html

Andrew Hill wrote:
> Have a look in the log file to see if you can pin down the actual error that
> occured, as if an exception is thrown when initialising stuff, thats the
> message you get.
> 
> -Original Message-
> From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 20:00
> To: Struts Users Mailing List
> Subject: Stxx opencode
> 
> 
> Hello,
> I have just downloaded the stxx package and I tried to run the stxx-example
> application. But unfortunately I had no luck. I run it with tomcat-4.0.4
> and tomcat-3.2.4 but I got the following exception.
> 
> Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently
> unavailable
> 
> 
> 
> 
> type Status report
> 
> message Servlet action is currently unavailable
> 
> description The requested service (Servlet action is currently unavailable)
> is not currently available.
> 
> 
> 
> 
> 
> 
> 
> I find stxx very flexible and since I have worked with struts I would be
> very interetsed in using it for my application development. So if anyone can
> help me I would be gradeful.
> 
> Thank you in advance,
> Konstantina
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


-- 
Jeff Pennal p:604-694-0554(x107)
Senior Software Developer   f:604-694-0558
Openroad Communications e:[EMAIL PROTECTED]
Vancouver, BC


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: BeanUtils.populate exception

2002-07-16 Thread Tomas Viberg

Maybe one of the setter methods in your form bean throws a runtime exception (null 
pointer or something like that). It can easily happen with constructs like 
getRecord().getMedsAccessInfo().getTrng().intValue(), unless you make absolutely sure 
that the called getter methods never return null.

/ Tomas

- Original Message - 
From: "Miriam Aguirre" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 6:34 PM
Subject: RE: BeanUtils.populate exception


> 
>  unfortunately, that's the only exception in the log :
>  i;m going to try to change all the field/method names to all capitals.. not
> sure
>  if that will help, but i guess it can't hurt to try.
>  
>  -Miriam
> 
> [15/Jul/2002 17:04:47:1] error: Exception: SERVLET-execution_failed: Error
> in executing servlet action: javax.servlet.ServletException:
> BeanUtils.populate 
> Exception Stack Trace: 
> javax.servlet.ServletException: BeanUtils.populate at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774) at
> org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
> 61) at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at
> com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
> Source) at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
> Source) at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source) at
> com.kivasoft.thread.ThreadBasic.run(Native Method) at
> java.lang.Thread.run(Thread.java:479) 
> 
> -Original Message-
> From: Tomas Viberg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 12:26 AM
> To: Struts Users Mailing List
> Subject: Re: BeanUtils.populate exception
> 
> 
> Do you know what the root exception is? It's usually included in the stack
> trace of the servlet exception (called nested exception or something like
> that). I think that would give a hint at what's really wrong.
> 
> / Tomas
> 
> 
> - Original Message -
> From: "Miriam Aguirre" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 16, 2002 1:36 AM
> Subject: RE: BeanUtils.populate exception
> 
> 
> >
> >
> >  ok.. since i haven't gotten anywhere in the past 3 hours, i'll repost
> > this..
> >  (i even looked through the source code, RequestUtils.java:774 is a throw
> > exception,
> >  ha ha).
> >
> >  anyway, to further clarify my exasperation i have the following in a jsp:
> >
> >   > property="trng"/>  
> >TRNG
> > > property="mb30"/>  
> >MB30
> >
> >
> >  which is rendered as follows :
> >
> >   > value="true">  
> > > size="2">TRNG
> > > value="true">  
> > > size="2">MB30
> >
> >
> >  and in the form bean i have :
> >
> >   public boolean getTrng() {
> > if(getRecord() != null) {
> > if(getRecord().getMedsAccessInfo().getTrng().intValue() ==
> > Constants.TRUE)
> > return true;
> > }
> > return false;
> > }
> >
> > public boolean getMb30() {
> > if(getRecord() != null) {
> > if(getRecord().getMedsAccessInfo().getMb30().intValue() ==
> > Constants.TRUE)
> > return true;
> > }
> > return false;
> > }
> >
> > public void setTrng(boolean _trng) {
> > getRecord().getMedsAccessInfo().setTrng(new
> > Integer(Constants.TRUE));
> > }
> >
> > public void setMb30(boolean _mb30) {
> > getRecord().getMedsAccessInfo().setMb30(new
> > Integer(Constants.TRUE));
> > }
> >
> >
> >  when displaying the page with a record, all the getters work fine.
> >  if trng is checked, and the form is submitted, it works.
> >  if trng is checked, and any other box(es) is/are checked, and the form is
> > submitted, it works.
> >  if trng is unchecked, and the form is submitted, it does not work.
> >
> >  i'm not sure what the BeanUtils is complaining about.. i searched through
> > the archives, and it looks like these bean util exceptions occur with
> > indexed properties, but in my case, they're not indexed. does anyone see
> the
> > problem here?
> >
> >  thanks,
> >  -Miriam
> >
> >
> > -Original Message-
> > From: Miriam Aguirre [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 15, 2002 1:19 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: BeanUtils.populate exception
> >
> >
> >
> >
> >  I'm having a weird problem with a form ---
> >the form has some basic html:text, html:select and html:checkbox ,
> >fields are available to the user depending on the level of access they
> > have.
> >the weird part happens with a  bunch of checkbox fields, for some
> users,
> > they all work great,
> >for other users, if i unselect a specific box i get :
> >
> >  javax.servlet.ServletException: BeanUtils.popu

Re: Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ?

2002-07-16 Thread @Basebeans.com

Subject: Re: Display XML data with struts (XML<->JavaBean/JSP 1 2 3 4 5 6 7 8 9 xsl 
tag 1 2 3 4 5 6 7 8 9
From: "Vic C." <[EMAIL PROTECTED]>
 ===
I think a good way is using Standard Tags
snip:


  
  
  
  


Jason Zhou wrote:
> I tried Struts extension for Macromedia Ultra Dev. It does not work. Has anyone 
>tried it?
> 
> Best Regards,
> 
> J. Jason Zhou
> Business Intelligence Platform Division (BIP), R & D, 
> SAS Institute, 100 SAS Campus Dr.
> Cary, North Carolina 27513-8617
> Voice: 919-531-0568(O)
> Email: [EMAIL PROTECTED]
> 
> -Original Message-
> From: Heligon Sandra [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 16, 2002 1:09 PM
> To: '[EMAIL PROTECTED]'
> Subject: Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ? stxx ?)
> 
>   I ask oneself about integration of  XML data (XML data are contained
> in a string) with Struts.
>   I read that several techniques are available:
> 
>   - 1) use an open tool to automatically generate JavaBean from the
> XML string
>   store JavaBean in session and then JSP use JB;
> 
>   - 2) use the Struts xsl:apply tag, with nameXml = string XML but
> what is the easiest way to specify a XSL transformation if we don't know
> XSL   syntax. I don't have time to learn XSL syntax in detail and I think
> that XSL examples for sophisticated GUI are not so many   numerous. I
> think thatXSL transformation must be used when we need to change the
> output's content type but does that make sense when the user interface is
> limited toweb browsers ? 
>   what is the best way (XSL parameter type) in term of time
> performance ?
>   Is it better to store an XML string in the session rather than
> JavaBean ?
>   - 3) use the stxx extension. Even if stxx first aim is to remove the
> need to be use JSP and TagLibs for the presentation   layer,  it
> allowsto manipulate JSP pages. This solution requires to define an XML
> action forward in the struts-config file, and then
> processing thedocument object (document of type org.jdom.document) in the
> JSP. It is not good to add JavaCode in the JSPpage. 
>   Has somebody any advice or comparison about these techniques in term
> of complexity and time performance ?
>   For the two first methods a Struts extension can be added to
> Macromedia Ultra Dev to facilitate the user interface development and
>   templates or Tiles allow to create a consistent look and feel for
> the application.
>   For the last point I suppose that XSL offer a similar mechanism. 
> 
>   Thanks in advance for your remarks.
>   
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I pass value

2002-07-16 Thread Miriam Aguirre


 I'm sure there's many ways to do it, my (lazy) way of doing is to simply
append the parameter to forward name, such as:

 return new ActionForward(actionMapping.findForward(Success).getPath()
+"?parameterName="+ someName;

-Original Message-
From: Radhakrishnan R [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 9:01 PM
To: [EMAIL PROTECTED]
Subject: How do I pass value


I am new to struts and currently trying to test the following scenario.

After submitting a form, a image has to be displayed to the user. The image
is dynamically generated.The image file name is generated by the business
tier.As a part of the submission process, I have an action bean , action and
business logic class. I also have a forward for success.

  

  





In other words after the image.jsp is processed, I want to invoke the
showimage.jsp. This jsp file displays the image using .

The problem I have is how do I pass the filename generated by the
business(model) tier
to showimage.jsp.

Any help will be appreciated.

Thanks in advance


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts 1.1 + Tiles

2002-07-16 Thread Eddie Bush

Yes, I got that from the tiles/struts 1.1 blank war file.  I was just 
making sure that I wasn't missing anything ;-)  The 
tiles-documentation.war file seems badly broken to me, and I wanted to 
confirm that the evolutionary process hadn't changed things beyond 
having to have the RequestProcessor.  Tiles documentation mentioned a 
"plugin" - just wanted to be sure!

Incidentally - you guys should package that one with the Struts 
distribution.  The other tiles examples I found that had to do with 1.1 
didn't give me this information.  Surely I'm not the only one confused 
by it's omission.  The tiles/struts 1.1 blank war file answered a lot of 
questions!

Thanks, Vic :-)

Eddie

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: Struts 1.1 + Tiles
>From: "Vic C." <[EMAIL PROTECTED]>
> ===
>At the end of Struts.config add this:
>   
>
>
>
>null="false"/>
>
>
>hth,
>V.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Form tag do not display the proper action URL

2002-07-16 Thread Rubén Rubio de la Oliva

Hi all

I am working with Struts 1.0.2 on TOMCAT and have the following
struts-config entry





 

in the jsp I have the follong code:




And the browser I get the following:
   

So when the form is submitted doesn't reach the wrigth URL which should be
/wipweb/saveTask.do

For any reason, saveTask disappear when executing the form tag.


Any help would be appreciated.

Thanks

Ruben


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with multiple sub-application and tiles

2002-07-16 Thread BLANQUART Fabrice

Hi,

I try to use Tiles with multiple sub-applications. When I try to forward to
a tiles name, I saw that before calling 
the TilesRequestProcessor the framework add to the uri the sub-application
prefix.

Is there a way to prevent this behaviour ?

Right now,In order to make it work, I have add a hook in the doforward of
the TilesRequestProcessor for remove the prefix.

Rgs

Fabrice


*---*
* Cet e-mail et toutes les pièces jointes sont destinés aux *
* seules personnes auxquelles ils sont spécifiquement adressés  *
* et n'engagent que le signataire de ces documents et non la*
* structure dont il dépend. *
* Leur existence et leur contenu ont un caractère confidentiel. *
* Toute utilisation ou diffusion non autorisée est interdite.   *
* Si vous avez reçu cet  e-mail ou si vous détenez sans en être *
* le destinataire, nous vous demandons de bien vouloir nous en  *
* informer immédiatement.   *
* Cette note assure que mimesweeper a vérifié que ce message*
* ne comprenait aucun virus connu à ce jour, néanmoins tout *
* message électronique est susceptible d'altération.*
* Nous déclinons toute responsabilité au titre de ce message*
* s'il a étéaltéré, déformé ou falsifié.*
*---*
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: ORM

2002-07-16 Thread Clay Graham

I had some really bad experiences with Toplink. It offers really quick 
mapping tools, but we found that a number of the relationships to key 
indexes often had to be massaged or data store performance would be poor. 
Many times we just moved over to VIEWS with direct mapping, and let the DB 
guys work out mapping perfomance issues, because the return sets that 
Toplink made were flawed or super slow.

I have not used OJB but I am interested, when in doubt though you can 
alsways just use good 'ol JDBC in the scope of your data store 
object...which gives you the best control but takes time to code and isn't 
as flexible as text or XML descriptors that let you just edit a file to 
make relationship changes.

clay







-Original Message-
From:   Ferran Parra [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, July 15, 2002 10:29 AM
To: Struts Users Mailing List
Subject:ORM

which is the better Object Relational Mapping for relational databases 
(jdbc) and why??
jakata OJB,
castor,
toplink, ... other

thanks
---
Ferran Parra
[EMAIL PROTECTED]
http://www.mubimedia.com
MUBIMEDIA S.L.
C/ Mallorca, 275, 1r 2a 08008 BCN
Tel: 93 215 21 91 / Fax: 93 215 41 21
---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




What does locale="true" really do?

2002-07-16 Thread Kurosaka, Teruhiko
Hello,
Various documents suggest that we are supposed to say:

in Struts-based JSP files.  This directive somehow sets
the locale automatically, as I understand it.
But I am wondering exactly how Struts sets a locale.
Does anyone know?

I am hoping that Struts won't just blindly pick up the
language of the heaviest weight in the request's
Accept-Language header, because that is simply
wrong.  When there is no German version of a .jsp
file, "accept-language: de" should not be honored,
for example.  I am hoping that somehow Struts knows
the list of available languages for a page, but I cannot
seem to locate that description.  Does anyone know
anything about it?


T. "Kuro" Kurosaka, Internationalization Architect
IONA Technologies, Santa Clara, CA USA

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: child window problem, URGENT!!!!!!

2002-07-16 Thread Samip Ladhawala

Hi Guys,

Thanks for replying. we are trying to acheive this
problem by avoiding javascript and scriplets as much
as possible. Let me explian our scenario:

We have a JSP page lets call it page 'A' in which we
have 3 fields LastName, FirstName and MiddleName. We
also have a link for search on this page. We have
option that user can enter first few letters of the
last name and search for the person using search link.
We wanted to open a new window lets call it 'B' and
display the names found on the basis of user input.
Now when user double clicks on one name in child
window 'B', that name will be displayed back on to the
parent window i.e. 'A' in the appropriate fields. 

We are using following approach for the above
scenario:

we have 2 JSP's and 2 formbeans associated to that
JSPs. Now when user enters first few letters of the
LastName on parent form 'A' and clicks search link, we
submit itself i.e. parent Form. We also have one flag
in parent form ,apart from other attributes, whose
value is "false" by default. In action (We use
DispatchAction) we create instance of child form 'B'
and set the attributes for query into it and put that
into session. We make the flag in parent form equal to
"true" and forward the mapping to itself. Now in
parent JSP we use logic tag to check the value of that
flag, if it is true then we call a javascript function
to open a child window 'B'. 
Now in child 'B' JSP onload we submit itself i.e.
Child Form with action equal to 'search'. In search
method in action class of child form we talk to the
business delegate and call the method to get the
results for the user input, which is present in the
child form bean, since we set that from parent and put
it in session. Now after we get the possible matches
on the basis of user input from business we forward
the mapping to same page i.e child jsp. Now when user
double clicks the one value from the list, we submit
child form itself with action equal to selectPerson.
In this method we get the parent form from the session
and set the appropriate values in LastName, FirstName
and MiddleName from the selected value and set the
flag in parentform equal to "false". Then thru
javascript in child JSP we are reloading the parent
and closing the child window. This doesn't reload the
parent window with new values in the formbean, which
is being set in child action. We checked the session
using debugger and we found that values in the parent
form are being updated by child action correctly.

Questions:
1) Does location.realod()[in javascript] flush the new
values set in the session ?
2) What is the best way to refresh or submit the
parent from child?
3) Is there any better way to solve this (By avoiding
use of javascript and scriplets as much as possible)?

Sorry for long Email. Any help will be appreciated.

Thanks,
Samip

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How do I pass value

2002-07-16 Thread Radhakrishnan R

I am new to struts and currently trying to test the following scenario.

After submitting a form, a image has to be displayed to the user. The image
is dynamically generated.The image file name is generated by the business
tier.As a part of the submission process, I have an action bean , action and
business logic class. I also have a forward for success.

  

  





In other words after the image.jsp is processed, I want to invoke the
showimage.jsp. This jsp file displays the image using .

The problem I have is how do I pass the filename generated by the
business(model) tier
to showimage.jsp.

Any help will be appreciated.

Thanks in advance


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html:options

2002-07-16 Thread tsawyer

Hi,

We're trying to use the html:options tag (struts 1.0.2) to render a drop list 
containing the values from a String Tokenizer, which is tokenizing a comma delimited 
string.  We just want a drop list that contains each of the values in the list, with 
the value and description identical.

The behaviour we are seeing is that we are getting half the number of options, because 
the code is sticking the first value from the list as the value, then the second as 
the description, then the third as the second value, and the forth as the second 
description. 

This would appear to be bourne out by this code from the tag itself:

  // Otherwise, use the separate iterators mode to render options
else {

  // Construct iterators for the values and labels collections
  Iterator valuesIterator = getIterator(name, property);
  Iterator labelsIterator = null;
  if ((labelName == null) && (labelProperty == null))
  labelsIterator = getIterator(name, property); // Same coll.
  else
  labelsIterator = getIterator(labelName, labelProperty);

  // Render the options tags for each element of the values coll.
  while (valuesIterator.hasNext()) {
  String value = valuesIterator.next().toString();
  String label = value;
  if (labelsIterator.hasNext())
  label = labelsIterator.next().toString();
  addOption(sb, value, label,
selectTag.isMatched(value));
  }
}

It's using the same iterator for labels and values, and doing a next() twice per row.

Is this a bug?  Am I missing something obvious?

Cheers,

Tim.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How do I pass value

2002-07-16 Thread Radhakrishnan R

Hello,
I am new to struts and currently trying to test the following scenario.

After submitting a form, a image has to be displayed to the user. The image
is dynamically generated.The image file name is generated by the business
tier.As a part of the submission process, I have an action bean , action and
business logic class. I also have a forward for success.

  

  





In other words after the image.jsp is processed, I want to invoke the
showimage.jsp. This jsp file displays the image using .

The problem I have is how do I pass the filename generated by the
business(model) tier
to showimage.jsp.

Any help will be appreciated.

Thanks in advance


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts 1.1 + Tiles

2002-07-16 Thread Eddie Bush

Thanks, Cedric :-)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: using tiles in struts 1.1b ?

2002-07-16 Thread Eddie Bush

See the other thread entitled "Struts 1.1 + Tiles" -- if you've just 
subscribed, try searching the archives for it.  Cedric (the Tiles 
maintainer) just posted a nice reply to my question :-)

Regards,

Eddie

[EMAIL PROTECTED] wrote:

>Hi all,
>
>I have downloaded the Struts 1.1b, and I'm going through the tutorial in the
>example application 'struts-tiles', which doesn't seem to be updated to the
>version 1.1b of Struts.
>I've got most things working, but now I'm stuck on 6.6 Definitions as
>Forward.
>
>Question:
>How do I get my Struts action to forward to a tile definition instead of an
>action ?
>
>I get the following message:
>
>'Path forward.example.success.page' does not start with a "/" character'
>
>and if I add the "/", then it will look for that action (in the
>strust-config.xml) which then of course doesn't exist ...how do I get it to
>look in the tiles-config.xml ?
>
>Thanks in advance,
>
>Esther 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




enctype= multipart form, validation errors, file is lost

2002-07-16 Thread Eva Plaza

I think my original message was lost - please excuse if you receive this
twice:
 
 
 
Hello Everyone,
 
 I am having trouble with a multi-part form, using Struts 1.1b-1 and Tomcat
4.0. I had seen some older messages on the list archives (1yr+ old), but I
was wondering if  anyone has a more recent solution.
 
 When a string field fails validation, even after supplying a valid
multi-part(file) for upload, the stack trace that comes out to the browser
includes this message: "javax.servlet.ServletException: MultipartIterator: no
multipart request data sent".
 
The same form, when all the fields are valid, executes with no problem. It's
just that the file that is being uploaded is lost when a different field
fails struts validation.
 
Does anyone have the same problem? If so, what did you do about it? 
 
Thanks very much,
 Eva
 



Re: Real path question

2002-07-16 Thread Eddie Bush

Property files are treated like Java classes (in a sense).  You 
reference them by their "package".  Thus, my best guess is that your 
putting the actual file path in for your parameter value is causing the 
behavior you see.  What you _should_ do (assuming you have it in your 
top-level classes directory) is simply reference it by it's file name: 
"myFile.properties".  Note that you could move it into your applications 
package struction and reference it by it's fully-qualified package name, 
thus:

WEB-INF/classes/com/mycompany/config/myFile.properties would be 
referenced as com.mycompany.config.myFile.properties

... just like you'd reference a class ...

HTH,

Eddie

William W wrote:

> Hi,
> I have a parameter that is a file propertie in my plugIn, the 
> parameter name is "myFile" and the parameter value is
> "/WEB-INF/classes/myFile.properties". But when I try to read the file, 
> the system is looking for it in "c:\WEB-INF\classes\myFile.properties".
> How can I get the real path ?
>
> Thanks,
> William. 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Indexed Properties - soluce :-)

2002-07-16 Thread Eddie Bush

May I make a suggestion?  You're causing the implicit creation of many 
strings ... and doing it in a loop (bad).  Try this:







This way, you don't have the implicit string creation (you get one every 
time you use the + to concatenate).  Object creation is slow :-( so 
don't do it if you don't have to.

Regards,

Eddie

Arnaud HERITIER wrote:

>Ok I found myself a solution (it seems) :
>
>I need to modify the JSP page to index manually the property and I don't
>need to use the indexed="true" which indexes the BEAN and not the property :
>
>property="myRadios">
>" value="A"/>property="<%=\"myRadios[\"+index+\"]\"%>" value="B"/>
>
>
>
>Arnaud
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ? stxx ?)

2002-07-16 Thread Jason Zhou

I tried Struts extension for Macromedia Ultra Dev. It does not work. Has anyone tried 
it?

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 1:09 PM
To: '[EMAIL PROTECTED]'
Subject: Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ? stxx ?)

I ask oneself about integration of  XML data (XML data are contained
in a string) with Struts.
I read that several techniques are available:

- 1) use an open tool to automatically generate JavaBean from the
XML string
store JavaBean in session and then JSP use JB;

- 2) use the Struts xsl:apply tag, with nameXml = string XML but
what is the easiest way to specify a XSL transformation if we don't know
XSL syntax. I don't have time to learn XSL syntax in detail and I think
that XSL examples for sophisticated GUI are not so many numerous. I
think that  XSL transformation must be used when we need to change the
output's content type but does that make sense when the user interface is
limited to  web browsers ? 
what is the best way (XSL parameter type) in term of time
performance ?
Is it better to store an XML string in the session rather than
JavaBean ?
- 3) use the stxx extension. Even if stxx first aim is to remove the
need to be use JSP and TagLibs for the presentation layer,  it
allows  to manipulate JSP pages. This solution requires to define an XML
action forward in the struts-config file,   and then
processing the  document object (document of type org.jdom.document) in the
JSP. It is not good to add JavaCode in the JSP  page. 
Has somebody any advice or comparison about these techniques in term
of complexity and time performance ?
For the two first methods a Struts extension can be added to
Macromedia Ultra Dev to facilitate the user interface development and
templates or Tiles allow to create a consistent look and feel for
the application.
For the last point I suppose that XSL offer a similar mechanism. 

Thanks in advance for your remarks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Authentication, Authorization in Struts 1.1

2002-07-16 Thread Jason Rosen

Hi,
Role validation is already implemented in the RequestProcessor portion of
the "Controller" via the RequestProcessor.processRoles method.

Take a look at the processRoles code (great thing about OpenSource), but in
a nutshell:

processRoles 
1. checks the ActionMapping to see if roles are configured for authorization
to the requested Action.
2. If no roles are defined in the ActionMapping, then processRoles returns
true and the RequestProcessor continues as normal, processing the requested
Action.
3. If roles are defined, the request.isUserinRole method is used to have the
container determine what roles the authenticated user is a member of.
4. If the user is a member of an authorized role (from ActionMapping), then
processRoles returns true and processing continues as normal.
5. If the user is NOT a member of an authorized role, processRoles writes an
HTTP 400 error to the HttpServletResponse with a message and returns false,
so Struts processing does not continue.

I would imagine that to customize a Struts response for the 400 error, you
could configure an

   400
   /struts-mapping/struts-action


or you could override processRoles to do some other custom response.

Jason

-Original Message-
From: rainer juenger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:39 AM
To: Struts Users Mailing List
Subject: Re: Authentication, Authorization in Struts 1.1


Hi,

> Every container will provide it's own mechanisms to do that sort of thing.
> But your application just protects things in terms of roles, and will run
> on any such container.


but does that mechanism work sort of automatically?
Or do I have to implement it within the Controller?
e.g.:
if (mapping.getRoles() = ContainerSecurity.getUserRole())
mapping.findForward("gothere")

If it works automatically, what happens when the access is not allowed for
the user?


> > Regards,
> > Amit
>
> Craig

thanks, Rainer




--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: Authentication, Authorization in Struts 1.1

2002-07-16 Thread @Basebeans.com

Subject: Re: Authentication, Authorization in Struts 1.1
From: "Vic C." <[EMAIL PROTECTED]>
 ===
Another link:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRealm
Is one example, and it lets you do "single sign on" accross webapps if 
you read, all with 0 coding. It is a app server thing, not a framework 
thing.
Vic

Craig R. McClanahan wrote:
> 
> On Tue, 16 Jul 2002, Amit Vaidya wrote:
> 
> 
>>Date: Tue, 16 Jul 2002 16:06:41 +0530
>>From: Amit Vaidya <[EMAIL PROTECTED]>
>>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>Subject: Authentication, Authorization in Struts 1.1
>>
>>Hi,
>>
>>Does Struts 1.1 provide any means of implementing Authentication/Authorization?
>>
> 
> 
> No, and it shouldn't.  That should be the container's responsibility.
> 
> 
>>While going through the code, I found the following methods related to (Security) 
>Roles.
>>processRoles()
>>getRoles()
>>setRoles()
>>
>>- How exactly are the Roles cofigured? Is struts-config.xml file used for this?
>>  A sample config would greatly help.
>>- Which source does call setRoles() method? How is the roles attribute in 
>ActionConfig.java populated?
>>
>>TIA,
>>
> 
> 
> The roles being talked about are the ones you can use with container
> managed security that is provided by your servlet container.  You
> configure  elements in your web.xml file that declare
> the required roles to access certain URLs, and then you configure your
> container's user database (details will be specific to which container you
> use) to add appropriate users and roles.  Details on security constraints
> are in the servlet spec.
> 
>   http://java.sun.com/products/servlet/download/
> 
> For example, if you're using Tomcat 4, the default "user database" is an
> XML file $CATALINA_HOME/conf/tomcat-users.xml.  Out of the box, the
> example application has a protected area that you can experiment with, and
> then look at the web.xml file to see how it was configured:
> 
>   http://localhost:8080/examples/jsp/security/protected/
> 
> with a username "tomcat" and password "tomcat" (if you haven't adjusted
> the default user file).  Tomcat also has lots of other flexibility,
> including the use of a database or directory server as the source of user
> information, the ability to use different user databases for different
> webapps, and so on.  In 4.1.x releases, there is even an administrative
> webapp (built on top of Struts) that lets you add and remove users
> through a GUI.
> 
> Every container will provide it's own mechanisms to do that sort of thing.
> But your application just protects things in terms of roles, and will run
> on any such container.
> 
> 
>>Regards,
>>Amit
> 
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




weirdness in Websphere 3.5.5

2002-07-16 Thread @Basebeans.com

Subject:  weirdness in Websphere 3.5.5
From: "Reginald Ister" <[EMAIL PROTECTED]>
 ===
Hi,

I have the following action define in struts-config.xml:



with the corresponding formbean:


In my login jsp I have the form defined as


When this is rendered in Websphere, the form action is:



While the correct rendering should be:


Notice the missing "/do" pattern.  Has anyone else seen this behavior?

I am using Struts 1.0.2 with Tiles

Reg



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ? stxx ?)

2002-07-16 Thread Heligon Sandra

I ask oneself about integration of  XML data (XML data are contained
in a string) with Struts.
I read that several techniques are available:

- 1) use an open tool to automatically generate JavaBean from the
XML string
store JavaBean in session and then JSP use JB;

- 2) use the Struts xsl:apply tag, with nameXml = string XML but
what is the easiest way to specify a XSL transformation if we don't know
XSL syntax. I don't have time to learn XSL syntax in detail and I think
that XSL examples for sophisticated GUI are not so many numerous. I
think that  XSL transformation must be used when we need to change the
output's content type but does that make sense when the user interface is
limited to  web browsers ? 
what is the best way (XSL parameter type) in term of time
performance ?
Is it better to store an XML string in the session rather than
JavaBean ?
- 3) use the stxx extension. Even if stxx first aim is to remove the
need to be use JSP and TagLibs for the presentation layer,  it
allows  to manipulate JSP pages. This solution requires to define an XML
action forward in the struts-config file,   and then
processing the  document object (document of type org.jdom.document) in the
JSP. It is not good to add JavaCode in the JSP  page. 
Has somebody any advice or comparison about these techniques in term
of complexity and time performance ?
For the two first methods a Struts extension can be added to
Macromedia Ultra Dev to facilitate the user interface development and
templates or Tiles allow to create a consistent look and feel for
the application.
For the last point I suppose that XSL offer a similar mechanism. 

Thanks in advance for your remarks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BeanUtils.populate exception

2002-07-16 Thread Miriam Aguirre


 unfortunately, that's the only exception in the log :
 i;m going to try to change all the field/method names to all capitals.. not
sure
 if that will help, but i guess it can't hurt to try.
 
 -Miriam

[15/Jul/2002 17:04:47:1] error: Exception: SERVLET-execution_failed: Error
in executing servlet action: javax.servlet.ServletException:
BeanUtils.populate 
Exception Stack Trace: 
javax.servlet.ServletException: BeanUtils.populate  at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774) at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source) at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source) at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)   at
com.kivasoft.thread.ThreadBasic.run(Native Method)  at
java.lang.Thread.run(Thread.java:479) 

-Original Message-
From: Tomas Viberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 12:26 AM
To: Struts Users Mailing List
Subject: Re: BeanUtils.populate exception


Do you know what the root exception is? It's usually included in the stack
trace of the servlet exception (called nested exception or something like
that). I think that would give a hint at what's really wrong.

/ Tomas


- Original Message -
From: "Miriam Aguirre" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 1:36 AM
Subject: RE: BeanUtils.populate exception


>
>
>  ok.. since i haven't gotten anywhere in the past 3 hours, i'll repost
> this..
>  (i even looked through the source code, RequestUtils.java:774 is a throw
> exception,
>  ha ha).
>
>  anyway, to further clarify my exasperation i have the following in a jsp:
>
>   property="trng"/>  
>TRNG
> property="mb30"/>  
>MB30
>
>
>  which is rendered as follows :
>
>   value="true">  
> size="2">TRNG
> value="true">  
> size="2">MB30
>
>
>  and in the form bean i have :
>
>   public boolean getTrng() {
> if(getRecord() != null) {
> if(getRecord().getMedsAccessInfo().getTrng().intValue() ==
> Constants.TRUE)
> return true;
> }
> return false;
> }
>
> public boolean getMb30() {
> if(getRecord() != null) {
> if(getRecord().getMedsAccessInfo().getMb30().intValue() ==
> Constants.TRUE)
> return true;
> }
> return false;
> }
>
> public void setTrng(boolean _trng) {
> getRecord().getMedsAccessInfo().setTrng(new
> Integer(Constants.TRUE));
> }
>
> public void setMb30(boolean _mb30) {
> getRecord().getMedsAccessInfo().setMb30(new
> Integer(Constants.TRUE));
> }
>
>
>  when displaying the page with a record, all the getters work fine.
>  if trng is checked, and the form is submitted, it works.
>  if trng is checked, and any other box(es) is/are checked, and the form is
> submitted, it works.
>  if trng is unchecked, and the form is submitted, it does not work.
>
>  i'm not sure what the BeanUtils is complaining about.. i searched through
> the archives, and it looks like these bean util exceptions occur with
> indexed properties, but in my case, they're not indexed. does anyone see
the
> problem here?
>
>  thanks,
>  -Miriam
>
>
> -Original Message-
> From: Miriam Aguirre [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 1:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: BeanUtils.populate exception
>
>
>
>
>  I'm having a weird problem with a form ---
>the form has some basic html:text, html:select and html:checkbox ,
>fields are available to the user depending on the level of access they
> have.
>the weird part happens with a  bunch of checkbox fields, for some
users,
> they all work great,
>for other users, if i unselect a specific box i get :
>
>  javax.servlet.ServletException: BeanUtils.populate
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
> at
>
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
> 61)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
> Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
> Source)
> at com.kivasoft.applogic.AppLogic.execute(Unkno

Re: Authentication, Authorization in Struts 1.1

2002-07-16 Thread rainer juenger

Hi,

> Every container will provide it's own mechanisms to do that sort of thing.
> But your application just protects things in terms of roles, and will run
> on any such container.


but does that mechanism work sort of automatically?
Or do I have to implement it within the Controller?
e.g.:
if (mapping.getRoles() = ContainerSecurity.getUserRole())
mapping.findForward("gothere")

If it works automatically, what happens when the access is not allowed for
the user?


> > Regards,
> > Amit
>
> Craig

thanks, Rainer




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Debug Struts in Tomcat

2002-07-16 Thread Jason Rosen

I don't know much about Eclipse, but I use an Ant task that uses the Tomcat
manager app to reload my web app after I deploy it.  I also compile, build,
and deploy my web app from Ant, which allows me to run a single task that
takes care of everything at once at the click of a button: compile, build,
undeploy web app on Tomcat, copy to app server deploy directory, deploy app
on Tomcat.  If Eclipse incorporates Ant or another make-like facility, then
you could use a similar methodology.
Take a look at the Tomcat manager app for reloading your application
on-the-fly:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

Jason

-Original Message-
From: Hoang, Hai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:24 AM
To: 'struts-user'
Subject: Debug Struts in Tomcat


I am using Tomcat, Struts, and Eclipse to code my application.  I found
myself spend too much time reboot tomcat because either to changes the
applicationResources.properties file or some action classes.  Is there a
better way for me to do this without reboot tomcat?

Thanks


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Debug Struts in Tomcat

2002-07-16 Thread Jason Zhou

The classes are reloaded automatically right now. For property file, you can to do an 
explicit reload for now.

Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D, 
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 12:27 PM
To: 'Struts Users Mailing List'
Subject: RE: Debug Struts in Tomcat

In tomcat-users.xml add a manager role:

  
  
  
  


Then, from your browser:
http://yourip:8080/manager/reload?path=/struts-example

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Hoang, Hai [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 11:24 AM
To: 'struts-user'
Subject: Debug Struts in Tomcat

I am using Tomcat, Struts, and Eclipse to code my application.  I found
myself spend too much time reboot tomcat because either to changes the
applicationResources.properties file or some action classes.  Is there a
better way for me to do this without reboot tomcat?

Thanks


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Debug Struts in Tomcat

2002-07-16 Thread Jacob Hookom

In tomcat-users.xml add a manager role:

  
  
  
  


Then, from your browser:
http://yourip:8080/manager/reload?path=/struts-example

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Hoang, Hai [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 11:24 AM
To: 'struts-user'
Subject: Debug Struts in Tomcat

I am using Tomcat, Struts, and Eclipse to code my application.  I found
myself spend too much time reboot tomcat because either to changes the
applicationResources.properties file or some action classes.  Is there a
better way for me to do this without reboot tomcat?

Thanks


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Debug Struts in Tomcat

2002-07-16 Thread Hoang, Hai

I am using Tomcat, Struts, and Eclipse to code my application.  I found
myself spend too much time reboot tomcat because either to changes the
applicationResources.properties file or some action classes.  Is there a
better way for me to do this without reboot tomcat?

Thanks


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What should I do in Action if I do not want to forward to anywherein perform()???

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Struts Newsgroup wrote:

> Date: Tue, 16 Jul 2002 08:40:02 -0700
> From: Struts Newsgroup <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: What should I do in Action if I do not want to forward to
> anywhere in perform()???
>
> Subject: What should I do in Action if I do not want to forward to anywhere in 
>perform()???
> From: "J. Jason Zhou" <[EMAIL PROTECTED]>
>  ===
> I just want to write out something through response object and do NOT want
> to forward to any jsp page???
>

The answer to this is in the Javadocs for Action.perform() -- return null.

> --
> Best Regards,
>
> J. Jason Zhou

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Exception with null Date form field

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Schneider, Eric wrote:

> Date: Tue, 16 Jul 2002 09:33:45 -0600
> From: "Schneider, Eric" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: Exception with null Date form field
>
> Hi,
>
> I've notice a lot of posts lately about the BeanUtils class.  I was just
> wondering if someone could confirm if this is a previously reported bug that
> has been fixed in the nightly builds.
>
> I have a form bean that contains an attribute of type java.sql.Date.  While
> attempting to save the values for this form and exception is thrown in
> BeanUtils.populate()/SqlDateConverter.convert() methods if the user leaves
> this date field blank.  The ActionForm's validate method is never reached,
> so it appears that I can't catch this scenario.  Is there a resolution to
> this?.besides changing the form type to a string.
>

In your form bean, this field should be a String, not a Date.  That is for
two reasons:

* Populating the form bean happens before validation, so you have
  to ensure that conversion will be successful.  It won't be if the
  user types an invalid value.  That's what happened to you here.

* If the user does type an invalid value, you want to be able to
  reproduce exactly what he or she *did* type, just like any GUI
  program will.

Conversion to a Date should happen in your Action, once you know that
validation has been successful and that you won't run into conversion
errors.  A copyProperties() method was added to BeanUtils that knows how
to do the conversions that is perfect for use in such circumstances.

But your form bean field should absolutely NOT be a Date.

> Thanks,
> Eric
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Jasper error with struts & patch

2002-07-16 Thread Brian P. Millett


The jsp code it's self:
  
   
  

The JSP generated code that is bad:
private boolean _jspx_meth_logic_present_0(javax.servlet.jsp.tagext.Tag
   _jspx_th_html_form_0,
   javax.servlet.jsp.PageContext
   pageContext)
  throws Throwable {
JspWriter out = pageContext.getOut();
HttpServletRequest request =
(HttpServletRequest)pageContext.getRequest();
ServletResponse response = pageContext.getResponse();
/*   logic:present  */
{

  [SNIP]

   JspRuntimeLibrary.include(request, 
 response,
 "/prospectmenu.jsp",
 out,
 true);


The error:
An error occurred at line: 58 in the jsp file: /content/prospectform.jsp

Generated servlet error:
[javac] Compiling 1 source file
/opt2/jakarta-tomcat-4.1.7-LE-jdk14/work/Standalone/localhost/helpdesk/content/p
rospectform$jsp.java:371:
include(javax.servlet.http.HttpServletRequest,javax.se
rvlet.http.HttpServletResponse,java.lang.String,javax.servlet.jsp.JspWriter,bool
ean) in org.apache.jasper.runtime.JspRuntimeLibrary cannot be applied to
(javax.
servlet.http.HttpServletRequest,javax.servlet.ServletResponse,java.lang.String,j
avax.servlet.jsp.JspWriter,boolean)
  JspRuntimeLibrary.include(request, response,
"/prospectmenu.jsp", out,
 true);
   ^
1 error


The problem is that JspRuntimeLibrary.include signature does not match
the code generated:  ServletResponse can not be morphed into a
HttpServletResponse.  So here is a patch, BUT I do not know what else it
will "break".  I figure that someone who "knows" jasper can figure out
what to do. :-)


PATCH:
 diff -wruN /var/tmp/bpm/Generator.java.~1~
src/share/org/apache/jasper/compiler/Generator.java 
--- /var/tmp/bpm/Generator.java.~1~ Thu Jun 27 12:32:17 2002
+++ src/share/org/apache/jasper/compiler/Generator.java Tue Jul 16
10:46:17 2002
@@ -1155,7 +1155,7 @@
out.println("HttpServletRequest request =
(HttpServletRequest)pageContext.getRequest();");
}
if (n.isHasIncludeAction()) {
-   out.println("ServletResponse response =
pageContext.getResponse();");
+out.println("HttpServletResponse response =
(HttpServletResponse)pageContext.getResponse();");
}
}
 

-- 
Brian Millett
Enterprise Consulting Group   "Shifts in paradigms
(314) 205-9030   often cause nose bleeds."
[EMAIL PROTECTED]   Greg Glenn


--- /var/tmp/bpm/Generator.java.~1~ Thu Jun 27 12:32:17 2002
+++ src/share/org/apache/jasper/compiler/Generator.java Tue Jul 16 10:46:17 2002
@@ -1155,7 +1155,7 @@
out.println("HttpServletRequest request = 
(HttpServletRequest)pageContext.getRequest();");
}
if (n.isHasIncludeAction()) {
-   out.println("ServletResponse response = 
pageContext.getResponse();");
+out.println("HttpServletResponse response = 
+(HttpServletResponse)pageContext.getResponse();");
}
}
 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Authentication, Authorization in Struts 1.1

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Amit Vaidya wrote:

> Date: Tue, 16 Jul 2002 16:06:41 +0530
> From: Amit Vaidya <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Authentication, Authorization in Struts 1.1
>
> Hi,
>
> Does Struts 1.1 provide any means of implementing Authentication/Authorization?
>

No, and it shouldn't.  That should be the container's responsibility.

> While going through the code, I found the following methods related to (Security) 
>Roles.
> processRoles()
> getRoles()
> setRoles()
>
> - How exactly are the Roles cofigured? Is struts-config.xml file used for this?
>   A sample config would greatly help.
> - Which source does call setRoles() method? How is the roles attribute in 
>ActionConfig.java populated?
>
> TIA,
>

The roles being talked about are the ones you can use with container
managed security that is provided by your servlet container.  You
configure  elements in your web.xml file that declare
the required roles to access certain URLs, and then you configure your
container's user database (details will be specific to which container you
use) to add appropriate users and roles.  Details on security constraints
are in the servlet spec.

  http://java.sun.com/products/servlet/download/

For example, if you're using Tomcat 4, the default "user database" is an
XML file $CATALINA_HOME/conf/tomcat-users.xml.  Out of the box, the
example application has a protected area that you can experiment with, and
then look at the web.xml file to see how it was configured:

  http://localhost:8080/examples/jsp/security/protected/

with a username "tomcat" and password "tomcat" (if you haven't adjusted
the default user file).  Tomcat also has lots of other flexibility,
including the use of a database or directory server as the source of user
information, the ability to use different user databases for different
webapps, and so on.  In 4.1.x releases, there is even an administrative
webapp (built on top of Struts) that lets you add and remove users
through a GUI.

Every container will provide it's own mechanisms to do that sort of thing.
But your application just protects things in terms of roles, and will run
on any such container.

> Regards,
> Amit

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Missing in Action ?

2002-07-16 Thread Galbreath, Mark

Aaahhh...airport security - that's another tail of woe that I'll save for
tomorrow!  And I agree with you on the incredible stupidity exercised by
American airport and flight personnel.  The next time I go to Europe, I'm
taking a boat!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 11:49 AM
To: Struts Users Mailing List
Subject: RE: Missing in Action ?


I never fly into London anymore, Heathrow or Gatwick. I find Birmingham
International Airport to be a much calmer experience. Same level of
facilities, but less traffic, nicer people and MUCH easier to get to the
motorway. And the other helpful factor for me is that it is the same
distance from Birmingham to my parents house as it would be from London.

Not that I have any plans to fly again anytime soon with all the stupidity
displayed by the U.S. airport security folks.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 16, 2002 10:39 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Missing in Action ?
>
>
>I forgot to mention that besides all that, AA lost our luggage 
>from BWI to
>Heathrow, which cost us an additional 1/2 day and several 
>trips to Terminal
>3.  :-(
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 16, 2002 11:29 AM
>
>Yeah, and I only had a short nap on Sunday afternoon. I just 
>want you to
>know that I have it rough! (Not to mention growing up living 
>in a paper bag
>in the middle of the road! :-)
>
>Simon
>
>>-Original Message-
>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 16, 2002 10:28 AM
>>
>>DAAMN!!!
>>
>>...and I was just complaining about my weekend from 
>>hell..I guess I had
>>a good weekend after hearing your story.
>>
>>Later
>>
>>James Mitchell
>>
>>> -Original Message-
>>> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>> Sent: Tuesday, July 16, 2002 10:31 AM
>>>
>>> Well, the trip to Amsterdam did not begin very well.  Before 
>>we even leave
>>> BWI on Tuesday we are stuck on the tarmac for 2 hours while all
>>> the luggage
>>> in the hold is removed because there is a mismatch between 
>>the IDs on the
>>> luggage and the people on the plane.
>>>
>>> On the flight over on American Airlines we hit some turbulence
>>> just south of
>>> Newfoundland and the captain turned the seat belt sign on.  Jane
>>> was chilly
>>> so I got up to find her an extra blanket.  The
>>> bitch-flight-attendant-from-hell marched over to me and rudely
>>> ORDERED me to
>>> take my seat and buckle my seat belt.  I told her I would as 
>>soon as found
>>> my wife a blanket.  She told me she would get her a blanket 
>>and for me to
>>> sit down immediately.  I sat down...we waited...and 
>>waited...and the bitch
>>> never returned.  So I got up again and started looking through the
>>> over-heads for a blanket.  She shows up again with some 
>>other dude and
>>> demands my boarding pass, which I hand the dude.
>>>
>>> We arrive at Heathrow 3-4 hours later without further 
>>incident.  Before we
>>> can deplane, the London police come aboard, arrest me, and 
>>take me to the
>>> local station.  I'm charged with "Disobeying a direct order from
>>> the flight
>>> crew," thrown in a cell without running water, food or 
>>outside contact for
>>> 10 hours before I'm released on bail.  The following day we spend
>>> all day in
>>> a magistrate's court in Uxbridge where, against the advise of my
>>> solicitor I
>>> plead guilty under protest (if I fight it, I have to post a bond
>>> and return
>>> to the UK sometime in the future) and am fined £300 (about
>>> US$450) and have
>>> to pay the solicitor another £150.  Now I go through the 
>>administrative BS
>>> to get my bail money back and, because my passport has not 
>>accompanied the
>>> money, have to return all the way back to Heathrow for it.
>>>
>>> So at the end of my second day in London we are making a 
>>frantic race to
>>> Victoria station through the London Underground to get the 
>>last train to
>>> Dover.  The Tube is very confusing, we get on the wrong 
>>line, and in the
>>> confusion I leave our carry-on bag on one of the lines 
>>containing, among
>>> other things, all our flight, train, ferry, and hotel 
>>reservations info.
>>>
>>> We finally get to Dover in time for the last ferry to 
>>Calais-Ville but by
>>> the time we get to Calais, all trains have stopped running 
>>and we have to
>>> wait until the next day (Friday) around noon.  When we 
>finally get to
>>> Amsterdam after about 8 hours on and off trains late Friday 
>>night, I can't
>>> the name of our hotel but remember where it appeared to be on 

Re: Plug-In Ordering

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Jerry Jalenak wrote:

> Date: Tue, 16 Jul 2002 08:24:10 -0500
> From: Jerry Jalenak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Plug-In Ordering
>
> With the move to a plug-in architecture, is the order that the plug-ins are
> specified in struts-config important? i.e. should the TilePlugIn come before
> the ValidatorPlugIn, and should everything come before any locally developed
> plug-ins, etc.?
>

The init() methods of plugins are called in they order they are listed in
"struts-config.xml".  Off the top of my head, I don't know if there are
order dependencies between tiles and validator, but the usual rules apply
-- if *your* plugin depends on some other plugin having been initialized
first, be sure to put your plugin after that one in the config file.

> Jerry
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: What should I do in Action if I do not want to forward to anywhere in perform()???

2002-07-16 Thread James Mitchell

return null from your Action.

(you can't forward anyway if you've written to the browser)


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 11:40 AM
> To: [EMAIL PROTECTED]
> Subject: What should I do in Action if I do not want to forward to
> anywhere in perform()???
>
>
> Subject: What should I do in Action if I do not want to forward
> to anywhere in perform()???
> From: "J. Jason Zhou" <[EMAIL PROTECTED]>
>  ===
> I just want to write out something through response object and do NOT want
> to forward to any jsp page???
>
> --
> Best Regards,
>
> J. Jason Zhou
> Business Intelligence Platform Division (BIP), R & D,
> SAS Institute, 100 SAS Campus Dr.
> Cary, North Carolina 27513-8617
> Voice: 919-531-0568(O)
> Email: [EMAIL PROTECTED]
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Latest Nightly build

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Jon.Ridgway wrote:

> Date: Tue, 16 Jul 2002 11:39:37 +0100
> From: Jon.Ridgway <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Latest Nightly build
>
> Hi All,
>
> Further to my previous post I have just enabled all debugging/logging in
> Struts/WebLogic and download the very latest build. I'm still getting an
> exception when attempting to deploy a web app that works fine with the 1.1b1
> release. The exception is :
>
> <16-Jul-02 11:33:25 BST>java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>   at java.lang.String.substring(String.java:1525)
>   at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
>   at weblogic.utils.jars.Manifest.stream(Manifest.java:78)
>   at
> weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
> :398)
>

The fact that this is coming from WebLogic's code (presumably the part
that reads JAR file manifests) implies that it's something going on inside
WebLogic's JVM.  I'm afraid you're going to have to go to them for help to
figure out precisely what it's complaining about.


> etc..
>
> This is caused by something in struts.jar. If I replace the jar with the
> 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated.
>
> Jon Ridgway
>

Craig


>
>
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence. Your
> co-operation in this matter is greatly appreciated.
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Related Select lists

2002-07-16 Thread Ben A. Geyer


I have an application that needs to provide a way for a user to drill down
through hierarchical data.  I'd like to do what heavyweight clients are
able to do and relate two select lists to each other.  That way, when a
choice is made from the first select, the options in the second are
filtered to those relating.  ColdFusion has a custom tag which generates a
bunch of Javascript to do this.  I'd like to find the best way to do it
with Struts.

Any thoughts?

Thanks,
Ben Geyer
Caterpillar Inc.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Missing in Action ?

2002-07-16 Thread Chappell, Simon P

I never fly into London anymore, Heathrow or Gatwick. I find Birmingham International 
Airport to be a much calmer experience. Same level of facilities, but less traffic, 
nicer people and MUCH easier to get to the motorway. And the other helpful factor for 
me is that it is the same distance from Birmingham to my parents house as it would be 
from London.

Not that I have any plans to fly again anytime soon with all the stupidity displayed 
by the U.S. airport security folks.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 16, 2002 10:39 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Missing in Action ?
>
>
>I forgot to mention that besides all that, AA lost our luggage 
>from BWI to
>Heathrow, which cost us an additional 1/2 day and several 
>trips to Terminal
>3.  :-(
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 16, 2002 11:29 AM
>
>Yeah, and I only had a short nap on Sunday afternoon. I just 
>want you to
>know that I have it rough! (Not to mention growing up living 
>in a paper bag
>in the middle of the road! :-)
>
>Simon
>
>>-Original Message-
>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 16, 2002 10:28 AM
>>
>>DAAMN!!!
>>
>>...and I was just complaining about my weekend from 
>>hell..I guess I had
>>a good weekend after hearing your story.
>>
>>Later
>>
>>James Mitchell
>>
>>> -Original Message-
>>> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>> Sent: Tuesday, July 16, 2002 10:31 AM
>>>
>>> Well, the trip to Amsterdam did not begin very well.  Before 
>>we even leave
>>> BWI on Tuesday we are stuck on the tarmac for 2 hours while all
>>> the luggage
>>> in the hold is removed because there is a mismatch between 
>>the IDs on the
>>> luggage and the people on the plane.
>>>
>>> On the flight over on American Airlines we hit some turbulence
>>> just south of
>>> Newfoundland and the captain turned the seat belt sign on.  Jane
>>> was chilly
>>> so I got up to find her an extra blanket.  The
>>> bitch-flight-attendant-from-hell marched over to me and rudely
>>> ORDERED me to
>>> take my seat and buckle my seat belt.  I told her I would as 
>>soon as found
>>> my wife a blanket.  She told me she would get her a blanket 
>>and for me to
>>> sit down immediately.  I sat down...we waited...and 
>>waited...and the bitch
>>> never returned.  So I got up again and started looking through the
>>> over-heads for a blanket.  She shows up again with some 
>>other dude and
>>> demands my boarding pass, which I hand the dude.
>>>
>>> We arrive at Heathrow 3-4 hours later without further 
>>incident.  Before we
>>> can deplane, the London police come aboard, arrest me, and 
>>take me to the
>>> local station.  I'm charged with "Disobeying a direct order from
>>> the flight
>>> crew," thrown in a cell without running water, food or 
>>outside contact for
>>> 10 hours before I'm released on bail.  The following day we spend
>>> all day in
>>> a magistrate's court in Uxbridge where, against the advise of my
>>> solicitor I
>>> plead guilty under protest (if I fight it, I have to post a bond
>>> and return
>>> to the UK sometime in the future) and am fined £300 (about
>>> US$450) and have
>>> to pay the solicitor another £150.  Now I go through the 
>>administrative BS
>>> to get my bail money back and, because my passport has not 
>>accompanied the
>>> money, have to return all the way back to Heathrow for it.
>>>
>>> So at the end of my second day in London we are making a 
>>frantic race to
>>> Victoria station through the London Underground to get the 
>>last train to
>>> Dover.  The Tube is very confusing, we get on the wrong 
>>line, and in the
>>> confusion I leave our carry-on bag on one of the lines 
>>containing, among
>>> other things, all our flight, train, ferry, and hotel 
>>reservations info.
>>>
>>> We finally get to Dover in time for the last ferry to 
>>Calais-Ville but by
>>> the time we get to Calais, all trains have stopped running 
>>and we have to
>>> wait until the next day (Friday) around noon.  When we 
>finally get to
>>> Amsterdam after about 8 hours on and off trains late Friday 
>>night, I can't
>>> the name of our hotel but remember where it appeared to be on the
>>> map on its
>>> website (I was wrong).  So we walk through the streets (mainly
>>> the Red Light
>>> district) of Amsterdam for 3 hours searching for a hotel which
>>> name includes
>>> "van Cleve" (the only thing I can remember).
>>>
>>> We give up after realizing we have been walking (hiking, with heavy
>>> backpacks) in circles and go back to Centraal Station and the
>>> VVV.  There, a
>>> VVV agent 

RE: Where is Execute method..?

2002-07-16 Thread Craig R. McClanahan



On Tue, 16 Jul 2002, Manish_Purang wrote:

> Date: Tue, 16 Jul 2002 15:19:48 +0530
> From: Manish_Purang <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Where is Execute method..?
>
> thnx for the quick reply..!
>
> that means we don't have perform in the 1.1b and performs makes its first
> appearance from 1.1 b right...?
>

No, you have it backwards.

In 1.0, the method you implement in an Action is perform().

For 1.1, you can continue to use perform(), but should eventually switch
to execute().  The reason for the change is that execute() lets you throw
an exception from your business logic, and allow the exception handling
you've configured in struts-config.xml figure out what to do next.

Craig


> -Original Message-
> From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Where is Execute method..?
>
>
>
> execute() appears from version 1.1b1. It replaces de perform(), despite
> Struts1.1b1 maintains performs() for backwards compatibility.
>
> Adolfo
>
> >From: Manish_Purang <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Where is Execute method..?
> >Date: Tue, 16 Jul 2002 15:09:01 +0530
> >
> >Hi all..!
> >I think i'm missing somthing...!!
> >This is from the chapter 3 of the Struts book  at the serverside.com. It
> >mentions about this execute method.  However in API ( Struts 1.0) i dont
> >have this within the Action class ...!!!
> >
> >The Struts Action class contains several methods, but the most important is
> >the execute() method. Here is the method signature:
> > public ActionForward execute(ActionMapping mapping,
> >ActionForm form,
> >HttpServletRequest request,
> >HttpServletResponse response)
> >  throws IOException, ServletException;
> >The execute() method is called on an instance of an Action class by the
> >controller when a request is received from a client
> >
> >Where is the execute method..?
> >rgds
> >
> >
> >**
> >This email (including any attachments) is intended for the sole use of the
> >intended recipient/s and may contain material that is CONFIDENTIAL AND
> >PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> >distribution or forwarding of any or all of the contents in this message is
> >STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> >the sender by email and delete all copies; your cooperation in this regard
> >is appreciated.
> >**
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
>
>
>
>
> 
>   
>  Adolfo's signature
>   
>   
>  Adolfo Rodriguez Miguelez
>
>   
>   
>
>
>
>
>
> _
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> **
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




What should I do in Action if I do not want to forward to anywhere in perform()???

2002-07-16 Thread @Basebeans.com

Subject: What should I do in Action if I do not want to forward to anywhere in 
perform()???
From: "J. Jason Zhou" <[EMAIL PROTECTED]>
 ===
I just want to write out something through response object and do NOT want
to forward to any jsp page???

--
Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D,
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Missing in Action ?

2002-07-16 Thread Galbreath, Mark

I forgot to mention that besides all that, AA lost our luggage from BWI to
Heathrow, which cost us an additional 1/2 day and several trips to Terminal
3.  :-(

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 11:29 AM

Yeah, and I only had a short nap on Sunday afternoon. I just want you to
know that I have it rough! (Not to mention growing up living in a paper bag
in the middle of the road! :-)

Simon

>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 16, 2002 10:28 AM
>
>DAAMN!!!
>
>...and I was just complaining about my weekend from 
>hell..I guess I had
>a good weekend after hearing your story.
>
>Later
>
>James Mitchell
>
>> -Original Message-
>> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, July 16, 2002 10:31 AM
>>
>> Well, the trip to Amsterdam did not begin very well.  Before 
>we even leave
>> BWI on Tuesday we are stuck on the tarmac for 2 hours while all
>> the luggage
>> in the hold is removed because there is a mismatch between 
>the IDs on the
>> luggage and the people on the plane.
>>
>> On the flight over on American Airlines we hit some turbulence
>> just south of
>> Newfoundland and the captain turned the seat belt sign on.  Jane
>> was chilly
>> so I got up to find her an extra blanket.  The
>> bitch-flight-attendant-from-hell marched over to me and rudely
>> ORDERED me to
>> take my seat and buckle my seat belt.  I told her I would as 
>soon as found
>> my wife a blanket.  She told me she would get her a blanket 
>and for me to
>> sit down immediately.  I sat down...we waited...and 
>waited...and the bitch
>> never returned.  So I got up again and started looking through the
>> over-heads for a blanket.  She shows up again with some 
>other dude and
>> demands my boarding pass, which I hand the dude.
>>
>> We arrive at Heathrow 3-4 hours later without further 
>incident.  Before we
>> can deplane, the London police come aboard, arrest me, and 
>take me to the
>> local station.  I'm charged with "Disobeying a direct order from
>> the flight
>> crew," thrown in a cell without running water, food or 
>outside contact for
>> 10 hours before I'm released on bail.  The following day we spend
>> all day in
>> a magistrate's court in Uxbridge where, against the advise of my
>> solicitor I
>> plead guilty under protest (if I fight it, I have to post a bond
>> and return
>> to the UK sometime in the future) and am fined £300 (about
>> US$450) and have
>> to pay the solicitor another £150.  Now I go through the 
>administrative BS
>> to get my bail money back and, because my passport has not 
>accompanied the
>> money, have to return all the way back to Heathrow for it.
>>
>> So at the end of my second day in London we are making a 
>frantic race to
>> Victoria station through the London Underground to get the 
>last train to
>> Dover.  The Tube is very confusing, we get on the wrong 
>line, and in the
>> confusion I leave our carry-on bag on one of the lines 
>containing, among
>> other things, all our flight, train, ferry, and hotel 
>reservations info.
>>
>> We finally get to Dover in time for the last ferry to 
>Calais-Ville but by
>> the time we get to Calais, all trains have stopped running 
>and we have to
>> wait until the next day (Friday) around noon.  When we finally get to
>> Amsterdam after about 8 hours on and off trains late Friday 
>night, I can't
>> the name of our hotel but remember where it appeared to be on the
>> map on its
>> website (I was wrong).  So we walk through the streets (mainly
>> the Red Light
>> district) of Amsterdam for 3 hours searching for a hotel which
>> name includes
>> "van Cleve" (the only thing I can remember).
>>
>> We give up after realizing we have been walking (hiking, with heavy
>> backpacks) in circles and go back to Centraal Station and the
>> VVV.  There, a
>> VVV agent recognizes the name of the hotel and informs us it 
>is only 3
>> blocks away and that we have been searching on the wrong ("Old")
>> side of the
>> city.
>>
>> So we finally get to the hotel, but because we are 2 days late, our
>> reservations have been cancelled and the hotel is, of course,
>> fully booked).
>> After about another hour, we obtain lodging at the Swissôtel 
>right off the
>> Dam, and, predictably, it takes us another hour to find it 
>because we get
>> lost again.  We finally get to our room around midnight, dirty
>> and soaked in
>> sweat from hiking all over the city with our backpacks.
>>
>> The next morning (Saturday) we decided the last thing in the
>> world we wanted
>> to do was to get on another train and haul those backpacks 
>up to Caspicum.
>> So found a smoking coffee shop and ... well ... relaxed.  
>Sorry we missed
>> Dutch Nash Hash, but we kinda had our own "hash"  ;-).
>>
>> And we never did get the damn blanket.
>>
>> Other than that, we had a GREAT time...more on that later - 
>gotta do some
>> Struts s

RE: Problem with session ojects: memory size, updates

2002-07-16 Thread Heligon Sandra

I read Value Object pattern on J2EE design pattern
http://java.sun.com/blueprints/patterns/j2ee_patterns/catalog.html.

I understood that JavaBean are an implementation of ValueObjects.
"a value object represents a business object, but it doesn't need to provide
business methods on top of its data; it only provides methods to read its
data, which makes it an ideal candidate for local access rather than remote
access." 

So I don't understand your remark "Another possible solution is to create
Value Objects and serialize them". Did you want to say that EJB is a
solution?
Because we don't want to work with EJB.
In my architecture I get data from an enterprise back-end
system and then Action class create Value Objects(JavaBean) if the object
required doesn't exist. 
If I need to update data on the back-end server, then a manager is in charge
of serializing and sending JavaBean across the Network.
But to maintain user information (JavaBeans) over multiple requests and pass
data between
Action and JSP I need to store ValueObject in a cache(session or request
scope).
Could you detail please why ValueObejct serialization can be a solution to
session size
growth ?

Thanks a lot in advance

-Original Message-
From: Manish_Purang [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 07:31
To: Struts Users Mailing List
Subject: RE: Problem with session ojects: memory size, updates


hi,

Maybe you could take a look at any of the ejb or java bean design pattern
books to get an exhaustive idea about the value objects ..! you can download
one free pdf version from the serverisde.com-- (Ejb Design patterns by Floyd
Marinescu ) 
 
Rgds

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:52 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem with session ojects: memory size, updates


Perhaps my question is  stupid but I am not sure to know the Value object
notion well.
Could you give more details about Value Objects?
What is the difference between JavaBean and ValueObject(or Data Transfer
Object also I believe)?
Value objects are shared by the web and the back-end tier.

Thanks
Sandra 

-Original Message-
From: Dave Hodson [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 00:38
To: Struts Users Mailing List
Subject: RE: Problem with session ojects: memory size, updates


Another possible solution is to create Value Objects and serialize them...

Dave

---
Dave Hodson 
MessageCast, inc.
Email: [EMAIL PROTECTED]  
www.messagecast.net


> -Original Message-
> From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 14, 2002 10:56 PM
> To: Struts Users Mailing List
> Subject: RE: Problem with session ojects: memory size, updates
> 
> 
> Hi Sandra,
> 
> I prefer to remove the objects from the session as soon as I can 
> declare that they are not usefull anymore.
> EG.: In action_1 I build a model-object, use it in jsp_1 and
> process the users action in action_2. If the usecase is finished here,
> I remove the object from the session.
> 
> As for session size: The 4kB recommendation comes from servers that
> support clustering. Because the session must be propagated to all
> members of the cluster, it should be kept as small as possible.
> We have a few application running with substantial numbers of 
> concurrent
> users that can have up several megabytes of session-data. If 
> the usecase
> needs it, do it. Often we have the case that a few users need lots of 
> session data, and most users just a few bytes...
> Ok for us session-data is used, because our persistance level is on a 
> CORBA-backend host and we have no jdbc on our midrange. Therefor we 
> calculate it is cheaper to a few Gig of memory to our servers in order
> to save on network-data-transfer.
> 
> hope this helps
> Alexander
> 
> -Original Message-
> From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
> Sent: Freitag, 12. Juli 2002 13:11
> To: 'Struts Users Mailing List'
> Subject: RE: Problem with session ojects: memory size, updates
> Importance: High
> 
> 
> Thanks John for your response,
> 
> I have already read the message
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg
> 34592.html
> but I would like to have more details with real examples. 
> I believe that the best way is to try.
> I read that objects in the session must be removed unlike the request
> objects. 
> Is it good to do that when the application invalidates the session ?. 
> Because we save objects in the session in order to access 
> data during all
> the session life.  
> 
> I would like to have advices or tricks for updating and 
> looking up session
> objects (JavaBeans and not EJB).
> Imagine I have the following business objects model:
> 
> Class A composed of several instances B, each B item can be 
> composed of
> several C instances. (nested beans).
> If the list of each sub-beans is variable, must I use dynaBean ? 
> 
> Imagine the user mak

Exception with null Date form field

2002-07-16 Thread Schneider, Eric

Hi,

I've notice a lot of posts lately about the BeanUtils class.  I was just
wondering if someone could confirm if this is a previously reported bug that
has been fixed in the nightly builds.

I have a form bean that contains an attribute of type java.sql.Date.  While
attempting to save the values for this form and exception is thrown in
BeanUtils.populate()/SqlDateConverter.convert() methods if the user leaves
this date field blank.  The ActionForm's validate method is never reached,
so it appears that I can't catch this scenario.  Is there a resolution to
this?.besides changing the form type to a string.

Thanks,
Eric

tomcat 4.0.3
struts 1.1b

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:954)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

.

root cause 

org.apache.commons.beanutils.ConversionException
at
org.apache.commons.beanutils.converters.SqlDateConverter.convert(SqlDateConv
erter.java:150)
at
org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:359)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:604)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:952)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


**
This message, including any attachments, contains confidential information intended 
for a specific individual and purpose, and is protected by law.  If you are not the 
intended recipient, please contact sender immediately by reply e-mail and destroy all 
copies.  You are hereby notified that any disclosure, copying, or distribution of this 
message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: File upload Maximum limit

2002-07-16 Thread Jacob Hookom

Our application is maxed out at 50mb, much beyond that, the server
crashes.

Jacob Hookom
CS Student
University of Wisconsin, Eau Claire
===
http://www.swanked.net
you're not hip enough yet

-Original Message-
From: Gopalakrishnan Rangaswamy
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 10:04 AM
To: [EMAIL PROTECTED]
Subject: File upload Maximum limit

Hi,

Does struts limits the size of the file being uploaded.  Because we are
facing
a problem when the file size crosses 1MB.  
I have searched mail archive, haven't found any reply in that.

Regards,
R.Gopalakrishnan



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Missing in Action ?

2002-07-16 Thread Chappell, Simon P

Yeah, and I only had a short nap on Sunday afternoon. I just want you to know that I 
have it rough! (Not to mention growing up living in a paper bag in the middle of the 
road! :-)

Simon

>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 16, 2002 10:28 AM
>To: Struts Users Mailing List
>Subject: RE: Missing in Action ?
>
>
>DAAMN!!!
>
>...and I was just complaining about my weekend from 
>hell..I guess I had
>a good weekend after hearing your story.
>
>Later
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://www.open-tools.org/struts-atlanta
>
>
>
>
>> -Original Message-
>> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, July 16, 2002 10:31 AM
>> To: 'Pierre-Marc LEFEBVRE'
>> Cc: Wankers (E-mail); Struts (E-mail)
>> Subject: RE: Missing in Action ?
>>
>>
>> Hey, Higgins!
>>
>> Well, the trip to Amsterdam did not begin very well.  Before 
>we even leave
>> BWI on Tuesday we are stuck on the tarmac for 2 hours while all
>> the luggage
>> in the hold is removed because there is a mismatch between 
>the IDs on the
>> luggage and the people on the plane.
>>
>> On the flight over on American Airlines we hit some turbulence
>> just south of
>> Newfoundland and the captain turned the seat belt sign on.  Jane
>> was chilly
>> so I got up to find her an extra blanket.  The
>> bitch-flight-attendant-from-hell marched over to me and rudely
>> ORDERED me to
>> take my seat and buckle my seat belt.  I told her I would as 
>soon as found
>> my wife a blanket.  She told me she would get her a blanket 
>and for me to
>> sit down immediately.  I sat down...we waited...and 
>waited...and the bitch
>> never returned.  So I got up again and started looking through the
>> over-heads for a blanket.  She shows up again with some 
>other dude and
>> demands my boarding pass, which I hand the dude.
>>
>> We arrive at Heathrow 3-4 hours later without further 
>incident.  Before we
>> can deplane, the London police come aboard, arrest me, and 
>take me to the
>> local station.  I'm charged with "Disobeying a direct order from
>> the flight
>> crew," thrown in a cell without running water, food or 
>outside contact for
>> 10 hours before I'm released on bail.  The following day we spend
>> all day in
>> a magistrate's court in Uxbridge where, against the advise of my
>> solicitor I
>> plead guilty under protest (if I fight it, I have to post a bond
>> and return
>> to the UK sometime in the future) and am fined £300 (about
>> US$450) and have
>> to pay the solicitor another £150.  Now I go through the 
>administrative BS
>> to get my bail money back and, because my passport has not 
>accompanied the
>> money, have to return all the way back to Heathrow for it.
>>
>> So at the end of my second day in London we are making a 
>frantic race to
>> Victoria station through the London Underground to get the 
>last train to
>> Dover.  The Tube is very confusing, we get on the wrong 
>line, and in the
>> confusion I leave our carry-on bag on one of the lines 
>containing, among
>> other things, all our flight, train, ferry, and hotel 
>reservations info.
>>
>> We finally get to Dover in time for the last ferry to 
>Calais-Ville but by
>> the time we get to Calais, all trains have stopped running 
>and we have to
>> wait until the next day (Friday) around noon.  When we finally get to
>> Amsterdam after about 8 hours on and off trains late Friday 
>night, I can't
>> the name of our hotel but remember where it appeared to be on the
>> map on its
>> website (I was wrong).  So we walk through the streets (mainly
>> the Red Light
>> district) of Amsterdam for 3 hours searching for a hotel which
>> name includes
>> "van Cleve" (the only thing I can remember).
>>
>> We give up after realizing we have been walking (hiking, with heavy
>> backpacks) in circles and go back to Centraal Station and the
>> VVV.  There, a
>> VVV agent recognizes the name of the hotel and informs us it 
>is only 3
>> blocks away and that we have been searching on the wrong ("Old")
>> side of the
>> city.
>>
>> So we finally get to the hotel, but because we are 2 days late, our
>> reservations have been cancelled and the hotel is, of course,
>> fully booked).
>> After about another hour, we obtain lodging at the Swissôtel 
>right off the
>> Dam, and, predictably, it takes us another hour to find it 
>because we get
>> lost again.  We finally get to our room around midnight, dirty
>> and soaked in
>> sweat from hiking all over the city with our backpacks.
>>
>> The next morning (Saturday) we decided the last thing in the
>> world we wanted
>> to do was to get on another train and haul those backpacks 
>up to Caspicum.
>> So found a smoking coffee shop and ... well ... relaxed.  
>Sorry we missed
>> Dutch Nash Hash, but we kinda had our own "hash"  ;-).
>>
>> And we never did get the damn blanket.
>>
>> Other than that, we had a G

RE: Missing in Action ?

2002-07-16 Thread James Mitchell

DAAMN!!!

...and I was just complaining about my weekend from hell..I guess I had
a good weekend after hearing your story.

Later

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 10:31 AM
> To: 'Pierre-Marc LEFEBVRE'
> Cc: Wankers (E-mail); Struts (E-mail)
> Subject: RE: Missing in Action ?
>
>
> Hey, Higgins!
>
> Well, the trip to Amsterdam did not begin very well.  Before we even leave
> BWI on Tuesday we are stuck on the tarmac for 2 hours while all
> the luggage
> in the hold is removed because there is a mismatch between the IDs on the
> luggage and the people on the plane.
>
> On the flight over on American Airlines we hit some turbulence
> just south of
> Newfoundland and the captain turned the seat belt sign on.  Jane
> was chilly
> so I got up to find her an extra blanket.  The
> bitch-flight-attendant-from-hell marched over to me and rudely
> ORDERED me to
> take my seat and buckle my seat belt.  I told her I would as soon as found
> my wife a blanket.  She told me she would get her a blanket and for me to
> sit down immediately.  I sat down...we waited...and waited...and the bitch
> never returned.  So I got up again and started looking through the
> over-heads for a blanket.  She shows up again with some other dude and
> demands my boarding pass, which I hand the dude.
>
> We arrive at Heathrow 3-4 hours later without further incident.  Before we
> can deplane, the London police come aboard, arrest me, and take me to the
> local station.  I'm charged with "Disobeying a direct order from
> the flight
> crew," thrown in a cell without running water, food or outside contact for
> 10 hours before I'm released on bail.  The following day we spend
> all day in
> a magistrate's court in Uxbridge where, against the advise of my
> solicitor I
> plead guilty under protest (if I fight it, I have to post a bond
> and return
> to the UK sometime in the future) and am fined £300 (about
> US$450) and have
> to pay the solicitor another £150.  Now I go through the administrative BS
> to get my bail money back and, because my passport has not accompanied the
> money, have to return all the way back to Heathrow for it.
>
> So at the end of my second day in London we are making a frantic race to
> Victoria station through the London Underground to get the last train to
> Dover.  The Tube is very confusing, we get on the wrong line, and in the
> confusion I leave our carry-on bag on one of the lines containing, among
> other things, all our flight, train, ferry, and hotel reservations info.
>
> We finally get to Dover in time for the last ferry to Calais-Ville but by
> the time we get to Calais, all trains have stopped running and we have to
> wait until the next day (Friday) around noon.  When we finally get to
> Amsterdam after about 8 hours on and off trains late Friday night, I can't
> the name of our hotel but remember where it appeared to be on the
> map on its
> website (I was wrong).  So we walk through the streets (mainly
> the Red Light
> district) of Amsterdam for 3 hours searching for a hotel which
> name includes
> "van Cleve" (the only thing I can remember).
>
> We give up after realizing we have been walking (hiking, with heavy
> backpacks) in circles and go back to Centraal Station and the
> VVV.  There, a
> VVV agent recognizes the name of the hotel and informs us it is only 3
> blocks away and that we have been searching on the wrong ("Old")
> side of the
> city.
>
> So we finally get to the hotel, but because we are 2 days late, our
> reservations have been cancelled and the hotel is, of course,
> fully booked).
> After about another hour, we obtain lodging at the Swissôtel right off the
> Dam, and, predictably, it takes us another hour to find it because we get
> lost again.  We finally get to our room around midnight, dirty
> and soaked in
> sweat from hiking all over the city with our backpacks.
>
> The next morning (Saturday) we decided the last thing in the
> world we wanted
> to do was to get on another train and haul those backpacks up to Caspicum.
> So found a smoking coffee shop and ... well ... relaxed.  Sorry we missed
> Dutch Nash Hash, but we kinda had our own "hash"  ;-).
>
> And we never did get the damn blanket.
>
> Other than that, we had a GREAT time...more on that later - gotta do some
> Struts stuff.
>
> On!On!
> ad (Mark)
>
> -Original Message-
> From: Pierre-Marc LEFEBVRE [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 9:42 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Missing in action ?
>
>
> HHHi AD/FP,
>
> Did you ever made it to Europe this month ?
> You missed a great Dutch NH.
>
> On Out
> Higgins
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




RE: A good nightly build to start developing against

2002-07-16 Thread Arnaud HERITIER

I'm using the nightly build of the 10 jully and I haven't got (not yet) any
problem with it.

arnaud

> -Message d'origine-
> De : Bryant, Doug [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 16 juillet 2002 16:53
> À : '[EMAIL PROTECTED]'
> Objet : A good nightly build to start developing against
>
>
> We are going to begin a new project tomorrow using struts and
> need to use
> the sub-applications functionality and thus the SwitchAction
> class which
> does not appear to be included in the Beta 1 release.
>
> Can someone point me to a generally more or less stable
> nightly build that
> includes this functionality.
>
> Thanks, Doug
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




File upload Maximum limit

2002-07-16 Thread Gopalakrishnan Rangaswamy

Hi,

Does struts limits the size of the file being uploaded.  Because we are
facing
a problem when the file size crosses 1MB.  
I have searched mail archive, haven't found any reply in that.

Regards,
R.Gopalakrishnan





Re: A good nightly build to start developing against

2002-07-16 Thread James Holmes

I would recommend using the latest nightly build as it
has the most up to date fixes, etc.  There have been
alot of unit tests added to the code and every nightly
build has to pass these.  Plus we're getting very
close to 1.1b2 being released.  We're down to only
like 18 open bugs.  If you find any problems in the
builds you can submit a bug report and it will likely
get fixed soon.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- "Bryant, Doug" <[EMAIL PROTECTED]> wrote:
> We are going to begin a new project tomorrow using
> struts and need to use
> the sub-applications functionality and thus the
> SwitchAction class which
> does not appear to be included in the Beta 1
> release.
> 
> Can someone point me to a generally more or less
> stable nightly build that
> includes this functionality.
> 
> Thanks, Doug
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: logging, log4j

2002-07-16 Thread Manfred Wolff

Hi

Yes, but it works only, if you have an Appender named A1! Here my own
Log4j.properties, where you can hide alle packages, you don't need:

# Configure the rootlogger
log4j.appender.WEBAPP=org.apache.log4j.ConsoleAppender
log4j.appender.WEBAPP.layout=org.apache.log4j.PatternLayout
log4j.appender.WEBAPP.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

# Second logger for filetrace
log4j.appender.WEBAPPFILE=org.apache.log4j.RollingFileAppender
log4j.appender.WEBAPPFILE.File=fortuna.log
log4j.appender.WEBAPPFILE.MaxFileSize=100KB
log4j.appender.WEBAPPFILE.MaxBackupIndex=5

log4j.appender.WEBAPPFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.WEBAPPFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x -
%m%n

# Ab hier Konfiguration der App

# All messages will go to console
log4j.rootLogger=DEBUG, WEBAPP

# All messages of my own app goes to file logger also
log4j.logger.de.neusta=INHERITED, WEBAPPFILE

# Here I can configger, from what level I will see the traces
# in this case ALL
log4j.appender.WEBAPP.threshold=ALL

#  Here you may hide some other packages
log4j.logger.org.apache.commons=WARN

Gruß
Manfred



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von David Wilkinson
Gesendet: Dienstag, 16. Juli 2002 13:52
An: 'Struts Users Mailing List'
Betreff: RE: logging, log4j



I had the same issue but I added the following to my log4j.properties
file to control struts logging.

log4j.category.org.apache.commons=WARN, A1
log4j.category.org.apache.struts=WARN, A1


-Original Message-
From: petra staub [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 12:35
To: [EMAIL PROTECTED]
Subject: logging, log4j

hi,

i am using for my own classes log4j for logging.
unfortunately, not only my classes start producing output,
but also struts classes, mostly the RequestProcessor:

3945 INFO  struts.action.RequestProcessor - Processing a 'GET' for path
'/home'

how can I get only the logging from my classes? where am
I doing something wrong?

I use log4j like in the following example:
public class ExampleClass {
  static Logger log = Logger.getLogger(ExampleClass.class.getName());

  void method() {
 log.info("log me");
  }
}
log4j.properties is in the class root and automatically loaded.


thanks!



_
Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der
Welt:
http://www.hotmail.com/de


--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




A good nightly build to start developing against

2002-07-16 Thread Bryant, Doug

We are going to begin a new project tomorrow using struts and need to use
the sub-applications functionality and thus the SwitchAction class which
does not appear to be included in the Beta 1 release.

Can someone point me to a generally more or less stable nightly build that
includes this functionality.

Thanks, Doug



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Re: Struts + EJB ?

2002-07-16 Thread bryan hansen

We are doing the same thing right now and so far so
good. Since you are creating the ejbs you can define
the create methods how ever you want. We use a value
object and pass it into the create method. When we
actually create the method we set the primary key in
the value object and return that.

--- René_Eigenheer <[EMAIL PROTECTED]>
wrote:
> I'm actually evaluating possibilities to add EJB
> functionality to our struts
> projects.
> 
> By reading a lot of articles I came to conclusion
> that the following
> architecture may work:
> 
> Struts-Action
> - Processing http-request
> - Performing formal validation (validation
> framework)
> - Performing simple validation with methods defined
> in value object class
> (validations which only require data which is
> available in the value object)
> - Copying action form properties to value object
> properties
> - Calling remote EJB session bean (value object as
> parameter)
> - Handling workflow
> 
> EJB session
> - Receiving request from struts action
> - Performing complex validation
> - Performing business logic
> - Calling Entity beans
> - Returning value object to strus action
> - Returning return/error codes to struts action
> 
> Entity beans
> - As usual
> 
> Is anybody using such an architecture including
> session beans - experiences?
> Do you see any cons?
> 
> And a question out of scope:
> I'm new in the area of EJB (learning with Ed Roman's
> book). Everything looks
> quite interesting for me except…the fact that the
> create method of entity
> beans is called with a "lot" of parameters, which
> obviously may change, if
> you add a property to your bean. Did I miss
> something with this subject or
> do I really have to live with this fact? I was
> assuming/hoping that a create
> method uses the object as parameter!
> 
> Thanks for any assistance
> Rene
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Missing in Action ?

2002-07-16 Thread Galbreath, Mark

Hey, Higgins!

Well, the trip to Amsterdam did not begin very well.  Before we even leave
BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage
in the hold is removed because there is a mismatch between the IDs on the
luggage and the people on the plane.

On the flight over on American Airlines we hit some turbulence just south of
Newfoundland and the captain turned the seat belt sign on.  Jane was chilly
so I got up to find her an extra blanket.  The
bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to
take my seat and buckle my seat belt.  I told her I would as soon as found
my wife a blanket.  She told me she would get her a blanket and for me to
sit down immediately.  I sat down...we waited...and waited...and the bitch
never returned.  So I got up again and started looking through the
over-heads for a blanket.  She shows up again with some other dude and
demands my boarding pass, which I hand the dude.

We arrive at Heathrow 3-4 hours later without further incident.  Before we
can deplane, the London police come aboard, arrest me, and take me to the
local station.  I'm charged with "Disobeying a direct order from the flight
crew," thrown in a cell without running water, food or outside contact for
10 hours before I'm released on bail.  The following day we spend all day in
a magistrate's court in Uxbridge where, against the advise of my solicitor I
plead guilty under protest (if I fight it, I have to post a bond and return
to the UK sometime in the future) and am fined £300 (about US$450) and have
to pay the solicitor another £150.  Now I go through the administrative BS
to get my bail money back and, because my passport has not accompanied the
money, have to return all the way back to Heathrow for it.

So at the end of my second day in London we are making a frantic race to
Victoria station through the London Underground to get the last train to
Dover.  The Tube is very confusing, we get on the wrong line, and in the
confusion I leave our carry-on bag on one of the lines containing, among
other things, all our flight, train, ferry, and hotel reservations info.

We finally get to Dover in time for the last ferry to Calais-Ville but by
the time we get to Calais, all trains have stopped running and we have to
wait until the next day (Friday) around noon.  When we finally get to
Amsterdam after about 8 hours on and off trains late Friday night, I can't
the name of our hotel but remember where it appeared to be on the map on its
website (I was wrong).  So we walk through the streets (mainly the Red Light
district) of Amsterdam for 3 hours searching for a hotel which name includes
"van Cleve" (the only thing I can remember).

We give up after realizing we have been walking (hiking, with heavy
backpacks) in circles and go back to Centraal Station and the VVV.  There, a
VVV agent recognizes the name of the hotel and informs us it is only 3
blocks away and that we have been searching on the wrong ("Old") side of the
city.

So we finally get to the hotel, but because we are 2 days late, our
reservations have been cancelled and the hotel is, of course, fully booked).
After about another hour, we obtain lodging at the Swissôtel right off the
Dam, and, predictably, it takes us another hour to find it because we get
lost again.  We finally get to our room around midnight, dirty and soaked in
sweat from hiking all over the city with our backpacks.

The next morning (Saturday) we decided the last thing in the world we wanted
to do was to get on another train and haul those backpacks up to Caspicum.
So found a smoking coffee shop and ... well ... relaxed.  Sorry we missed
Dutch Nash Hash, but we kinda had our own "hash"  ;-).

And we never did get the damn blanket.

Other than that, we had a GREAT time...more on that later - gotta do some
Struts stuff.

On!On!
ad (Mark)

-Original Message-
From: Pierre-Marc LEFEBVRE [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Missing in action ?


HHHi AD/FP,

Did you ever made it to Europe this month ?
You missed a great Dutch NH.

On Out
Higgins

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Exceeding JSP Size Limit w/ Tiles

2002-07-16 Thread Jerry Jalenak

I've run into the JSP size limitation on a couple of my JSP's (built with
Tiles).  I've tried to split out a set of common  statements
that get used several times in the page (a list of US states), but I haven't
figured out how to 'include' this list back into the JSP.  I've tried using
 and  but keep getting a message
indicating that the HTTP response has already been flushed - therefore I
can't do an include (this is Tomcat 3.3.1/servlet spec 2.2).  On Cedric's
web site for Tiles there is a comment that you can set/use bean value in the
config. file, but I can't seem to find an example on how to do this.  Does
anyone have a example they can post?  Is there a better way to handle this
situation?

Thanks in advance!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Authentication, Authorization in Struts 1.1

2002-07-16 Thread Amit Vaidya

Hi,

Does Struts 1.1 provide any means of implementing Authentication/Authorization?

While going through the code, I found the following methods related to (Security) 
Roles. 
processRoles()
getRoles()
setRoles()

- How exactly are the Roles cofigured? Is struts-config.xml file used for this? 
  A sample config would greatly help.
- Which source does call setRoles() method? How is the roles attribute in 
ActionConfig.java populated?

TIA,

Regards,
Amit

Amit Vaidya Infosys, Pune Phone-20-29-32800 Extn-5828 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors

2002-07-16 Thread wbchmura


Sorry about that... I started with the older struts, but did not really 
start working with it alot until recently under the 1.1 regime

-Original Message-
From: Jan.Vervecken [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:17 AM
To: struts-user
Subject: RE: html:errors


ah ... "Since : Struts 1.1" ... sorry, I checked some older 
documentation

tnx
-Jan

>>> [EMAIL PROTECTED] 16-07-02 15:39 >>>

Maybe I am misunderstanding you, but the tags I put in below exist 
already (the sample is right out of a working jsp page)




-Original Message-
From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 9:27 AM
To: struts-user
Subject: RE: html:errors


Something like this would make Struts more MVC-like I think, more 
flexible toward graphical design.

Has anyone implemented tags that allow for this approach, or is it 
possible with existing Struts tags?

tnx
-Jan

>>> [EMAIL PROTECTED] 11-07-02 16:37 >>>

Like so?







--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Indexed Properties - soluce :-)

2002-07-16 Thread Arnaud HERITIER

Ok I found myself a solution (it seems) :

I need to modify the JSP page to index manually the property and I don't
need to use the indexed="true" which indexes the BEAN and not the property :


" value="A"/>" value="B"/>



Arnaud

> -Message d'origine-
> De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 16 juillet 2002 15:50
> À : Struts Users Mailing List (E-mail)
> Objet : Indexed Properties
>
>
> Hi guys.
>
> I'm trying to use the Indexed properties of Struts 1.1.
>
> What I understood about indexedProperties is that it allows
> to have a set of
> properties (in a form bean) represented by an array of Strings.
>
> What I want to do is quite simple.
>
> I have a form with a dynamic list of radio buttons groups.
>
> in HTML it is something like this :
>
> 
>  name="myRadios1" value="B" checked="checked">
>  checked="checked"> type="radio" name="myRadios2" value="B">
> 
>  checked="checked"> type="radio" name="myRadiosN" value="B">
> 
>
> in Java with Struts I wrote a FormBean (class MyFormBean)
> with a property
> using an array of strings : String[] myRadios (with getter and setter)
>
> in the JSP :
>
> 
> 
>  property="myRadios" indexed="true" value="B"/>
> 
> 
>
> If I initialize the property myRadios of my formbean with the
> following
> Array : String[] myRadios = {"A","A","B","A"};
> the JSP generates the good numbers of radio items like this :
>
> 
>  name="myRadios1" value="B">
>  name="myRadios2" value="B">
>  name="myRadios3" value="B">
>  name="myRadios4" value="B">
> 
>
> but the problem is that this radios aren't initialized with
> the good checked
> properties.
>
> What I'm waiting for is somethink like :
>
> 
>  checked="checked"> type="radio" name="myRadios1" value="B">
>  checked="checked"> type="radio" name="myRadios2" value="B">
>  name="myRadios3" value="B" checked="checked">
>  checked="checked"> type="radio" name="myRadios4" value="B">
> 
>
> I don't understand what happens ??
>
> Can you help me please.
>
> Thx.
>
>   Arnaud HERITIER
>   EAI Consulting
>   Sopra Group
>   Tél. : +33 (0)1 53 33 44 74
>   email : [EMAIL PROTECTED]
>
>   Ce message est exclusivement destiné aux personnes dont le
> nom figure
> ci-dessus. Il peut contenir des informations confidentielles dont la
> divulgation est à ce titre rigoureusement interdite. Dans
> l'hypothèse où
> vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
> e-mail ci-dessus et de détruire toute copie.
>
>   This message may contain confidential and proprietary
> material for the
> sole use of the intended recipient. Any review or
> distribution by others is
> strictly prohibited. If you are not the intended recipient,
> please contact
> the sender and delete all copies.
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >