Re[2]: accessing Actionform properties from javascript

2004-12-27 Thread Dmitrii CRETU
try this = function doCancel(p_btn) { var v_url = ; c:choosec:when test=${not empty xxxForm.someJavaField} v_url = 'html-el:rewrite action=/an/actoin?operation=view/'; ...

Problem with html:option

2004-12-27 Thread Peter Neu
Hello all, I got a problem using a HashMap with the html:option. This code works when I use a LinkedList but I can't get it to work with a HashMap. Can somebody tell what I have to do to make it work with a HashMap? html:select property=id_mb onchange=submit() html:options collection=HashMap

Do I need ActionForm or DynaActionForm?

2004-12-27 Thread uma.k
Hi, I wanted to fetch some records from the database and show it to the user in a JSP. Do I need ActionForm or DynaActionForm class? What if I dont use any of these classes? Will there be any problem? Uma - To unsubscribe,

html:link param value

2004-12-27 Thread uma.k
Hi, I have a problem with html:link tag. I need to pass dynamic param value with the same key.This is what I am doing Vector cats = (Vector)request.getAttribute(categories); HashMap params = new HashMap(); for(int x=0; x cats.size(); x++) { params.put(category, (String)cats.get(x)); }

Re: Do I need ActionForm or DynaActionForm?

2004-12-27 Thread atta-ur rehman
No! there won't be any problem at all if you don't use any form at all! Just set your collection of records as request attribute and off it goes to JSP! ATTA On Mon, 27 Dec 2004 17:01:16 +0530, uma.k [EMAIL PROTECTED] wrote: Hi, I wanted to fetch some records from the database and show it to

RE:[SOLVED] Do I need ActionForm or DynaActionForm?

2004-12-27 Thread uma.k
Thanks -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 6:36 PM To: Struts Users Mailing List Subject: Re: Do I need ActionForm or DynaActionForm? No! there won't be any problem at all if you don't use any form at all! Just set your

Could not deserialize the context attribute org.apache.struts.action.REQUEST_PROCESSOR

2004-12-27 Thread deepak
Hi, Has anyone got thiserror : could not deserialize the context attribute "org.apache.struts.action.REQUEST_PROCESSOR" java.io.NotSerializableException: org.apache.struts.tiles.TilesRequestProcessor at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at

Re: Problem with struts form select and html escape codes

2004-12-27 Thread Jeff Beal
Another option would be to add the actual non-breaking space character (Unicode 160) instead of the entity reference for a non-breaking space character. -- Jeff David G. Friedman wrote: Try adding filter=false on your html:options ... / tag. The docs explain it this way: Filter Set to false if

Re: Help needed - submitting dynamic text boxes to ActionForm

2004-12-27 Thread Jeff Beal
Use indexed properties. There's a lot of information on indexed properties in the Struts documentation and in the archives of this mailing list, so I won't go into detail here. The basic idea of an indexed property is that your getters and setters have an extra (int) parameter that is the

Re: Which setter do I need in the ActionForm for this example?

2004-12-27 Thread Jeff Beal
I think this goes back to what Richard said a few posts back. The collection used to populate a select list is distinct from what the browser sends back. Let's say you have a map that looks something like this: { [001,Value 1],[002,Value 2],[003,Value 3],[004,Value 4] } (I just made that

RE: NoClassDefFoundError

2004-12-27 Thread Bala . Paranj
NoClassDefFoundError means it is not able to find the class CreateCategoryAction. Is it part of a package? If so, do you have the package statement? Is the source file in the correct directory structure? My guess is : It is thinking that there is no package name for CreateCategoryAction and

Cannot find bean under name dbCategories

2004-12-27 Thread uma.k
Hi, I get this exception when I try to use html:options with collection=dbCategories. This is what I am doing index.jsp html:link page=/articleForm.doArticle/html:link my struts-config.xml action path=/articleForm forward=/articles/Template.jsp / action path=/PreviewArticle

ExceptionHandler: no access to application context available by d esign, maybe this should be improved

2004-12-27 Thread Lesaint Sébastien
Hi, I want to use the ExceptionHandler class for handling exception occurring in my webapp. I need to store the exception caught into the database, only display few info to the user and a unique ID for her to contact support if required. I think it is considered as quite a good practice, but I

nesting a collection inside another collection

2004-12-27 Thread Vinicius Caldeira Carvalho
How can I nest a collection inside another? Like I have a collection of products each product has a collection of modules, when trying to use nested:iterate property=products //iterate through request modules collection containing name and idvalue of each module logic:iterate name=modules

RE: Struts and DreamWeaver

2004-12-27 Thread Chaikin, Yaakov Y.
Well, I've read all the posts on this subject and all those who portray DW as the problem couldn't MORE wrong. The problem here is not DW, the problem is ignorant designers! DW has almost 100% support for CSS2 (and unbelievable at that!)! It's not perfect, but there is just no better tool out

File Upload In Applications Using Struts And JSF

2004-12-27 Thread Nikola Banovic
Hello, Can you please give me an advice on how to upload a file in an application which uses Struts and JSF? Should I use Struts file element or is there another way to do this? Thanks. Nikola

ActionMessages problem

2004-12-27 Thread Barnett, Brian W.
Hello, I'm sure it's something simple, but I can't get my ActionMessage to display in my JSP page. Action class code: ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(errors.includedAmountGreaterThanAmountSpecified));

nested:select and expression evaluation

2004-12-27 Thread Vinicius Caldeira Carvalho
Hi there I checked the tld for nested-el and it shows that the property onChange has the rtexprvalue is set to true. But I try to put some expression language value in there and it's not working: nested:iterate . indexId=idx nested-el:select onchange=changeProduct($idx) it's printing

RE: nested:select and expression evaluation

2004-12-27 Thread Jim Barrows
-Original Message- From: Vinicius Caldeira Carvalho [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 12:21 PM To: Struts Users Mailing List Subject: nested:select and expression evaluation Hi there I checked the tld for nested-el and it shows that the property

RE: Struts for beginners

2004-12-27 Thread Chaikin, Yaakov Y.
Mastering Jakarta Struts by Craig? What book is that? ISBN? -Original Message- From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED] Sent: Sunday, December 26, 2004 4:31 PM To: Struts Users Mailing List Subject: RE: Struts for beginners Hi, I would recommend Mastering Jakarta Struts

Re: nested:select and expression evaluation

2004-12-27 Thread Brandon Goodin
try using the proper syntax ${myVariableGoesHere} notice the brackets around the variable name and the dollar sign at the beginning. On Mon, 27 Dec 2004 17:20:45 -0200, Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Hi there I checked the tld for nested-el and it shows that the property

Unable to delete Object form Session scope - help needed

2004-12-27 Thread Peter Neu
Hello all, I have a problem with an object(A hash map with wrapper objects) which I have put in the session scope on Page 1. On page 2 I modify it and delete some of the wrapper objects from the hash map. Aftwards I put the modified hash map back into the sessions scope. Code: -- HashMap

Re: ActionMessages problem

2004-12-27 Thread Kishore Senji
Make sure that you have imported the html tag library On Mon, 27 Dec 2004 12:53:27 -0600, Barnett, Brian W. [EMAIL PROTECTED] wrote: Hello, I'm sure it's something simple, but I can't get my ActionMessage to display in my JSP page. Action class code: ActionMessages messages = new

RE: ActionMessages problem

2004-12-27 Thread Barnett, Brian W.
Yes, I have the necessary tag libraries imported. -Original Message- From: Kishore Senji To: Struts Users Mailing List Sent: 12/27/2004 6:40 PM Subject: Re: ActionMessages problem Make sure that you have imported the html tag library On Mon, 27 Dec 2004 12:53:27 -0600, Barnett, Brian

(newbie)preferred way of managing product catelog

2004-12-27 Thread Sudheer
Hi, I am developing a JSP(2.0) shopping cart using struts(1.2) framework. I want to know which is the preferred way of managing a product catelog. I am using a mysql db, which has a category table and a product table, all products are categorised in a parent-child relation ship. Do I have

RE: ActionMessages problem

2004-12-27 Thread Sudheer
Hi, I think this discussion thread from the www.theserverside.com will give you what u r looling form. http://www.theserverside.com/discussions/thread.tss?thread_id=30176 Sudheer -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004

Error in instantiate TagExtraInfo class

2004-12-27 Thread Manisha Sathe
I am installing struts framework on another m/c. I copied all related files + my application war file over there. Set class path for struts.jar. Now testing with one small program with struts. --- %@ taglib uri=struts/bean-el prefix=bean % %@ taglib

Re: Which tlds/jars I am suppose to make use of ?

2004-12-27 Thread Manisha Sathe
Coming back with the one more query regarding this. I am having sample which uses c.tld (which is inside EL version which i believe jstl). But under normal lib directory they do not have c.tld. Do i need to copy c.tld from EL incase i want to make use of jstl? Thanks and regards Manisha

RE: Could not deserialize the context attribute org.apache.struts.action.REQUEST_PROCESSOR

2004-12-27 Thread Meenakshi S
Hi, Whenever you serialize an object, the class of that object should implement the serializable interface. Plz check if the object which you are trying to serialize implements the serializable interface or not. For more details you can simply cut n paste the notserializable exception in

RE: Error in instantiate TagExtraInfo class

2004-12-27 Thread David G. Friedman
Manisha, I don't think setting the classpath with another framework will do the job. You should still have the struts.jar in WEB-INF/classes because the struts.jar should be copied into each webapp. Putting it in some 'global' place may cause errors, especially if multiple struts applications

Multiple struts config files.

2004-12-27 Thread Amit Kumar Sharma
Dear All, We have an existing project where the size of struts-config.xml file is ever increasing the struts version we are using is 1.1. Can some one direct me to a place or through some light with example on how to implement multiple struts config files for an existing stable code without much

RE: Multiple struts config files.

2004-12-27 Thread Viral_Thakkar
Create multiple struts config xml files and place entries in the web.xml file -Original Message- From: Amit Kumar Sharma [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 10:13 AM To: Struts Subject: Multiple struts config files. Dear All, We have an existing project where

RE: Error in instantiate TagExtraInfo class

2004-12-27 Thread Manisha Sathe
Thanks David, It worked, i put all jars inside Tomcat's /Common/lib directory and it worked. Btw, does this mean that automatically class path is set for all jars which r inside /common/lib OR {yr application}/WEB-INF/lib - which is having precedence ? Thanks once again, regards Manisha

RE: Error in instantiate TagExtraInfo class

2004-12-27 Thread Thutika, Srinivas (ODC - Satyam)
Hi, Could u pls elobarate u r problem...So that can understand the problem... Did u mentioned all the struts jar's in web.xml...so by the time of application starting it will load dynamically.. --Thanks Regards Srinivas Thutika -Original Message- From: Manisha Sathe [mailto:[EMAIL

[OT] I need to configure logs on my virtual hosting

2004-12-27 Thread Amit Gupta
Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory.

RE: Which tlds/jars I am suppose to make use of ?

2004-12-27 Thread mohan.radhakrishnan
Hi, 1.The TLD's are *usually*(It works) in the META-INF folder in the concerned jar. 2. It seems that it will be found if it is *anywhere*(I haven't tried this) under WEB- INF if your container implements auto-scanning as mentioned in the spec. Mohan -Original Message- From: Manisha

Can we create group in Yahoo/MSN messenger to help those who need fast help

2004-12-27 Thread Amit Gupta
Can we create group in Yahoo/MSN messenger to help those who need fast help? Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn