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/';
...
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
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,
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));
}
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
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
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
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
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
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
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
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
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
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
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
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
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));
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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?
Amit Gupta
Mobile: 91-9818052171
Yahoo IM: amitguptainn
MSN IM : amitguptainn
37 matches
Mail list logo