When ActionDispatcher to be used ?

2006-08-23 Thread Raghuveer
When does ActionDispatcher action to be used? org.apache.struts.actions.ActionDispatcher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Problem with JSTL and Struts tag But Not with

2006-08-23 Thread Vishal Seth
Nested tags...i guess does not work.. -Original Message- From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 10:48 AM To: Struts Users Mailing List Subject: Problem with JSTL and Struts tag But Not with Why is it that when I do the below with struts t

Problem with JSTL and Struts tag But Not with

2006-08-23 Thread Mississippi John Hurt
Why is it that when I do the below with struts tag I get an error "Unterminated text ... but when I use a regular HTML tag, its able to handle the JSTL fine? ">text ... Any ideas? I very much want to use the Struts tag and JSTL so I

one error when I use the dbcp in struts,

2006-08-23 Thread 黄叶
hi, guys. when I use the struts and dbcp for configure the database pool. if the data is very large, the tomcat always throw a exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 2006-8-24 9:50:08 org.apache.catalina.core.ContainerBase$Contain

[SOLVED] Re: Auto render form bean as hidden fields

2006-08-23 Thread Scott Van Wart
In case anyone's curious, here's the synopsis of my solution: - Manually annotate (Java 1.5) the private fields I want to "track". - Have a base class that stores the original state (when a record is first loaded from the database, for editing, for example). - Write a class that walks through th

Re: Can we specify variables in html form tags action attribute

2006-08-23 Thread Scott Van Wart
Chetan Pandey wrote: pageContext.setAttribute(propertyaction,"propertyaction");%> pageContext.setAttribute() is a standard map-based pattern. All of these use (key, value) and not (value, key) as you have above. Swap the two arguments. Remember your scope (third parameter). - Scott ---

Re: TagExtraInfo ,getVariableInfo

