Hi all,
I was wondering if anyone of you have a solution
For this dilemma.
I have a collectin of product DTOs to show on my jsp. One of
DTO's property is, let's say, the type, which is listed in number.
(let's say, 10 or 20).
ON the DTO I will have the value 10,20 ecc but on the jsp I
Hi all,
In my app I am using a DynaActionForm with scope = session.
When I am calling the action for the first time, obviously the
Form is 'emtpy', so I populate it with all the values..
When I am redirected to the action class again, the actionform
Should be in the session (in theory).
Hi,
In my previous company I had exactly what you are talking about,
Access and fields are restricted by country (and we had also different
Names for fields depending on the country - not internationalization,
just
Different name).
Solution adopted was to have only ONE database in which
Hi,
I got same frustration that you had I got solved
By trying to reuse the webapp examples..
Steps:
- define a Datasource in server.xml (following instructions given in
tomcat), within the context jsp-examples (one of
the webapp that comes along with tomcat
- inside
Hi all,
I have the same problem... I was going to use jasper (I posted a
similar message in jasper mailing list) but I am stucked at the point
Of how do I render the report generated by jasper
If I want to show it to the user, ideally I have to get the report in
XML
Format and then
or
something else which is set up to render webapps in html?
Niall
- Original Message -
From: Marco Mistroni [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 4:00 PM
Subject: RE: Reporting + Struts
Hi all,
I have the same problem... I
Hi,
I m assuming u have been thru the steps of configuring
Jndi in tomcat (update of server.xml and common\lib)
Assuming you have called, in ur server.xml, your datasource test/myDb,
You would have entered a resource-ref in your web.xml, that refers to
Test/myDb
Now when you look it up
Hi all,
I have a colletion of items that have a method called price.
I was wandering if I could calculate the total of all prices via struts
Tags rather than using java code...
Anyone has any ideas?
Thanx in advance and regards
marco
HI,
I guess those changes,which have 'context scope', need
Always a redeploy
Only changes that don't need a redeploy can be jsp changes (provided
that
You deploy your application as a 'directory' rather than war file)
Regards
marco
-Original Message-
From: Abhishek
Hi all,
Assume that I have following struts-config.xml
action path=/receiveLine
type= ReceiveLineAction
input=/receiveLine.jsp
name=receiveLineForm scope=request
forward name=failure path=/receiveLine.jsp
Hi,
My 2 cents... I had to implement similar functionalities
And I used a plugIn...
I would go for writing a common GenericService interface, and
And a GenericServiceFactory implemented as plugin (so that you
Get your specific service from the factory).
How do you create specific
Hi,
Check on the net for SAX handlers examples...you have
To maintain the state yourself after each sax event.
Example quick? Create a global case object in your handler, and
At each start element check if it is a case or an assigned or
something else..
If it is a case, instantiate a new
Hi,
In my case I still declare properties in
Struts-config, so the validator still validates (as I have seen
From the errors received :-)
I was curious 'bout Guillermo approach coz I was trying
To explore ways so that a change in parameters from
Backend layers will lead to as small
Hi Hubert,
I would be very interested in it...or at least
If u can describe me how the whole process works..
By plugin you mean struts-plugin?
Regards
marco
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 19:24
To: Struts
Hi Guillermo,
I have one question: will 'your trick' work also if I have
properties of type, for example, Short, or Integer, or java.sql.Date?
Thanx and regards
marco
-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 12:43
To:
, Marco Mistroni wrote:
Hi Guillermo,
I have one question: will 'your trick' work also if I have
properties
of type, for example, Short, or Integer, or java.sql.Date?
Thanx and regards
marco
-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: 17
Hi all,
I have a form which contains a reset button (html:reset) and
whenever I submit the form and got errors from Action class, it seems
that
the reset button does not work properly, since when I click on it it
does
not reset anything.. no matter if I specify my own custom javascript
Hi all,
In my app I am using a DynaActionForm to retrieve
Input values.
I have one problem: one field of the bean is of type BigDecimal.. in the
Jsp I am setting the default initial value of zero, but this does not
prevent the silly user from deleting the zero and leave the field blank.
At
Hi,
Easiest thing is to handle this in the validate method of
your action form, provided that
You have a parameter in your Action form that can tells you if you are
adding modifying or viewing..
Regards
marco
-Original Message-
From: [EMAIL PROTECTED]
Hi,
I haven't understood properly ur workflow, but I'll add my 2
cents since I have encountered similar problems...
Is this scenario feasible?
1 - b4 going to screen, u call the setup action which loads the data
2 - setup will redirect to the input page that will submit the form to
Hi all,
Does anyone know how to access application.resources from a JSP?
With best regards
Marco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it is done in the struts-example.
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (cell)
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
- Original Message -
From: Marco Mistroni [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent
Hi all,
I have written a plugIn in which I have to lookup something in
the JNDI tree..
However,whenever I try to lookup something (In the plugIn), I got the
exception.
My servlet is loaded at startup...so my guess is that when the plugIn is
initialized the context is not yet there
Is
Hi,
My 2 cents..
For the first half of your query, you can use JMX timer. Best way to do
that
Is to write an MBean that register itself with the timer and eventually
receive notifications.
You can make so that the 'object htat needs to be updated all the time'
is
A listener to
Hi all,
I was wondering one thing..
Suppose that in page1 I define a tiles:setAttribute name=foo
Is It possible to get it out from page2 WITHIN a custom JSP tag?
Thanx in advance and regards
marco
-
To
Hi all,
I need to use the logic:equal inside a logic iterate..and I am
Having problems..
My case is that I hae in an ActionForm an HashMap property which
contains
Pairs of String, MyObject. My object has a Boolean property called
status
What I want to do is to loop thru all the objects
Hi all,
I have problem in invoking a javascript for following code...
nested:iterate id=element name=batchTaskForm property=tasks
tr class=workscreen
td align=right class=workscreen
bean:write name=element property=value.type/
Hi all,
I am using a DispatchAction in my application. I have declared
the
Type of the exception that will be raised in case one method raises an
exception..
But I am stuck with the fact that i have, in 4 methods, the same type of
Exception but with different message.
When I declare the
Hi,
My 2 cents..
For doing something like this, looks like what u need would be
An XML string on the web while having a Java objet in the backend..
Look at Castor (http://castor.exolab.org), it may suits your needs...
Regards
marco
-Original Message-
From: Navjot Singh
Hi all,
In my application I have to connect to MBean server and
registers some
MBeans, that will be then available (thru an interface) to my
application.
For doing that, I was thinking of writing a plugin that contains my
JMXAgent (plugin1) to abstract the connection to MBean server
Hi Craig,
Thanx for your comments.
It uses reflection on POJOs (plain old Java objects) but not on
DynaBeans -- the
implementation inside DynaActionForm is a HashMap with typesafe
getters and
setters.
In my case I have a Custom DTO with setter/getters and a Form bean that
extends
Hi all,
I have a question about using BeanUtils in Struts.
For saving me from writing lot of code, I am using DynaActionForms in my
pages.
In the backend, I have some DTOs, so I decided in order to make
My app more 'extensible' without rewriting too much code, to use
BeanUtils to populate
Hi all,
I am trying to get things working with DynaActionform.
I have defined my dynaAction form in my struts-config file as follows..
form-bean name=productAliasForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=aliasRef type=java.lang.String/
--
productMaintenance.jsp
If its not this, then I think the list might need a fragment of your jsp
code as well
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 December 2003 11:26
To: 'Struts Users Mailing List'
Subject: Error in JSP when using DynaActionForm
Hi all
AliasMaintenance.jsp as the error message says
or
is it a typo?
As coded the action you've described should forward to another jsp --
productMaintenance.jsp
If its not this, then I think the list might need a fragment of your jsp
code as well
-Original Message-
From: Marco Mistroni [mailto:[EMAIL
Hi all,
Sorry that I bothered the list with my spam.
I found the problem..in the struts config I was still associating
The old MyForm bean to the new action created 'AliasMaintenanceAction'
So whenever, in my aliasMaintenance.jsp, I was using the tag
html:form
Hi,
How about a plugIn?
Regards
marco
-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
Sent: 22 December 2003 14:11
To: Struts Users Mailing List
Subject: Re: How find DataSource?
Merry Christmas,
Wow, I finally connected to my data source!
Hi all,
Can you tell me how can I initialize dynamic form in struts
config?
Do I have to do something like this
form-property name=name type=java.lang.String value=init/
??
how about when I have to initialize a java.sql.Timestamp? I was used to
initialize it like this new
and
declare it in the validator-rules.xml. That way you can control how it
will behave and validate the parameters...
-Yves a.k.a. the witness to your long debates with Chad regarding
morality and politcs :o)
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent
Hi all,
I am experiencing problems with DynaActionForm..
I have a DynaActionForm that contains 13 properties and
A DispatchAction used calling different methods depending
On the value of one parameter (named methodToCall).
Now, when I enter the page for the first time the only request
Dec 2003, at 16:10, Marco Mistroni wrote:
Hi all,
I am experiencing problems with DynaActionForm..
I have a DynaActionForm that contains 13 properties and
A DispatchAction used calling different methods depending
On the value of one parameter (named methodToCall).
Now, when I enter
Hi all,
After struggling with my application, I have
One question to ask.
I have a DispatchAction class that handles my logic, and
A DynaActionForm associated with it.
The problem is that the jsp from which the request comes can
Contain either 1, 2 parameters (out of 13 of DynaActionForm)
Hi Wendy,
Only a little problem.. I haven't written any class for my
DynaActionForm. Instead, I declare all the properties in the
struts-config.xml
Struts does all the rest
But, anyway, can u give more details on ur solution to my problem?
Regards
marco
-Original
Hi all,
I am quite new to struts tag library and I need an advice.
In the HttpSession I have an object of type Collection, which stores
a list of MyObject.
MyOBject has two properties, description and id.
Out of this Collection of MyObject I must generate a selectable list
Which displays
44 matches
Mail list logo