Finally, some progress.
web.xml
context-param
param-nametemplatePath/param-name
param-valuetemplate/param-value
/context-param
It said in the source code that it can't be a relative path but for me
template is under my webroot.
Sean Ford wrote:
Hello,
We
After some googling; I'm looking at the Result interface.
Would it be proper for the action to set a property, and use this custom
Result to read that property from ValueStack and write it to (with XStream
for isntance) ServletActionContext.getResponse().getOutputStream() ?
So Results exist for
Hi Overby
Result is indeed your choice to go.
in general you should avoid any direct use of the Servlet stuff in your
Actions.
you should prepare your data in your action or execute then determine what
data type you want to return then return the proper result string
then let your Result format
Does the (temporary!!) files get deleted automatically? I though that
we have to delete it with some additional code.
Can any one make clear on this.
Yes. On upload, the commons-fileupload library creates temporary files on
the disk which are deleted on completion of the request. I
Newton, Ying, Yang,
Works like a charm. Thank you very much.
gove...@students.kennesaw.edu
On Wed, Oct 13, 2010 at 2:24 AM, Steven Yang kenshin...@gmail.com wrote:
Hi Overby
Result is indeed your choice to go.
in general you should avoid any direct use of the Servlet stuff in your
Why is the params-prepare-params not in the default stack / behavior
already? I think one of the first things S2 gets really useful at is the
params / prepare stuff and a LOT of people keeps asking the same
question, and getting the same answer use the params-prepare-params
stack. Any reasons
Hello all,
Is it a normal way to create jrxml file for jasperreport dynamically?
I ask this because I want to skip all fields with null values so that the
report looks more tight. Especially for the page header, which contains
company information, for example, if the company has no web site or
Not long ago, I gave a cursory glance at http://dynamicjasper.sourceforge.net/ .
I don't know if it can help you.
Anyway jrxml file are xml file, so at least you should be able to do
some dom manipulation.
Otherwise you should consider using some template engine like
freemarker or velocity
You should ask Jasper questions in their lists/forums--more likely to
get answers.
Doing this means you'd be recompiling the report every time it's run.
On Wednesday, October 13, 2010, cellterry cellte...@gmail.com wrote:
Hello all,
Is it a normal way to create jrxml file for jasperreport
On Wed, Oct 13, 2010 at 12:44 AM, Li Ying wrote:
But, in some case, the data loading logic need to access the
parameters value to know what data should be loaded.
And, unfortunately, the interceptor [prepare] is configured
before interceptor [params] in the default interceptor stack.
see:
Hi,
I'm investigating the changes that we will need for production use of
website code base utilizing Struts2..
1) =
First of all, we are still using 2.0.x series Struts2. From what I can
tell this means we are theoretically vulnerable to
On Wed, Oct 13, 2010 at 10:37 AM, Caoilte O'Connor wrote:
1) =
First of all, we are still using 2.0.x series Struts2. From what I can
tell this means we are theoretically vulnerable to
http://blog.o0o.nu/2010/07/cve-2010-1870-struts2xwork-remote.html
There's no
Hello,
I've got an action with this property:
private ListListCellCost cellCosts;
public void setCellCosts(ListListCellCost l) {
this.cellCosts = l;
}
public ListListCellCost getCellCosts() {
return this.cellCosts;
}
The outer list is a list of locations, each of which has a list of
I am not using common-fileupload library so do I have to write extra
piece of code to delete?
Anjib
On 10/13/2010 3:11 AM, Rahul Mohan wrote:
Does the (temporary!!) files get deleted automatically? I though that
we have to delete it with some additional code.
Can any one make clear on
You're not? You sure?
http://www.mvnbrowser.com/artifact-details.html?groupId=strutsartifactId=strutsversion=1.2.9tab=DEPENDENCIES#tabs
http://www.mvnbrowser.com/artifact-details.html?groupId=strutsartifactId=strutsversion=1.2.9tab=DEPENDENCIES#tabs
Dave
On Wed, Oct 13, 2010 at 4:10 PM, Anjib
Dave,
Thanks for the tip, it worked perfectly! To recap, I changed the addresses
mapping
/** persistent field */
@OneToMany(mappedBy=customer,
targetEntity=com.inftropy.plus.account.Customer.model.Address.class, cascade
= { CascadeType.ALL}, fetch=FetchType.EAGER)
Yes I am sure
I am working on front side only so I am sending stream to server using
delegate provided by the server.
My code skeleton is as follow:
@Override
protected ActionForward executeAction(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
Right, so, Struts 1 uses commons-fileupload, and so does your code--what
makes you think you're not using it?! Where do you think those classes come
from?
Dave
On Wed, Oct 13, 2010 at 4:32 PM, Anjib Mulepati anji...@hotmail.com wrote:
Yes I am sure
I am working on front side only so I am
Glad you worked it out :)
Dave
On Wed, Oct 13, 2010 at 4:30 PM, Ryan Beckes rbec...@gmail.com wrote:
Dave,
Thanks for the tip, it worked perfectly! To recap, I changed the addresses
mapping
/** persistent field */
@OneToMany(mappedBy=customer,
Hi Dave:
What version of Struts are you using?
A long time ago, i met the similar problem in Struts1.
I thought the parameter named cellCosts[0][4].quota
should be translated into java code likes:
action.getCellCosts().get(0).get(4).setQuota(value);
And the method [get] throws a
Anjib,
First of all, I replied to your query assuming that you are using Struts2.
( This seems to be the most common confusion in this mailing list. I
wonder why Struts2 does not have its own mailing list? The answers are
always different!! )
Anyways, after looking at your code, I can still
21 matches
Mail list logo