2006-08-23 Thread Scott Van Wart
Raghuveer wrote: WHy exactly TagExtraInfo to be implemented. What makes difference it this is used and not used in in TLD file Example: MessagesTei extends TagExtraInfo { TagExtraInfo { public IterationTEI() { super(); } public VariableInfo[] getVariableInfo(TagData data) {

Re: Form Validation

2006-08-23 Thread Scott Van Wart
Chetan Pandey wrote: Is their a way to specify multiple inputs. Nope. A wise man once told me that validate="true" is there only for convenience. So the workaround is to do something like 'validate="false"', omit the input= tag, and add forwards like, public void create( ActionM

Re: Question about Lookup dispatch action

2006-08-23 Thread mosho
Hey Scott FINALLY! It works !!! Including xml tag in my javascript is the solution for me. THANKS ! Scott Van Wart-2 wrote: > > mosho wrote: >> Hi Scott, >> >> I added a unspecified() method in my action class and it works now. >> I am not able to understand though how it is working, unspeci

Re: When my JSP calls the action class SErvlet Exception is thrown.

2006-08-23 Thread Scott Van Wart
sheetal wrote: _Does anybody has any idea why is it so...(Why is the servlet exceotion thrown) Couple of things to check: - In struts-config.xml, make sure your package names and class names of your and tags are all spelled correctly, including case. - Do the same for your ActionForm and

Re: about overriding the excute method

2006-08-23 Thread Scott Van Wart
Gomathi wrote: hai, what will happen when the execute () of action class is overrided by the subclass called dispatch action?. Regards gomes If you mean extending DispatchAction, your execute() method will get called. Unless you have a call to super.execute() (which then calls DispatchA

Creating a DynaBean from an ActionForm on the fly

2006-08-23 Thread Scott Van Wart
Is it possible to get a DynaBean object from an ActionForm programmatically? I need to create a copy of a form, but cloneBean isn't working. I have a map-based nested bean (which lets me do stuff like 'myform.child(ABC).name), but cloneBean does a SHALLOW (argh!) copy of the map so the origin

Re: Question about Lookup dispatch action

2006-08-23 Thread Scott Van Wart
mosho wrote: Hi Scott, I added a unspecified() method in my action class and it works now. I am not able to understand though how it is working, unspecified() is called when parameter name doesn;t exist, right? I have a parameter name= navigation and its value is shown as {submitText}. But it c

Re: about overriding the excute method

2006-08-23 Thread Monkeyden
"Object Oriented Programming" I would suggest investing in a copy of Java POOP [ http://stevenf.com/mt/gfx/javapoop.jpg]? Of course we know it's an acronym for "Principles of Object Oriented Programming", but good times nonetheless. On 8/23/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: the o

Re: Question about Lookup dispatch action

2006-08-23 Thread Michael Jouravlev
On 8/23/06, mosho <[EMAIL PROTECTED]> wrote: I am assuming it is calling unspecified() because it is not able to find the key name {submitText} Instead of assuming you can verify it. If you are using Firefox, LiveHTTPHeaders is invaluable plugin for HTTP traffic sniffing.

Re: select tag and value issue

2006-08-23 Thread Laurie Harper
If you hardcode value="42", the option with value '42' will always be selected. If you hardcode value="license", as you have below, the option with value 'license' will always be selected -- and you don't have an option with that value, so nothing is selected. You need to *remove* the value=..

Re: Question about Lookup dispatch action

2006-08-23 Thread Wendy Smoak
On 8/23/06, mosho <[EMAIL PROTECTED]> wrote: I added a unspecified() method in my action class and it works now. I am not able to understand though how it is working, unspecified() is called when parameter name doesn;t exist, right? I have a parameter name= navigation and its value is shown as

Re: about overriding the excute method

2006-08-23 Thread Leon Rosenberg
the overriding action's method will be called, what do you expect? leon On 8/23/06, Gomathi <[EMAIL PROTECTED]> wrote: hai, what will happen when the execute () of action class is overrided by the subclass called dispatch action?. Regards gomes -

Re: Question about Lookup dispatch action

2006-08-23 Thread mosho
Hi Scott, I added a unspecified() method in my action class and it works now. I am not able to understand though how it is working, unspecified() is called when parameter name doesn;t exist, right? I have a parameter name= navigation and its value is shown as {submitText}. But it calls unspecifi

Re: Question about Lookup dispatch action

2006-08-23 Thread Scott Van Wart
mosho wrote: Yes, that's exactly the way it works. My navigation with lookupDispatchAction works perfectly. The problem arises when I have another to link instead of button to submit the form, how do I pass navigation parameter value then? The javascript with hidden field doesn't solve the proble

Re: request processor

2006-08-23 Thread Monkeyden
Classic! What is the purpose of a lawn mower? What about a hair brush? A screwdriver? Noun + [implied] Verb = clearly stated purpose On 8/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Is this a bad Karnak routine? Johnny: "To parse requests" Ed McMahon: "To parse requests" -tears en

Re: When my JSP calls the action class SErvlet Exception is thrown.

2006-08-23 Thread Monkeyden
You should really look at the Tomcat logs, as the message mentions. Perhaps if you posted the root cause of the exception, and more context, someone could help you. That said, what gives you the impression that it's the Action and not something else, like the ActionForm? Did it manifest itself

RE: Re: select tag and value issue

2006-08-23 Thread Jonathan Drnek
I think I am. I changed the JSP to also display the license id as a text field. The JSP is Name Location Approved License ID: License  

RE: Resource bundles and Struts taglibs

2006-08-23 Thread O'Shea, Sean
Hi Niall, Thanks again for your help - your suggestion worked. Sean -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 11:03 AM To: Struts Users Mailing List Subject: Re: Resource bundles and Struts taglibs On 8/23/06, O'Shea, Sean wro

[OT][ANN] JAVAWUG BOF XXII / Sun London / 20 Sept 2006 @ 18:30 / featuring Jason van Zyl, Maven 2.0

2006-08-23 Thread Peter . Pilgrim
Hi I would like to formally announce that ``JAVAWUG'' (Java Web User Group) is holding the twenty second Birds-of-Feather XXII (Meet up number 22) at the Sun's London Office on Wednesday, 20th September 2006 from 18:30. For more information http://www.jroller.com/page/javawug?entry=announcemen

Re: Struts 1.3 and bean write

2006-08-23 Thread Wendy Smoak
On 8/22/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: I am testing struts 1.3.5 and I have a difference with previous version. When I call bean:write to display an int property in my jsp page I have the following value org.apache.struts.taglib.bean.format.int19 instead of 19. Have you got an

Struts and bean write

2006-08-23 Thread Jean-Marie Pitre
Hi, I am testing struts 1.3.5 and I have a difference with previous version. When I call bean:write to display an int property in my jsp page I have the following value org.apache.struts.taglib.bean.format.int19 instead of 19. Have you got an idea ? Regards, Jean-Marie. --- Ema

Re: Action will be processed two times

2006-08-23 Thread Leon Rosenberg
lemme guess, internet explorer? Leon On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all, I use struts for a long time and have a lot of experience with struts I think (or better hope) Now I have the problem that after I submit a form the action of the form will be processed two tim

RE: Action will be processed two times

2006-08-23 Thread Givler, Eric
Is the return forward from your action a forward to an action or to a JSP? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 7:21 AM To: user@struts.apache.org Subject: Action will be processed two times Hi all, I use struts for a lon

Action will be processed two times

2006-08-23 Thread Dirk.Wichmann
Hi all, I use struts for a long time and have a lot of experience with struts I think (or better hope) Now I have the problem that after I submit a form the action of the form will be processed two times. The exceptional is that when i run the application in debug mode the action will only process

Re: Resource bundles and Struts taglibs

2006-08-23 Thread Niall Pemberton
On 8/23/06, O'Shea, Sean wrote: Hi all, I'm using struts 1.2.9 and I'm having some trouble with resource bundles. My JSP looks like this: <%@ include file="../taglibs.jsp" %> I'm plugging

Resource bundles and Struts taglibs

2006-08-23 Thread O'Shea, Sean
Hi all, I'm using struts 1.2.9 and I'm having some trouble with resource bundles. My JSP looks like this: <%@ include file="../taglibs.jsp" %> I'm plugging my resources into my struts-config

Re: Question about Lookup dispatch action

2006-08-23 Thread mosho
Yes, that's exactly the way it works. My navigation with lookupDispatchAction works perfectly. The problem arises when I have another to link instead of button to submit the form, how do I pass navigation parameter value then? The javascript with hidden field doesn't solve the problem. Thanks!

about overriding the excute method

2006-08-23 Thread Gomathi
hai, what will happen when the execute () of action class is overrided by the subclass called dispatch action?. Regards gomes

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-23 Thread David Friedman
Are you doing a "forward" or a "dispatch". One of them handles mappings differently because you are inside the application already and won't use the filters a second time. That is why the latest version of the servlet spec allows you to specify which one in your web.xml mappings. I'm heading o

[OT] request.getServletPath() val not same in Filter & Servlet

2006-08-23 Thread pantichd
Hello, Sorry for posting this in Struts mailing list but I can't seem to get an answer on any other discussion groups. I've always had great results getting good answers here so here goes... I have a Filter in my app that uses the request.getServletPath() method to get the name of the page being

RE: request processor

2006-08-23 Thread Kalra, Ashwani
Do you know how to google ? http://wiki.apache.org/struts/RequestProcessor -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 9:52 AM To: Struts Users Mailing List Subject: request processor hai, what is the use of request processor? This me

[OT][ANN] JAVAWUG BOF XX Videos Uploaded

2006-08-23 Thread Peter . Pilgrim
Hi The JAVAWUG is happy to announce two new videos uploaded to Google Video of the birds-of-a-feather meeting number 20. Petstore RIFE Edition by Emmanuel Okyere http://video.google.com/videoplay?docid=37561501217859187&q=JAVAWUG+BOF+ XX Rearchitecting Legacy J2EE Applications with the Spring F

Getiing java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts

2006-08-23 Thread krishan rathi
Hi all i am getting following exception java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts. MyForm Bean is public class ReportItemForm extends ActionForm { FormItem [] formItem=null; public void setItem(int index, FormIt

[OT] RE: TagExtraInfo ,getVariableInfo

2006-08-23 Thread Kalra, Ashwani
If you want to construct some object based on the attributes passed to the tag and then make this object available on the jsp page in some scope. JSP container uses this information. The object then is available as java variable in the scriplet. Read this http://java.sun.com/products/jsp/tutoria

[tiles] Tiles 2 and JSF

2006-08-23 Thread Mehdi Bahribayli
I want to be one on early users of Tiles 2. The followings are snippets of my configuration and code: pom.xml --- ... org.apache.struts.tiles tiles-core 2.0-SNAPSHOT runtime ... web.xml --- ...

When my JSP calls the action class SErvlet Exception is thrown.

2006-08-23 Thread sheetal
Hi, During deployment on tomcat, when my jsp ties to invoke action class, following error is flashed.. *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Se

[OT] Re: Regarding Pager Taglib

2006-08-23 Thread Antonio Petrelli
Medicherla Lakshmi ha scritto: Hi, Am using pager taglib in my jsps and its working fine with navigation. But, suppose i enter to the 2nd page and edit a record in that page, again the page is getting refreshed and the 2nd page status is not maintained. Can anyone please tell me h

[OT] Re: get values from property file

2006-08-23 Thread Antonio Petrelli
Gomathi ha scritto: hai i want to get one value from property file to action class how to achieve this Uhm, I am starting to suspect that you want your homework done by the community... - To unsubscribe, e-mail: [EMAIL

get values from property file

2006-08-23 Thread Gomathi
hai i want to get one value from property file to action class how to achieve this

TagExtraInfo ,getVariableInfo

2006-08-23 Thread Raghuveer
WHy exactly TagExtraInfo to be implemented. What makes difference it this is used and not used in in TLD file Example: MessagesTei extends TagExtraInfo { TagExtraInfo { public IterationTEI() { super(); } public VariableInfo[] getVariableInfo(TagData data) { -

Regarding Pager Taglib

2006-08-23 Thread Medicherla Lakshmi
Hi, Am using pager taglib in my jsps and its working fine with navigation. But, suppose i enter to the 2nd page and edit a record in that page, again the page is getting refreshed and the 2nd page status is not maintained. Can anyone please tell me how to check for the pagenumber or

RE: Can we specify variables in html form tags action attribute

2006-08-23 Thread Vidya Mahavadi
Exactly what you are trying to do.. -Original Message- From: Chetan Pandey [mailto:[EMAIL PROTECTED] Sent: Wednesday 23 August 2006 06:22 To: 'Struts Users Mailing List' Subject: Can we specify variables in html form tags action attribute Dear All: I am trying to put a variable in a