Hi,
(Sorry if you already get this message, I'm sure if it had been sent.)
is there a taglib "nested-el" ?
If not, what is the turnarround to evaluate an expression within a
tag ?
-
To unsubscribe, e-mail: [EMAIL PROTECTE
Folks,
I have a message in a jsp which require a dynamic attribute that I set
on a bean from an action class. I want to use that bean within the
tiles definition file. Is that possible? So for example, this is what
I would do in my jsp to get the dynamic attribute:
<%
int requiredNum
Assuming you meant that you want to add errors in the Action, rather than
the ActionForm, in your Action...
1. Create an empty ActionErrors object. Let's call it "errors".
2. Add messages to it as necessary (e.g. errors.add("propertyName"
,new ActionMessage("msg.key"));)
3. Then call the
chamal desilva wrote:
Hi,
I want store all messages in a properties file called
MessageProperties.
I added this line to struts config file.
How can I retireve values in properties file from my
action classes in order to display them using
tag.
Use getResources(request, key), where 'key' is
> type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">
>
So your form bean defines only one property, named AdHrs, which is a
list of values.
>
> requestURI="PrepareAction.do" >
>
>
> errorStyleClass="errormsg"/>
>
Thanks! Now what might be better? I have a legacy
application that has a "member" side and an "admin" side,
each with their own actions.
But many of the view pages are nearly identical. The only
difference in most of the view pages is the form submit, e.g.:
It makes for a lo
The org.apache.struts.action.ActionMapping class provides access to this
information. It is provided as the first parameter to the Action.execute
method, and is also stored as a request attribute under the
org.apache.struts.Globals.MAPPING_KEY key
("org.apache.struts.action.mapping.instance").
The
It's exactly the "lazy" part of the functionality that I need. I have a
large and arbitrary (because they can be defined by the user) set of classes
that need fields populated inside them to configure them. I'm assembling
the forms to get the user input based on the heirarchy of the class - they
The class you are missing is part of the commons validator framework.
http://jakarta.apache.org/commons/validator/
commons-validator.jar is certainly a part of the core struts
distribution though. Make sure you include all the struts dependencies
for your version.
If all you need is to define Act
>From within a struts 1.0 jsp, how can I find the name of the action that
invoked me?
I can find the context path easy enough:
<%= request.getContextPath().toString() %>
And the name of the .jsp that I'm in:
<%= request.getRequestURL() %>
But where is the action name hidden?
I've seen the LazyValidatorForm referenced on a number of websites. I
actually tried it before I tried the LazyDynaBean, but it causes an
exception. Apparently there's some related class missing? Here's what I
get from tomcat when I try to use it:
java.lang.NoClassDefFoundError:
org/apache/com
Thank you Wendy!
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 1:29 PM
To: Struts Users Mailing List
Subject: Re: Shale Validation framework - Dynamic Parameters.
On 7/11/06, Iakouchev Alexander-EAL027C <[EMAIL PROTECTED]> wrote:
> Is this
On 7/11/06, Iakouchev Alexander-EAL027C <[EMAIL PROTECTED]> wrote:
Is this possible to pass dynamically information from a beans as a shale
method parameter?
Please come join us on the Shale user list, and re-post your question there.
* http://shale.apache.org/mail-lists.html
Thanks!
--
Wend
I have a question.
Is this possible to pass dynamically information from a beans as a shale
method parameter?
The main idea is - I need to know about bean Ids then valuator invoked.
Solution, like below does not works.
,or something like this...
Alex Yakushev.
The class specified by the type attribute in your form bean must be a
concrete implementation of org.apache.struts.action.ActionForm (as the
signature of the Action.execute method indicates).
You can create your own implementation of ActionForm backed by a
LazyDynaBean, or try org.apache.struts.v
Hi,
You may recall I posted a message similar to this one several days ago. I
never received a reply, so I'm hoping that this shorter (and hopefully
simpler) version will get one. I'm using a LazyDynaBean as the form
associated with a strut, which the docs seem to say will work by being
wrapped
On 7/10/06, Thomas Joseph <[EMAIL PROTECTED]> wrote:
Hi all,
I have got a strange problem. My action class generates PDF, and writes on
the the response and fushes it, but I can see that this action is getting
called multiple times (2-5 times). I have cheked my struts-config to be just
perfect (
Thanks for the reply, I will consider your suggestion.
I could have written the business objects to fit the form bean with a
one-to-one mapping, but then I don't think it's a good idea to make the
domain objects match your framework's solution (even though it would
have been quicker this way).
I
Kiren-
I assume you mean BeanUtils.copyProperties(...) right?
If so, I believe the reason you cannot use it is because
BeanUtils.copyProperties(...) performs a shallow copy and per the
javadocs (HTML tags removed): "...and so complex properties (for
example, nested ones) will not be copied."
Maya-
Excellent! For a list box, I believe that you must have at least one
option selected at any given time. If you don't want to provide a
default and force the user to actually select one (and then you can
validate the user's input to ensure he/she has actually selected a real
value) the
Thanks Adam
Implemented it and it worked.
One quick question, when we use these tags, one of the options get selected
by default. How can we modify the tag so that NONE of the options get selected
by default ?
Thanks.
Adam Gordon <[EMAIL PROTECTED]> wrote:
Maya-
Let's say your T
Also, if you are submitting the request with script (i.e. onclick event
of a button) it's possible that the browser is submitting the form and
the call for the onclick.
-Original Message-
From: Ulrich Elsner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 10:35 AM
To: Struts Users
Hi,
just to be sure: in the Action, you do a
return null;
if everything is successful?
Everything else looks ok [1] or at least shouldn't trick Struts into
rerunning the
action. You might want to set the ContentType in the response, though.
Ulrich
[1] that is, looks just like my code, which j
1.4.2 was Mantis. Pretty much all significant revisions have code
names, then the codename is dropped after the production release.
http://java.sun.com/j2se/codenames.html
[EMAIL PROTECTED] wrote:
> Hi,
> I don't think 1.4.2 has got a naming. It started from 1.5 (Tiger) and
> SE6 "Mustang", 7 "Do
When using download Action 2 Dialogue Windows are opening.
Is it wrong in adding
response.setHeader("Content-Disposition.
---
protected StreamInfo getStreamInfo(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
Hi Martin,
I am delegating the pdf generation from the action class to a different
class, that uses itext to generate PDF, which inturn provides the bytestream
to the action class. Action Class writes these bytes to the browser and then
flushes the stream.
Here is the sample code for your referen
Thomas Joseph-
How are you generating the PDF?
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you hav
On 7/11/06, David Delbecq <[EMAIL PROTECTED]> wrote:
Recently, i decided to play a bit with shale. I began to write some
tests jsp to play with it. I came across various problems/interrogations:
Please come join us on the Shale user list, and re-post your question there.
http://shale.apach
Hello all,
Recently, i decided to play a bit with shale. I began to write some
tests jsp to play with it. I came across various problems/interrogations:
1) considering the following dialog configuration, and the following
jsps (see bottom of email), i am supposed to have one main dialog, wi
I haven't seen this error, but my guess is that you have referenced a
form bean in your validation.xml that is not defined in
struts-config.xml. Look for a typo in the name.
-ed
On 7/11/06, Anil Kumar Pippalapalli <[EMAIL PROTECTED]> wrote:
hi all,
iam new to struts and iam tryin out a simpl
On 7/11/06, Julian Tillmann <[EMAIL PROTECTED]> wrote:
HI!
Thank you for your link!
I tried to deploy the war-file on tomcat 4 and tomcat 5 but always get the same
exception "major-minor version".
Does it require JDK 1.5?
I hope not because I would be very interested in this tool!
Thanks
Ju
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
this list is not for jasper. try this:
http://jasperreports.sourceforge.net/documentation.html
Abhimanyu Koul wrote:
> hi all I asked a question.
> Can anyone please help me. its urgent
> Regards,
> Abhimanyu Koul
> FinEng Solutions (P) Ltd.
> # +91
hi all I asked a question.
Can anyone please help me. its urgent
Regards,
Abhimanyu Koul
FinEng Solutions (P) Ltd.
# +91 22 66950676 Extn. 212
DISCLAIMER
This e-mail and any attachments are confidential and intended solelyfor the
addressee and may also be privileged or exempt from disclosure un
HI!
Thank you for your link!
I tried to deploy the war-file on tomcat 4 and tomcat 5 but always get the same
exception "major-minor version".
Does it require JDK 1.5?
I hope not because I would be very interested in this tool!
Thanks
Julian
Original-Nachricht
Datum: Tue,
http://moskito.anotheria.net is probably what you want.
try
http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers
The project is (yet) rather bad documented (working on it) so ask me
directly if you have any questions :-)
regards
Leon
On 7/11/06, Julian Tillmann <[EMAIL PROTECTED]>
hi all,
iam new to struts and iam tryin out a simple application which validates
password for minlength and maxlength in nb 4.1.
iam gettin several exceptions saying unable to load validation.xml and
validation-rules.xml
check below errors,
Using CATALINA_BASE: C:\Documents and
Settings\
Hi everybody,
we need a performance test on the actions level in our rather big Struts
Application which contains many database queries. for example to find out which
Action takes the longest or which actions might cause a high CPU usage ..
Is there a tool how to implement it? Or is it possibl
Hi,
I don't think 1.4.2 has got a naming. It started from 1.5 (Tiger) and
SE6 "Mustang", 7 "Dolphin"
Thanks and Regards,
S.Ramkumar
Associate Consultant - Investment Banking
PrimeSourcing(tm) "Add Value Reduce Risk"
i-flex solutions limited, Bangalore
Ph:+ 91-80- 22086000/57596000- extn 6873
E-
Hi All
Can anyone tell me the name of
JDK1.4.2 like Java SE6 name is "Mustang".
With Regards
Vasumathi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi
I've got a domain object which stored an indexed array of objects.
<-- Extract of Domain Object
public class GroupExposures {
private Exposure [] exposures=new Exposure[]{new Exposure(),new
Exposure(),new Exposure()};
class Exposure{
float totalSBSA
40 matches
Mail list logo