Re: handling multiple independent window

2004-08-15 Thread brenmcguire
I think you could use a request-scope bean that contains an ID referring to one item in a session-scope collection (here I mean an array, a Map, a List...). Then expose your item in a page-context bean (using bean:define) and use it in the rest of the JSP page. Ciao Antonio Kailash Vasani wrote:

RE: Action Servlet not getting called.

2004-08-15 Thread Divakar Satyanarayan
Space is not there We use Apache web server & it displays a blank page. Regards, Divakar -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 12:08 PM To: Struts Users Mailing List Subject: Re: Action Servlet not getting called. what does tomca

Re: Action Servlet not getting called.

2004-08-15 Thread Navjot Singh
what does tomcat log returned? does it throw error or a blank page? is it because of space after this dot? type="mascot.workqueue.action. SummaryAction" regards Navjot Singh Divakar Satyanarayan wrote: Hi All, I have added following action mapping to struts-config.xml for a page. In

Connection and Tomcat server

2004-08-15 Thread Rajesh
Hai guys am still fasing same problem with my struts,tomcat with mysql. am working in the environment of tomcat,struts,dbcp,JP2, mysql.. i developed a site of round 20-50 actions which accesses db through DBCP to MySQL i completely debugged my site theroughly, there is no but in my code. i upl

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Hubert Rabago
If you're using Struts 1.2.x or the nightly builds, take a look at the MappingDispatchAction. It does exactly what you're looking for. http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html hth, Hubert --- Kunal Parikh <[EMAIL PROTECTED]> wrote: > Hi! > > I was wond

Action Servlet not getting called.

2004-08-15 Thread Divakar Satyanarayan
Hi All, I have added following action mapping to struts-config.xml for a page. In --- In The file SummaryAction.java is available in a jar that is in the classpath before and from this jar other pages are working. The jsp path is OK

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Kunal Parikh
That is EXACTLY what I've done: Changed the last line of the execute method of dispatch action FROM return dispatchMethod(mapping, form, request, response, name); TO return dispatchMethod(mapping, form, request, response, parameter);

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Navjot Singh
but then it wont remain a DisptachAction anymore ;-) as control will not reach same class for multiple actions. regards Navjot Singh Navjot Singh wrote: 110% POSSIBLE. retreiving the paramter name and method calls using reflection and are already done. all you need to do is override the implemen

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Navjot Singh
110% POSSIBLE. retreiving the paramter name and method calls using reflection and are already done. all you need to do is override the implementation and rather than checking for *method* value , check for last part of URI and call the respective method. just change execute() method in Dispatch

Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Kunal Parikh
Hi! I was wondering if it were possible to drop the parameter attribute in a dispatch action and map an actionPath to a method/methodName ? E.g /createUser -> public ActionForward createUser(ActionMapping m,ActionForm f,HttpServletRequest req,HttpServletResponse res ) /editUser -> public Acti

RE: best practice: how to handle two related jsp pages, with one having an ArrayList, the other input details

2004-08-15 Thread Kataria, Satish
It depends upon the architecture you want to follow. There are multiple ways this can be done 1. Create the 2 jsp as independent jsp. Thus the list jsp jsp always fetches from DB when we bring control to that. Clicking add on the list jsp leads to the adddetails jsp which submit data to DB.

Re: Overwritting RequestProcessor, how to???

2004-08-15 Thread Hubert Rabago
The Tiles plugin automatically changes your request processor to use the one that comes with Tiles. If you need to override the RequestProcessor, make sure you extend TilesRequestProcessor like Niall said. --- Leandro Melo <[EMAIL PROTECTED]> wrote: > Niall, > i actually use tiles, but does it m

submit and listbox

2004-08-15 Thread Jitender K Chukkavenkata
Return Receipt Your submit and listbox document :

help me for "No form found"

