Re: how to submit javascript variable of array type

2004-03-18 Thread Raphaël di Cicco
You can also create a Hidden form field for each value in the Array.
Something like this :

for(var i = 0 ; i  theArray.size ; i++)
document.writeln(INPUT TYPE='HIDDEN' NAME='theArray_' + i + '
VALUE=' + theArray[i] + ');

- Original Message - 
From: as as [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:42 PM
Subject: RE: how to submit javascript variable of array type


 Andrew,

 I used the exact same approach my in my action class, the array from
request is yielding null...
 Any clues..
 Thanks so much!

 Andrew Hill [EMAIL PROTECTED] wrote:
 I usually concatenate the array into a single string (using a delimiter
such
 as a comma) and then put this value into a single field. In my actionform
I
 have a getter (under different property name) that returns it as an array
 (using the delimiter to explode the string).

 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 17 March 2004 10:24
 To: [EMAIL PROTECTED]
 Subject: how to submit javascript variable of array type


 I now have a javascript array var, and I need to submit it by a form to an
 action class, how can I achieve this?

 ThanksRegards

 _
 Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/


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



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

 Do you Yahoo!?
 Yahoo! Mail - More reliable, more storage, less spam


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



Re: [OT]JSP Debugger

2004-03-12 Thread Raphaël di Cicco
Not really, it works great for me, you can find the incriminated line then
correct it

- Original Message - 
From: Paul-J Woodward [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 5:40 PM
Subject: RE: [OT]JSP Debugger


 sorry - should have said a quick, dirty and very temporary solution.

 Paul
 
 Global Equity Derivatives Technology
 Deutsche Bank [/]
 




 Larry Meadors [EMAIL PROTECTED]
 10/03/2004 16:32
 Please respond to Struts Users Mailing List


 To: [EMAIL PROTECTED]
 cc:
 Subject:RE: [OT]JSP Debugger


 I think a better solution would be to use the tomcat (or even struts)
 built-in exception handling.

 It works very well and doesn't force scriptlets into your jsps.

 Larry

  [EMAIL PROTECTED] 03/10/04 9:21 AM 
 In some circumstances it can help to put a try/catch around the whole
 JSP
 and print the stack trace  error.

 Paul
 
 Global Equity Derivatives Technology
 Deutsche Bank [/]
 




 Larry Meadors [EMAIL PROTECTED]
 10/03/2004 15:54
 Please respond to Struts Users Mailing List


 To: [EMAIL PROTECTED]
 cc:
 Subject:RE: [OT]JSP Debugger


 I have used both netbeans and eclipse (without myEclipse) for this with
 tomcat and struts (never jboss, but I know people who are doing this
 using the JPDA debugger).

 Larry

  [EMAIL PROTECTED] 03/10/04 8:46 AM 
 If you have the code to the tags, you can set breakpoints there, and
 debug at that level.
 I have found that to meet 100% of my debugging needs as far as JSP
 debugging goes.

 1.May I know which tool you are talking about..??
 2.If you are talking about MyEclipse I agree that it works well with
 Tomcat,JBoss as separate container...when it comes to JBoss 3.2.3
 bundle(contains Tomcat) it doesn't works.

 -Ramadoss


 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 10:39 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [OT]JSP Debugger


 If you have the code to the tags, you can set breakpoints there, and
 debug at that level.

 I have found that to meet 100% of my debugging needs as far as JSP
 debugging goes.

 Larry

  [EMAIL PROTECTED] 03/10/04 7:48 AM 
 1.First my apology for post this question which I have asked it already.

 2.This is question reg Debugging JSP,I do understand that debugging JSP
 is not really required if we are really follow MVC pattern as we are not
 putting too much of logic in it...BUT just wanted to know that is there
 any JSP debugger tool/plugin available for Eclipse? we know that
 myeclipse works well with Tomcat as a separate container but when it
 comes with JBoss Tomcat bundle I could not debug JSP using the same
 tool.

 Tnx in advance,

 -Ramadoss

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




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


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




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





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



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





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


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



Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Raphaël di Cicco
I use an ActionBaseForm where I put mapped getters/setters for the
properties so every sub-Form can use it without coding anything.

- Original Message - 
From: Mark Jones [EMAIL PROTECTED]
To: Struts User [EMAIL PROTECTED]
Sent: Sunday, February 22, 2004 5:40 AM
Subject: [Newbie] Is it worth subclassing your own Action and ActionForm
classes to attain code re-use?


 My application allows a user to make various different types of bookings
for
 a (fictional!!!) hospital and logs them in a database. Each type of
booking
 has a set of common properties but also different ones depending on the
type
 of booking being made.

 I have divided my classes into a BookingAction and BookingActionForm
 superclass and subclasses (such as AmbulanceBookingAction and
 AmbulanceBookingActionForm) because I anticipate creating other subtypes
of
 BookingAction that use the same properties in the BookingAction class but
 not in the AmbulanceBookingAction subclass. This initially seemed to me to
 be in keeping with programming for code re-use and extensibility.

 My problem with this is, if a user submits a form which posts its data via
 the ActionServlet to the AmbulanceBookingAction subclass, how would I
ensure
 the BookingAction class did its stuff? Would it be better / easier to use
 separate, non-derived (from my superclasses) Actions and ActionForms to
 handle each type of booking and not subclass BookingAction and
 BookingActionForm (even though I would be repeating the some of the same
 properties common to each different type of booking)?

 I am concerned, though, not to lose points for not reusing code. It just
 seems to me, though, that trying to divvy the handling of the form data
via
 inheritance is too complicated and / or unnecessary.

 In what circumstances might you want to subclass your own Action class
and,
 if you did, how would you handle/inherit the form data? Would you just use
 different subclasses of your Action but just one ActionForm for each
Action?

 What is the best way for me to implement this problem? (Or have I answered
 my own question?! ;0) )

 Thanks for indulging me!

 Mark


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


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



Re: forwards with parameters?

2004-01-22 Thread Raphaël di Cicco
In my opinion this is a bad way to use forwards. Only the client is supposed
to enter parameters.
You should do request.setAttribute(someparameter,somevalue); in your
Action before forwarding.

- Original Message - 
From: Derek Faulkner [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 5:12 PM
Subject: forwards with parameters?


 Hello,

 I want to create a forward in my ActionMappings with url parameters like
this:

 forward name=somename path=SomeAction.do?someparameter=somevalue/

 This worked with Tomcat 3.3.1, but with Tomcat 4.1 the values in the query
string are not in my SessionRequest parameter table.  Why is this?  What can
I do about it?

 Thanks,
 Derek

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



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



DOS attack by making DispatchAction recurse on execute()

2004-01-20 Thread Raphaël di Cicco
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25649



Re: Solution: Subcall and Back in Struts

2004-01-14 Thread Raphaël di Cicco
Seems interesting. I have looked at the code but haven't tested yet.
We have precisely this problem in our application : we don't know where we
came from to end up at one Action.
I'm only wondering why all the methods are static synchronized ? is it
because supposebly there might be more than one instance of this class per
user ?



- Original Message - 
From: Manfred Wolff [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 09, 2004 5:33 PM
Subject: Solution: Subcall and Back in Struts


 Hi.

 At several projects I needed a struts based browser back mechanism or
 a subcall mechanism. In both cases you have to store the last request
 (with request parameter) an restores it.

 Subcall means: From different contextes I navigate to the same site. To
 increse usability I will the user let go back to the context he comes
from.

 I have written a BaseBackAction which all actions must subclass. This
 base action saves the requestpath and pushed it on a stack. To go back
 you have to implement a back-path in the struts-config.xml like

 action path=/back type=org.mwolff.struts.actions.BackAction/

 The BackAction pops the path from the stack and forwards to it. The
 stack is limited to n entries, 10 default. If no back is possible, the
 BackAction forwards to the same
 path, where it calls from.

 Only actions that subclass from the BaseBackAction can use this
 automatic mechanism. So there is a second mechanism to register if you
 don't use this base action.

 The whole documentation is on

 http://www.manfred-wolff.de/struts/articles/HowTo-Back.html

 There you can also download the two classes.

 Improvments and suggestions are welcome.

 Manfred




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


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



Re: Database pool full.

2004-01-14 Thread Raphaël di Cicco
I'm backing up what Max said about having a leak somewhere. We used to have
a lot of problems with pooling. We have about 50 database utility beans that
get a connection, perform action on the database then release the
connection.
We discovered that the leak came from one single method that didn't release
the connection. Once we corrected it, there was no more problems no matter
which scheme we use.

Raphaël

- Original Message - 
From: virupaksha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 6:02 AM
Subject: Re: Database pool full.


 Dear Max,

 Yah, this problem occures after  visiting some pages,
 to use #1 strategy, whether I need to do any changes in configuration or
is
 there any other way?

 Thanks for your suggestions  immediate response,

 Regards,
 viru


 - Original Message -
 From: Max Cooper [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 12:30 PM
 Subject: Re: Database pool full.


  My guess is that you have a connection leak somewhere. Does this problem
  start occurring immediately, or does it only show up after visiting a
 number
  of pages in the site?
 
  Various db pools have different ways of dealing with no connections
being
  available. Often, you can configure which strategy to use. Here are 3
  different strategies:
 
  1. Wait until a connection becomes available.
  2. Fail if no connections are available (i.e. return null or throw an
  exception).
  3. Grow the pool temporarily if there are no free connections.
 
  It is clear from the errors you are getting that your pool is currently
  using strategy #2. I like #1 the best, because it is less likely that
  requests will fail under load. But, you must be sure that you don't have
 any
  connection leaks, because the app will eventually hang if you have
  connection leaks and use strategy #1. Strategy #3 works, but you can run
  still run out of connections in the database itself, so it can start to
 act
  like strategy #2. This is one aspect of connection pooling that
important
 to
  consider when developing web apps.
 
  But, it seems likely that you have leaks somewhere. Some of your
requests
  are probably not returning their connections to the pool. It could be
that
  you have exceptions that are being thrown and not releasing the
 connection,
  or it could just be that you have non-exception logic paths that don't
  return the connections. Some combination of code reviews, debugging,
etc.
 is
  needed to track them down.
 
  Another thing to watch out for is requests that require more than 1
  simultaneous connection. For instance, consider the situation where you
 have
  a pool of 30 connections, 15 request handler threads, and a request that
  requires 3 connections. If 15 of those requests come in at once, and
each
  request handler thread grabs 2 connections, you will have deadlock as
all
  the request handler threads wait forever for a third db connection to
 become
  available (assuming you are using pooling strategy #1 above). The
solution
  to this problem is to make sure that you don't have any requests that
  require more than one simultaneous connection, or at least that your db
  connection pool has enough connections to survive a flood of connection
  hungry requests (e.g. have a pool of 45 connections in the example
 scenario
  described above -- 3 conn/req * 15 threads = 45 connections in the
pool).
  This may seem unlikely, but it is a problem I have faced in a production
  system (and it wasn't easy to track down!). Another lister here
suggested
 a
  good technique for ensuring that none of your requests require more than
1
  simultaneous connection -- test your app with a pool of 1 connections.
 
  -Max
 
  - Original Message -
  From: virupaksha [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, January 13, 2004 7:14 PM
  Subject: Database pool full.
 
 
  Dear All,
 
  I am developing an application on resin-2.1.9 web server.
  Connection to MYSQL Database is using JNDI. JNDI connection code is
 written
  in a class called DBService.
  I am instantiating DBService class where ever i need database connection
 and
  getting connection using getConnection() method.
 
  when user start working on  application, i m getting following errors,
 
  Class:DBService. Method:getConnection() cann't open connection with full
  database pool(30)
  Class:MonthReport. Method:SelectReportDetailNull() cann't open
connection
  with full database pool(30)
 
  it sounds like database pool is full, Whether i need to increase the
pool
  size or optimize code in DBService database connection class.
 
  for your reference below code  performs database connection.
 
  --
  public Connection getConnection()
  {
  java.sql.Connection con = null;
  javax.sql.DataSource ds=null;
 
  

Re: [OT] Eclipse/Tomcat WebappLoader

2004-01-12 Thread Raphaël di Cicco
I have tried that option but it doesn't work...
I put my java class inside a jar file, that I include in the context. That
beeing done, my project compiles and everything but the same problem occurs
: when I change a class, the jar file is reloaded as well, so I'm up to the
same point.
I don't know how to tell tomcat that this jar is static.

- Original Message - 
From: Mainguy, Mike [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, January 09, 2004 3:45 PM
Subject: RE: [OT] Eclipse/Tomcat WebappLoader


 If that class never changes just deploy it in a jar...

 No matter what we use today, sooner or later I'm sure we'll be using
 something else
 -Ted Husted

 -Original Message-
 From: Raphaël di Cicco [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 09, 2004 5:11 AM
 To: Struts Mailing List
 Subject: [OT] Eclipse/Tomcat WebappLoader


 Hi,

 I know this is a little off topic but this has to do with J2EE deployment
so
 it might be useful for some people. In my environment, I use Eclipse with
 Struts 1.1, Tomcat 4.1 and Sun JDK 1.4. Eclipse makes it possible to
 recompile and redeploy my classes every time I change them. This is very
 convenient.
 I understand that the WebAppLoader reloads the whole application if there
is
 a change in one of the files.

 However, I have a static class that loads an enormous amount of data into
 memory. Therefore after 2 or 3 changes in my code I run into a OutOfMemory
 exception that is very annoying (the exception usually occurs somewhere in
 Win32FileSystem.class).

 I would like to prevent the webappLoader from reloading this particular
 class, and I know that it is is possible to prevent a jar file from beeing
 reloaded, but I don't know about a class.

 Thanks in advance
 Raphaël


 -
 This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.


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



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



[OT] Eclipse/Tomcat WebappLoader

2004-01-09 Thread Raphaël di Cicco
Hi,

I know this is a little off topic but this has to do with J2EE deployment so it might 
be useful for some people.
In my environment, I use Eclipse with Struts 1.1, Tomcat 4.1 and Sun JDK 1.4. Eclipse 
makes it possible to recompile and redeploy my classes every time I change them. This 
is very convenient. 
I understand that the WebAppLoader reloads the whole application if there is a change 
in one of the files.

However, I have a static class that loads an enormous amount of data into memory. 
Therefore after 2 or 3 changes in my code I run into a OutOfMemory exception that is 
very annoying (the exception usually occurs somewhere in Win32FileSystem.class).

I would like to prevent the webappLoader from reloading this particular class, and I 
know that it is is possible to prevent a jar file from beeing reloaded, but I don't 
know about a class.

Thanks in advance
Raphaël



Re: [OT] Eclipse/Tomcat WebappLoader

2004-01-09 Thread Raphaël di Cicco
Thanks for your answer Mike.
I should include my .class file inside a jar and get rid of the original
class file in the project. I hope this is going to work I'm gonna give
feedback on that soon.

Raphaël.


- Original Message - 
From: Mainguy, Mike [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, January 09, 2004 3:45 PM
Subject: RE: [OT] Eclipse/Tomcat WebappLoader


 If that class never changes just deploy it in a jar...

 No matter what we use today, sooner or later I'm sure we'll be using
 something else
 -Ted Husted

 -Original Message-
 From: Raphaël di Cicco [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 09, 2004 5:11 AM
 To: Struts Mailing List
 Subject: [OT] Eclipse/Tomcat WebappLoader


 Hi,

 I know this is a little off topic but this has to do with J2EE deployment
so
 it might be useful for some people. In my environment, I use Eclipse with
 Struts 1.1, Tomcat 4.1 and Sun JDK 1.4. Eclipse makes it possible to
 recompile and redeploy my classes every time I change them. This is very
 convenient.
 I understand that the WebAppLoader reloads the whole application if there
is
 a change in one of the files.

 However, I have a static class that loads an enormous amount of data into
 memory. Therefore after 2 or 3 changes in my code I run into a OutOfMemory
 exception that is very annoying (the exception usually occurs somewhere in
 Win32FileSystem.class).

 I would like to prevent the webappLoader from reloading this particular
 class, and I know that it is is possible to prevent a jar file from beeing
 reloaded, but I don't know about a class.

 Thanks in advance
 Raphaël


 -
 This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.


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



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



Re: Is it possible to nest Tiles layouts?

2004-01-09 Thread Raphaël di Cicco
I have tried this myself before...couldn't make it work. Nested tiles don't
seem to work at all.

- Original Message - 
From: Domingo A. Rodriguez S. [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 09, 2004 6:49 PM
Subject: Re: Is it possible to nest Tiles layouts?



 Something like this??

 definition name=common.pagina page=/layouts/classicLayout.jsp
 put name=title value=Tiles 1.1 Dynamic Portal Example /
 put name=header value=/tiles/header.jsp /
 put name=menu value=common.pagina.menu /
 put name=footer value=/tiles/footer.jsp /
 put name=body value=/tiles/body.jsp /
 /definition

 Regards

  --- Anderson, James H [IT] [EMAIL PROTECTED] escribió: 
 For example, I'd like to be able to reformat the content tile into a
  number of different layouts...
 
  Thanks,
 
  jim
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 Do You Yahoo!?
 Información de Estados Unidos y América Latina, en Yahoo! Noticias.
 Visítanos en http://noticias.espanol.yahoo.com

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


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



Re: How to create pop ups in struts

2004-01-08 Thread Raphaël di Cicco
This has nothing to do with struts but with javascript you have to use
window.open

- Original Message - 
From: Kamal Gupta [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 7:19 PM
Subject: How to create pop ups in struts


 Hi,

 I am trying to create popups.

 I have a jsp page which displays some information. When I click on a
button
 it displays a popup which has information from database and user selects
one
 information from the popup and clicks on OK then the info will go back to
 the jsp page from where the jsp page was called.

 Can some one please send me some code on popup using iframes.

 Or is there any better way of doing this in struts

 Regards

 Kamal


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


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



Re: forwarding request from select tag

2004-01-08 Thread Raphaël di Cicco
No you can't, you need to use javascript :

html:select property=statusfilter
onChange=javascript:doSomething(this);
  option value = AllAll/option
  option value = CompletedCompleted/option
  option value = In processIn process/option
  /html:select


doSomething will probably do something like this :

script language=javascript
function doSomething(selectBox)
{
 window.location.href = MyAction.do?id= + getSelectedValue(selectBox));
}
function getSelectedText(selectBox){

for(var i = 0; i  selectBox.length; i++)

if(selectBox.options[i].selected)

return selectBox.options[i].text;

return ;

}

/script


- Original Message - 
From: Namasivayam, Sudhakar (Cognizant) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 3:51 PM
Subject: RE: forwarding request from select tag


thanks robert...
but what i wanted is  to reload the page automatically
like

select_Onchange()
{
reload the page with the new filter... == should i load the jsp file ???
}

Instead of this java script...  can i do with struts itself

hope i m clear.


thanks,
sudhakar




-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 8:14 PM
To: Struts Users Mailing List
Subject: RE: forwarding request from select tag


If you use html:option .../ then the selected value should show as being
selected when
the page is reloaded.

robert
  -Original Message-
  From: Namasivayam, Sudhakar (Cognizant)
[mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 08, 2004 9:15 AM
  To: Struts Users Mailing List
  Subject: forwarding request from select tag




  Hi all,

  I have a list page which has a combobox to select the filter.

  html:select property=statusfilter
  option value = AllAll/option
  option value = CompletedCompleted/option
  option value = In processIn process/option
  /html:select

  The page loads with the value all as default.


  Now if the different option say completed is selected, i want to reload
the same page with the new filter status.

  How should i do it?



  Thanks,

  sudhakar










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


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



Re: forwarding request from select tag

2004-01-08 Thread Raphaël di Cicco
my bad the function should return selectBox.options[i].value;
- Original Message - 
From: Raphaël di Cicco [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:04 PM
Subject: Re: forwarding request from select tag


 No you can't, you need to use javascript :

 html:select property=statusfilter
 onChange=javascript:doSomething(this);
   option value = AllAll/option
   option value = CompletedCompleted/option
   option value = In processIn process/option
   /html:select


 doSomething will probably do something like this :

 script language=javascript
 function doSomething(selectBox)
 {
  window.location.href = MyAction.do?id= + getSelectedValue(selectBox));
 }
 function getSelectedText(selectBox){

 for(var i = 0; i  selectBox.length; i++)

 if(selectBox.options[i].selected)

 return selectBox.options[i].text;

 return ;

 }

 /script


 - Original Message - 
 From: Namasivayam, Sudhakar (Cognizant) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 08, 2004 3:51 PM
 Subject: RE: forwarding request from select tag


 thanks robert...
 but what i wanted is  to reload the page automatically
 like

 select_Onchange()
 {
 reload the page with the new filter... == should i load the jsp file ???
 }

 Instead of this java script...  can i do with struts itself

 hope i m clear.


 thanks,
 sudhakar




 -Original Message-
 From: Robert Taylor [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 08, 2004 8:14 PM
 To: Struts Users Mailing List
 Subject: RE: forwarding request from select tag


 If you use html:option .../ then the selected value should show as being
 selected when
 the page is reloaded.

 robert
   -Original Message-
   From: Namasivayam, Sudhakar (Cognizant)
 [mailto:[EMAIL PROTECTED]
   Sent: Thursday, January 08, 2004 9:15 AM
   To: Struts Users Mailing List
   Subject: forwarding request from select tag




   Hi all,

   I have a list page which has a combobox to select the filter.

   html:select property=statusfilter
   option value = AllAll/option
   option value = CompletedCompleted/option
   option value = In processIn process/option
   /html:select

   The page loads with the value all as default.


   Now if the different option say completed is selected, i want to
reload
 the same page with the new filter status.

   How should i do it?



   Thanks,

   sudhakar






 --
--
 


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


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


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



Re: annoying JSP runtime exception message

2003-12-30 Thread Raphaël di Cicco
This file says nothing really except charging servlet, container etc... that
would be great to have the JSP error output there.

- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 1:53 AM
Subject: Fw: annoying JSP runtime exception message


 What does your
 $TOMCAT_HOME/logs/hostnamedate.log say?
 Regards
 -Martin
 - Original Message -
 From:  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 29, 2003 10:05 AM
 Subject: Re: annoying JSP runtime exception message


  This comes up quite a bit for my Students.
  When using Tiles, the JSP full error does not get displayed, becuase
  tiles blocks it sometimes.
 
  I forward to the working JSP for the moment to see the error.
 
  .V
 
 
  Raphaël di Cicco wrote:
   Hi,
   I'm working with struts 1.1, Tiles and Tomcat.
  
   on my JSP pages where I did something wrong I often get this exception
 message :
  
   [ServletException in:/foo.jsp] Define tag cannot set a null value'
  
   or simply :
   [ServletException in:/foo.jsp] null
  
   Looking at the source of the HTML page don't give me more information,
 neither the tomcat logs. I used to have a detailed message explaining me
 where the define was wrong but now I have to carefully cut and paste parts
 of my JSP page to find out where the error is.
  
   Is there any way to tell Tomcat to also output JSP exceptions to a log
 file ? Or is is a struts problem ?
  
   Any ideas are welcomed !
   
   Raphaël di Cicco
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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



annoying JSP runtime exception message

2003-12-29 Thread Raphaël di Cicco
Hi,
I'm working with struts 1.1, Tiles and Tomcat.

on my JSP pages where I did something wrong I often get this exception message :

[ServletException in:/foo.jsp] Define tag cannot set a null value' 

or simply :
[ServletException in:/foo.jsp] null

Looking at the source of the HTML page don't give me more information, neither the 
tomcat logs. I used to have a detailed message explaining me where the define was 
wrong but now I have to carefully cut and paste parts of my JSP page to find out where 
the error is. 

Is there any way to tell Tomcat to also output JSP exceptions to a log file ? Or is is 
a struts problem ?

Any ideas are welcomed !

Raphaël di Cicco


Re: annoying JSP runtime exception message

2003-12-29 Thread Raphaël di Cicco
Sure.  i know I should do a logic:notEmpty, eventually I solved my problem
but it's really annoying to have such a poor description of the exception.

- Original Message - 
From: Parthasarathy Kesavaraj [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, December 29, 2003 3:33 PM
Subject: RE: annoying JSP runtime exception message


 I think actually u r doing a bean:define for which the value of the
 corresponding
 property is null..
 whenever b4 doing a bean:define check whether actually the proprty is not
 null using logic:present

  --
  From: Raphaël di Cicco[SMTP:[EMAIL PROTECTED]
  Reply To: Struts Users Mailing List
  Sent: Monday, December 29, 2003 7:56 PM
  To: Struts Mailing List
  Subject: annoying JSP runtime exception message
 
  Hi,
  I'm working with struts 1.1, Tiles and Tomcat.
 
  on my JSP pages where I did something wrong I often get this exception
  message :
 
  [ServletException in:/foo.jsp] Define tag cannot set a null value'
 
  or simply :
  [ServletException in:/foo.jsp] null
 
  Looking at the source of the HTML page don't give me more information,
  neither the tomcat logs. I used to have a detailed message explaining me
  where the define was wrong but now I have to carefully cut and paste
parts
  of my JSP page to find out where the error is.
 
  Is there any way to tell Tomcat to also output JSP exceptions to a log
  file ? Or is is a struts problem ?
 
  Any ideas are welcomed !
  
  Raphaël di Cicco
 

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



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



Re: [OT] Beer

2003-12-12 Thread Raphaël di Cicco
What do you mean recycled ? What's the process ?
- Original Message - 
From: Chappell, Simon P [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 4:12 PM
Subject: RE: [OT] Beer


 I still stand by my original assertion: ALL American beer is recycled! Is
it any wonder that I quit drinking the stuff when I moved from England to
America.

 -Original Message-
 From: Ben Anderson [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 12, 2003 9:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [OT] Beer
 
 
 alright, didn't think I'd need to chime in, but someone's
 gotta defend the
 black  gold:
 representing the great city of Pittsburgh:
 Iron City Beer
 
 From: Chappell, Simon P [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: [OT] Beer
 Date: Fri, 12 Dec 2003 08:57:50 -0600
 
 I think that these replies kinda prove my point! :-)
 
 (Notice how no one ever defends American beer!)
 
 Simon

 snip

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



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



Re: Popular We Hosting....???

2003-12-04 Thread Raphaël di Cicco
Off topic but I love your quotes !

- Original Message - 
From: Trieu, Danny [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 5:28 PM
Subject: RE: Popular We Hosting???

 
 The beginning of knowledge is the discovery of something we do not
 understand.
 - Frank Herbert (1920-1986)
 The essence of knowledge is, having it, to apply it; not having it, to
 confess your ignorance.
 - Confucius (551-479 BC)
 


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



my version of the Tokens

2003-12-01 Thread Raphaël di Cicco
Hi,

before knowing about tokens, I have implemented a way to deal with the refresh of a 
POST form problem. Now that I know that tokens exist, I can't really use them for 
several reasons, but mainly because it adds a field in the form which modifies my 
current form validation with javascript.
Here is what I have done in my ActionBase class, that every Action I use derives from :


protected void setDBFlag(Object o, HttpServletRequest request) {

synchronized(session.getId()){

request.getSession(false).setAttribute(

Parametres.DB_FLAG + o,

Parametres.CHECKBOX_TRUE);

}

}



protected void clearDBFlag(Object o, HttpServletRequest request) {

synchronized(session.getId()){

request.getSession(false).removeAttribute(

Parametres.DB_FLAG + o);

}

}



protected boolean checkDBFlag(Object o, HttpServletRequest request) {

synchronized(session.getId()){

return (

request.getSession(false).getAttribute(

Parametres.DB_FLAG + o)

!= null);

}

}


These methods should be called from the class below this way :

public class MyAction extends ActionBase{

...
protected ActionForward executeUpdate(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response)

throws Exception {

if (GET.equalsIgnoreCase(request.getMethod())) {

setDBFlag(this, request);

this.processBeforeUpdate(mapping, form, request, response);

return mapping.findForward(EDIT);

} 

else {

HttpSession session = request.getSession(false);

ListResultCsv resultats =

(ListResultCsv) (session.getAttribute(attTable));

if(checkDBFlag(this, request)){

//update DB

processUpdate(...,form);

updateBeanConteneur();

clearDBFlag(this,request);

}}

}

.



}//end of class

As you can see I'm putting a flag on the session. This flag name is actually function 
of the name of the Action instance itself (this). 

The idea is to put the flag to true while preparing the form, then when the form is 
submitted, I check if the flag is true then I do the updates and set the flag to 
false. So when a user presses refresh, the form is not submitted 2 times.
The problem with this solution is that I must use the same Action to prepare and 
submit the Form, but it's the case most of the times.
I was wondering if the solution I chose looks OK in a multi-user application. I know 
that each user has its own Action instance, so it should not be a problem, but at the 
same time, looking at Struts' implementation of the tokens which is more complicated, 
I think there might be some issues with my approach.

Thanks in advance for the feedback!


Raphaël di Cicco


Re: my version of the Tokens

2003-12-01 Thread Raphaël di Cicco
Thanks Adam for your comment.
Yes you're right... but in my application every new window I open is indexed
with a windowId.
In fact, every session attribute name is built using this windowId, so that
session objects don't mix between pages. The flag itself uses the windowId
this way, but I didn't put it in the code (something like
request.getSession(false).setAttribute(Parametres.DB_FLAG + o +
getWindowId(request), Parametres.CHECKBOX_TRUE);

Nonetheless, the problem you found will happen if the user decides to open a
new window by himself because the new window will have the same windowId as
the previous one :(


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:44 PM
Subject: Re: my version of the Tokens


 Hi Raphaël
 what happens if the user has two browser windows open for two different
 datasets which use the same action? He will be prevented from submitting
 the second one.

 Adam

 On 12/01/2003 11:30 AM Raphaël di Cicco wrote:
  Hi,
 
  before knowing about tokens, I have implemented a way to deal with the
refresh of a POST form problem. Now that I know that tokens exist, I can't
really use them for several reasons, but mainly because it adds a field in
the form which modifies my current form validation with javascript.
  Here is what I have done in my ActionBase class, that every Action I use
derives from :
 
 
  protected void setDBFlag(Object o, HttpServletRequest request) {
 
  synchronized(session.getId()){
 
  request.getSession(false).setAttribute(
 
  Parametres.DB_FLAG + o,
 
  Parametres.CHECKBOX_TRUE);
 
  }
 
  }
 
 
 
  protected void clearDBFlag(Object o, HttpServletRequest request) {
 
  synchronized(session.getId()){
 
  request.getSession(false).removeAttribute(
 
  Parametres.DB_FLAG + o);
 
  }
 
  }
 
 
 
  protected boolean checkDBFlag(Object o, HttpServletRequest request) {
 
  synchronized(session.getId()){
 
  return (
 
  request.getSession(false).getAttribute(
 
  Parametres.DB_FLAG + o)
 
  != null);
 
  }
 
  }
 
 
  These methods should be called from the class below this way :
 
  public class MyAction extends ActionBase{
  
  ...
  protected ActionForward executeUpdate(ActionMapping mapping, ActionForm
form, HttpServletRequest request, HttpServletResponse response)
 
  throws Exception {
 
  if (GET.equalsIgnoreCase(request.getMethod())) {
 
  setDBFlag(this, request);
 
  this.processBeforeUpdate(mapping, form, request, response);
 
  return mapping.findForward(EDIT);
 
  }
 
  else {
 
  HttpSession session = request.getSession(false);
 
  ListResultCsv resultats =
 
  (ListResultCsv) (session.getAttribute(attTable));
 
  if(checkDBFlag(this, request)){
 
  //update DB
 
  processUpdate(...,form);
 
  updateBeanConteneur();
 
  clearDBFlag(this,request);
 
  }}
 
  }
 
  .
 
 
 
  }//end of class
 
  As you can see I'm putting a flag on the session. This flag name is
actually function of the name of the Action instance itself (this).
 
  The idea is to put the flag to true while preparing the form, then when
the form is submitted, I check if the flag is true then I do the updates and
set the flag to false. So when a user presses refresh, the form is not
submitted 2 times.
  The problem with this solution is that I must use the same Action to
prepare and submit the Form, but it's the case most of the times.
  I was wondering if the solution I chose looks OK in a multi-user
application. I know that each user has its own Action instance, so it should
not be a problem, but at the same time, looking at Struts' implementation of
the tokens which is more complicated, I think there might be some issues
with my approach.
 
  Thanks in advance for the feedback!
 
  
  Raphaël di Cicco
 


 -- 
 struts 1.1 + tomcat 5.0.14 + java 1.4.2
 Linux 2.4.20 RH9

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


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



Re: Using map backed forms beans

2003-12-01 Thread Raphaël di Cicco
I think you can't...
if you want to display name, then you need to have a getName() and setName()

- Original Message - 
From: Antony Paul [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 11:36 AM
Subject: Using map backed forms beans


 Hi,
 When I use an ActionForm which have a HashMap to store values as
 specified in chapter 4 of the users guide, the name of the text field is
not
 properly displayed. My code is given below.

 ActionForm

 private Map map = new HashMap();
  public void setMap(String key,Object value){
   map.put(key,value);
  }
  public Object getMap(String key){
   return map.get(key);
  }

 in JSP i use this coding.

 html:text property=map(name) size=15 maxlength=25 title=User ID/

 When it is displayed on browser the name is displayed as map(name). I want
 it to be just name. (It is simple example. I need dynamic generation) How
to
 do it.

 Antony Paul.

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


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



Re: tokens creating a field in my forms

2003-11-21 Thread Raphaël di Cicco
OK, I was thinking the same thing.
Referring to fields by id is better but less convenient when all your fields
are accessed by maps therefore their names is something like
formProp(Foo.foo.fooo).


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 21, 2003 10:48 AM
Subject: Re: tokens creating a field in my forms


 On 11/20/2003 11:44 AM Raphaël di Cicco wrote:
  I understand how tokens work. I'm currently modifying my application to
use tokens every time possible. The thing is that I'm doing validation with
javascript on my JSPs, and very often checking form elements with the index.
  When using token, struts creates a form element at index 0, so every
validation I do is not working anymore since everything is reindexed by 1.
 
  I would like the struts form to place the token at the end of the form.
Is that possible?

 Hi Raphael,
 without looking at the source code I can't definitely say that it is
 impossible, but it is highly unlikely.

 Technically speaking you would be better off referring to your fields in
 javascript by id, rather than by index, since this situation with tokens
 is not the only one that will give you this problem. However I realise
 this will not be helpful to you if you have already finished the
 javascript code! Sorry :(

 Adam
 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9

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


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



tokens creating a field in my forms

2003-11-20 Thread Raphaël di Cicco
Hi,

I understand how tokens work. I'm currently modifying my application to use tokens 
every time possible. The thing is that I'm doing validation with javascript on my 
JSPs, and very often checking form elements with the index.
When using token, struts creates a form element at index 0, so every validation I do 
is not working anymore since everything is reindexed by 1.

I would like the struts form to place the token at the end of the form. Is that 
possible?

Raphaël di Cicco
Atos Origin - Ingénieur de réalisation
Les Miroirs 2ème étage - salle 208
e-mail : [EMAIL PROTECTED]
tél : 01-55-91-24-53

Re: getting current session in ActionForm

2003-11-07 Thread Raphaël di Cicco
request.getSession(false);

- Original Message - 
From: Taner Diler [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 6:09 PM
Subject: getting current session in ActionForm


 Hi,
 
 I get my default values from ActionForm object. But I can not implement
 localization feature to default values. Because, I can not get current
 session and struts LOCALE_KEY attribute from session in form object.
 
 How can I get current session object in my form object?
 
 Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: hide section of form

2003-10-24 Thread Raphaël di Cicco
With javascript you can disabled the questions input forms if someones
presses the radio button
- Original Message - 
From: Jan Kester [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 9:58 AM
Subject: hide section of form


 Hello

 how can I hide a section of my form with struts/javascript. That is,
someone
 presses a radio button and sees additional questions, presses the opposite
 radio button and questions disappears. Without reloading the form.

 Regards, Jan


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


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



Re: ArrayIndexOutOfBoundsException after resubmitting form

2003-10-17 Thread Raphaël di Cicco
Here's one thing I do to avoid resubmitting.
I put a flag on the user's session to tell whether or not he already has
done the transaction :
On preparing the form put the flag to true. When submitting, verify that
the flag is at true, if so then do the update in the database and put the
flag to false. The form won't be submitted again unless the user decides to
go to the form page again.
For the flag name I usually use the Action instance name, so when i'm in the
Action class I do session.setAttribute(this, true);

Raphaël
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 9:31 AM
Subject: RE: ArrayIndexOutOfBoundsException after resubmitting form


 May be in the reset you have emptied the list..

 Have a look at ListUtils.lazyList..That may solve your problem...

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 16, 2003 5:57 PM
 To: [EMAIL PROTECTED]
 Subject: ArrayIndexOutOfBoundsException after resubmitting form


 Hi all,

 I've searched the archive, but haven't found an occurrence of the exact
 same problem I am encountering.

 Here is a description of the problem:

 My intention is to use transactional tokens to prevent duplicate posting
of
 a form where a user deletes a row in a list of search results. After the
 delete is successful, I use the browser's back button to return to the
list
 of search results and attempt to submit the request to delete the same row
 again. At this point, an ArrayIndexOutOfBoundsException is thrown (the
 exception stack trace is provided below). After examining the debug log
 statements, it appears that the logic to validate the transactional token
 in the action has not yet been reached. The debug log statements indicate
 that the form's reset method is invoked and the getter for the list is
 called, but that is where it fails. The Struts logic is attempting to go
 past the last valid index in the list and I have not found a way to catch
 this nor prevent it.

 If anyone has any ideas, it would be much appreciated.

 Thanks in advance,

 Christina




Here is the Exception Stack Trace:

com.ibm.servlet.engine.webapp.WebAppErrorReport

com.ibm.servlet.engine.webapp.WebAppErrorReport: BeanUtils.populate
 at
com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:597)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:188)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:239)
 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
 at

com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
eInvocationContext.java:106)
 at

com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:154)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
 at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
 at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
 at
com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)

javax.servlet.ServletException
javax.servlet.ServletException:
BeanUtils.populate
 at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
 at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)
 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at
ca.toyota.core.controller.ControllerServlet.process(ControllerServlet.java:6
00)
 at
org.apache.struts.action.ActionServlet.$BIP$doPost(ActionServlet.java:525)
 at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

problem with forwarding to input from the method validate

2003-10-10 Thread Raphaël di Cicco
Hi,

I'm working with Struts 1.1 and tiles. It seems like the validate() can't
forward to my tiles page when an ActionErrors occurs.
Here is my struts-config.xml file :

action path=/EditDossCEAction
type=com.atosorigin.agrippa.web.communs.doss.EditDossCEAction
scope=request
name=EditDossCEForm
attribute=EditDossCEForm
input=page.communs.editDossCECarte
validate=true
forward name=edit path=page.communs.editDossCE /
forward name=editCarte path=page.communs.editDossCECarte /
/action

When my method validate on EditDossCEForm fails it returns a non null
ActionErrors and this is supposed to forward to the input page. The
RequestProcessor seems to find page.communs.editDossCECarte as the input,
however it fails in finding the corresponding tiles definition (
mapping.findForward(input) is null)
and therefore forward me to the correct page. I solved this problem by
adding this forward :
forward name=page.communs.editDossCECarte
path=page.communs.editDossCECarte /

Was anyone aware of this problem ? Any other way to solve this ?
Raphaël


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



Re: [Question] : Close popup after Action has exited...

2003-10-01 Thread Raphaël di Cicco
forward to a second page that self closes
BODY onload=javascript:window.close();

- Original Message - 
From: khote [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 12:38 PM
Subject: Re: [Question] : Close popup after Action has exited...


 in your form  onSubmit=self.close();

 or document.window.close() or try variations on that.  Sometimes the
browser
 will complain about, I'm not sure which one gets you past that.


 - Original Message - 
 From: Todor Sergueev Petkov [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, October 01, 2003 3:37 AM
 Subject: [Question] : Close popup after Action has exited...


  Hi,
  Does somebody know how I can close a popup window for which I have
  ActionForms and Action when some method in the action has performed its
  job ( exited )?
  Thanks
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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


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



img tag

2003-07-11 Thread Raphaël di Cicco
Hi,

I'm using Struts 1.1 with modules. I want to use the page attribute of  html:img but 
without struts genrating the module name.
For instance:
I'm in a JSP page inside the module administration
let's say I want to display an image called image.gif in directory img:
html:img page=/img/image.gif  width=229 height=32/

This is creating : 

img src=/myweb/administration/img/image.gif height=32 width=229
instead of :
img src=/myweb/img/image.gif height=32 width=229

Any solution to this problem with using src ?


Raphaël di Cicco
Atos Origin - Intégration projet AGRIPPA
2ème étage - salle 208
e-mail : [EMAIL PROTECTED]
tél : 01-55-91-24-53


Re: img tag

2003-07-11 Thread Raphaël di Cicco


Any solution to this problem with using src ?

Sorry read WITHOUT !


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