2004-08-15 Thread char
hi all, I get an error, please help me ! Thanks I use tomcat 5.0.27 and struts 1.2.1, the error is : javax.servlet.jsp.JspException: No form found under 'familyInfoForm' in locale 'zh_CN' at org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(Javascr

Modifying Tiles definitions dinamically

2004-08-15 Thread Leandro Melo
Hi, i got a very ordinary problem. I need to provide diferent menus for diferent people that are logged in the application. I don't know what i should do exactly to provide this funcionality, because i don't really know what Tiles allow me to do (i don't know it's potencial). I got the following b

Re: Overwritting RequestProcessor, how to???

2004-08-15 Thread Leandro Melo
Niall, i actually use tiles, but does it mean that the requestProcessor i'm using is the Tiles one. In my struts-config.xml i got this for the configuration part. So, i guess i'm using default's RequestProcessor, wich is struts RequestProcessor, am i right? --- Niall Pemberton <[EMAIL PROTEC

Re: Specifying HTML form names

2004-08-15 Thread jthompson
You could add your own attribute to a form tag, so that your javascript could distinguish forms based on the value/presence of this attribute. eg the following has 5 different forms, all with the same name and fields, but I've added a new attribute 'mylabel': function showForms() { var

Re: Problems on disabling inputs

2004-08-15 Thread Erik Weber
There is also the readonly attribute to html:text. Erik Leandro Melo wrote: I don't get exception Mike, i just get the following on my page (viewing source from the browser). instead of getting this. Then, when the user submits the data, my ActionForm understands that the input "test" is equals("

best practice: how to handle two related jsp pages, with one having an ArrayList, the other input details

2004-08-15 Thread lixin chu
Hi, How should I handle this: I have 2 jsp, in a.JSP, I need to display an ArrayList. When users click 'Add', B.JSP is displayed which allows users to fill in the details of a new object. When users click 'Done', I need to return back to A.JSP, display the newly added object, and ArrayList should

Re: Read only iterate?

2004-08-15 Thread Mike Elliott
On Saturday 14 August 2004 17:52, Kishore Senji wrote: > Refer: > http://struts.apache.org/faqs/indexedprops.html > > > > > > > Problematic input > > > > > property="integer_value" indexed="true"/> > > >

Re: Overwritting RequestProcessor, how to???

2004-08-15 Thread Niall Pemberton
All you have to do is extend the RequestProcessor (or TilesRequestProcessor if you use tiles) and then specify it in the element of the struts-config.xml http://struts.apache.org/userGuide/configuration.html#controller_config I guess whether its a good idea or not depends on what you're doi

Re: Problems on disabling inputs

2004-08-15 Thread Leandro Melo
I don't get exception Mike, i just get the following on my page (viewing source from the browser). instead of getting this. Then, when the user submits the data, my ActionForm understands that the input "test" is equals(""). So, it returns some action errors. --- Mike Deegan <[EMAIL PROTEC

Re: Problems on disabling inputs

2004-08-15 Thread Jason King
This is an HTML-HTTP thing not a Struts thing. Disabled input elements aren't included in the get/post, just like unchecked check boxes. Mike Deegan wrote: Not sure the exact error you are getting, but I had a similar and going from memory ... when using the tag with disable="true" for a proper

Re: Problems on disabling inputs

2004-08-15 Thread Mike Deegan
Not sure the exact error you are getting, but I had a similar and going from memory ... when using the tag with disable="true" for a property I had to also code a for the property being disabled not sure if this will solve you problem - a dump of the exact exception you are getting may shed more

Problems on disabling inputs

2004-08-15 Thread Leandro Melo
Hi, if i try to disable an input like this i get something like this form the browser which, i don't know why causes my ActionForm to not "see" the value of the specific input, and then generate an error. Leandro

Overwritting RequestProcessor, how to???

2004-08-15 Thread Leandro Melo
Hi, i'd like to overwirte RequestProcessor, but actually i don't really know if it's a good idea. Here's the point: I'd like to have one more action if my form.validate() method fails on ActionForm. I'd like to do some specific stuff everytime the validate method fails. Then, i thought of overwrit