Hi friends,
I am using struts 2.0.1.2. I am using "url" tag and I am
facing some problem. Please help me in this. The following is the code in
jsp
http://www.mypopproject.com/p/paypal.action"; id="returnURL"
includeParams="none" escapeAmp="
Thanks for your kind reply but I have commons-fileupload-1.1.1.jar and
commons-io-1.2.jar in my lib folder. With those jar files included, doesn't
that mean that I should be able to do file uploads automatcally?
On Thu, Nov 20, 2008 at 2:56 PM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> ryan we
This is my complete URL:
http://localhost:/ConfiguracionDTX2Web/EliminarSuscripcion.action?indice=4
And this this is my setter:
public int getIndice() {
return indice;
}
Any ideas?
Thanks!!.
Volker Karlmeier wrote:
>
> Hi,
>
> what does your parameter look like
Hallo Tomi,
this is obviously a getter and not a setter method.
try
public void setIndice(int indice) {
this.indice = indice
}
Dirk
Tomi21 wrote:
This is my complete URL:
http://localhost:/ConfiguracionDTX2Web/EliminarSuscripcion.action?indice=4
And this this is my setter:
public int
That's not a setter but a getter. Unless you have a setIndice method
in your action it won't be set.
Nils-H
On Thu, Nov 20, 2008 at 9:32 AM, Tomi21 <[EMAIL PROTECTED]> wrote:
>
> This is my complete URL:
> http://localhost:/ConfiguracionDTX2Web/EliminarSuscripcion.action?indice=4
>
> And this
I'm sorry!!it seems to be too early for me.
I have both getter and setter of course:
public int getIndice() {
return indice;
}
public void setIndice(int indice) {
this.indice = indice;
}
The setIndice method is no
What does your struts.xml look like?
Nils-H
On Thu, Nov 20, 2008 at 10:01 AM, Tomi21 <[EMAIL PROTECTED]> wrote:
>
> I'm sorry!!it seems to be too early for me.
> I have both getter and setter of course:
>
>
>public int getIndice() {
>return indice;
>}
>
>
This is my struts.xml:
http://struts.apache.org/dtds/struts-2.0.dtd";>
error.jsp
index.jsp
main.jsp
ryan webb wrote:
Thanks for your kind reply but I have commons-fileupload-1.1.1.jar and
commons-io-1.2.jar in my lib folder. With those jar files included, doesn't
that mean that I should be able to do file uploads automatcally?
Yes. The "unable to load bean MultiPartRequest (jakarta)" m
Hi,
Only in this case is not working with the parameter "indice" or none of
the parameters (in other actions) are set?
Can you try to use Integer instead of int? For me it works with Integer.
Best regards,
Andras.
-
To unsubs
2008/11/20 Andreas Sachs <[EMAIL PROTECTED]>:
> isUserLoggedIn();
> getUser();
> getMenu(); (the menu depends on the user)
>
> public ...sessionCreated() {
>MainManager mM = new mainManager()
>session.setattribut("mainManager",mM)
>}
>
> Within the jsp i use:
>
> #session.mM
I've changed the type to Integer and is still not working. If I set the
parameteres with a form and POST method everything works fine but if I use
tag (GET method) the setter is never called.
Has it maybe something to do with interceptors?
Thanks for helping. I'm going crazy with this issue!!.
Yes, but it is the same when I remove ajax with simple. Here is my jsp page,
there is no AJAX word there and I still get submited twice:
http://www.w3.org/1999/xhtml"; xml:lang="en">
// Dojo configuration
djConfig = {
baseRelativePath: "/myApp/struts/dojo",
isDebug: true
Does ANYONE know how to pass parameters to report in Struts 2 when
JasperReportsResult is used ?!
Milan Milanovic wrote:
>
> Hi,
>
> I want to use JasperReports from my Struts 2 app. But I have a problem
> with datasource param. I want to pass Connection object (created or if
> possible cla
--- On Thu, 11/20/08, Milan Milanovic wrote:
> Does ANYONE know how to pass parameters to report in Struts
> 2 when JasperReportsResult is used ?!
I will send you a sanitized version of my custom JR result, or you can just
look in the S2.1 source where the patch has been applied.
Dave
Actually, just use the S2.1 jasper result, IIRC I didn't do anything in
particular for the S2.1 version, and (believe it or not) it's cleaner than the
version I would have emailed you--our in-house version is structurally quite
different, the S2.1 version doesn't have the same extreme changes (a
Dear Dave,
O.K. Thank you. Please, send me that class or a link to S2.1 source where
can I find it.
Just one more thing, how can I include this class in my Struts 2.0.11.1
installation ? Please don't tell me that I need to checkout Struts source
and recompile it with new class ?
--
Best regards
Hi again,
I tried to implement SessionAware but with no luck.
I have this call in the jsp page:
My investigation are:
Using Firefox:
a) I access with localhost: all ok
b) I access with name or ip: all ok
Using IE :
a) I access with localhost: all ok
b) I access with name or ip:
--- On Thu, 11/20/08, Milan Milanovic wrote:
> O.K. Thank you. Please, send me that class or a link to
> S2.1 source where can I find it.
Use [1] and cut-and-paste, or follow the standard checkout process and copy it
into your project.
> Just one more thing, how can I include this class in my
>
Great Dave! Thanks very much. This is very helpful for anyone who deals with
business applications that includes S2 and JR.
I'll try to use this solution.
--
Regards, Milan
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> O.K. Thank you. Please, send me that class or a l
--- On Thu, 11/20/08, Milan Milanovic wrote:
> Great Dave! Thanks very much. This is very helpful for anyone who
> deals with business applications that includes S2 and JR.
Keep me posted and let me know if there are other JR needs.
Dave
Dave,
when I copied this class to my project, it say that I don't have these two
classes:
ValueStackDataSource and ValueStackShadowMap. Should I copy them too ?
--
Regards, Milan
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> Great Dave! Thanks very much. This is very
--- On Thu, 11/20/08, Milan Milanovic wrote:
> when I copied this class to my project, it say that I
> don't have these two classes: ValueStackDataSource and
> ValueStackShadowMap. Should I copy them too ?
Hmm, maybe so--the work I did on this was awhile ago so I don't really recall.
Do you have
Yep, I have struts2-jasperreports-plugin-2.0.11.1.jar in my
project/WEB-INF/lib. I don't know why it doesn't recognize those classes.
I'll check this.
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> when I copied this class to my project, it say that I
>> don't have these
Dear Dave,
It works now. I get report, but with null values. In console I get this:
WARN net.sf.jasperreports.engine.query.JRJdbcQueryExecuter:89 - The supplied
java.sql.Connection object is null.
I check, my Connection object which is attribute of my action class is not
null in action method w
--- On Thu, 11/20/08, Milan Milanovic wrote:
> WARN
> net.sf.jasperreports.engine.query.JRJdbcQueryExecuter:89 -
> The supplied java.sql.Connection object is null.
>
> I check, my Connection object which is attribute of my
> action class is not null in action method which show report.
> Why my Co
Dear Dave,
newton.dave wrote:
>
> --- On Thu, 11/20/08, Milan Milanovic wrote:
>> WARN
>> net.sf.jasperreports.engine.query.JRJdbcQueryExecuter:89 -
>> The supplied java.sql.Connection object is null.
>>
>> I check, my Connection object which is attribute of my
>> action class is not null in a
I found what is the problem. In JasperReportsResult doExecute() method you
call report in this way:
jasperPrint = JasperFillManager.fillReport(jasperReport, parameters,
stackDataSource);
where : ValueStackDataSource stackDataSource = new
ValueStackDataSource(stack, dataSource);
But my dataSourc
That sort of defeats the purpose of using the JR result--the idea behind the
plugin, AFAICT, was to accept an action's collection property as the data
source. If you're not going to do that then the JR result may not be of much
benefit to you.
Dave
--- On Thu, 11/20/08, Milan Milanovic <[EMAI
Yes, I understand. But who needs that ?! One collection for a report ? In
every application I have complex reports with SQL queries on the databse,
and only I need to pass parameters.
O.K. Anyway, what I need to change in order that JR result accept Connection
object ? Can I just say: Connection
--- On Thu, 11/20/08, Milan Milanovic wrote:
> Yes, I understand. But who needs that?!
Lots of people. Many JR reports are simply well-formatted tabular data which is
trivially represented by a list, potentially of composite objects. In fact
that's all I've ever used it for over a half-decade.
Hi all,
I have a simple form with 2 buttons (diff action), how can I make sure both
will exec?
http://www.nabble.com/2-buttons-for-the-same-form%2C-error-when-trying-to-invoke-different-action-tp20608955p20608955.html
Sent from the Struts - User mailing list archive at Nabble.com.
2008/11/20 xianwinwin <[EMAIL PROTECTED]>:
> I have a simple form with 2 buttons (diff action), how can I make sure both
> will exec?
Do you get any error or something?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscr
yes, I get: undefined
* I use ajax for the return type
* the action is not executed (meaning, when the user clicks a button the
failure occurs before the action)
Lukasz Lenart wrote:
>
> 2008/11/20 xianwinwin <[EMAIL PROTECTED]>:
>> I have a simple form with 2 buttons (diff action), how c
2008/11/20 xianwinwin <[EMAIL PROTECTED]>:
> yes, I get: undefined
It's a JavaScript error, could you post the whole page?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Why is this form submitte twice ?
Milan Milanovic wrote:
>
> Yes, but it is the same when I remove ajax with simple. Here is my jsp
> page, there is no AJAX word there and I still get submited twice:
>
> http://www.w3.org/1999/xhtml"; xml:lang="en">
>
>
> // Dojo configuration
> djCo
I don't think that came through properly; perhaps try pastebin or similar.
Dave
--- On Thu, 11/20/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: Form submitted twice (no AJAX!)
> To: user@struts.apache.org
> Date: Thursday, November 20,
Struts Problem Report
Struts has detected an unhandled exception:
Messages: No result defined for action
com.struts.incentive.target.StepsIncentiveAction and result success
File:
file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/MGroups/WEB-INF/classes/incentiv
2008/11/20 xianwinwin <[EMAIL PROTECTED]>:
>
> Struts Problem Report
> Struts has detected an unhandled exception:
>
> Messages: No result defined for action
> com.struts.incentive.target.StepsIncentiveAction and result success
Here you have answer, you are missing success result in config for
th
I have it:
/pages/incentive/steps/ajaxInput.jsp
/pages/incentive/steps/ajaxAddStep.jsp
/pages/incentive/steps/ajaxConfirmation.jsp
2008/11/20 xianwinwin <[EMAIL PROTECTED]>:
> I have it:
>
>
> class="com.struts.incentive.target.StepsIncentiveAction">
> name="input">/pages/incentive/steps/ajaxInput.jsp
> name="ajax-add-step">/pages/incentive/steps/ajaxAddStep.jsp
>
@SuppressWarnings("unchecked")
public String addStep()
{
System.out.println("do abc");
return "ajax-add-step";
}
@SkipValidation
public String completeIncentive()
{
Hi I finally got it!
Three request parameters are by default to uploading files to struts 2
-the file itself
-the content type and
-the filename
Frame work is expecting some correct methods like the one you suggested.
It's uploading now. Thank you very much your reply, and your time. It has
been
By the way, is there a file size limit for uploading files? I tried to
upload 600+MB of movie and it just failed!
What can you say 'bout this?
On Fri, Nov 21, 2008 at 7:22 AM, ryan webb <[EMAIL PROTECTED]> wrote:
> Hi I finally got it!
> Three request parameters are by default to uploading files
I would like to use the tag to choose a contact
name in a database. However, the number of contacts that I will be
searching is 5000+. When I follow the examples on apache.org, the
techniques load the entire list when the page is rendered. The has
serious performance implications. Is there a w
Hi!! Where can I find the list of string values for
in struts.xml?
So i may use it as future reference...
thanks
--
warmest regards,
Ryan Webb - Philippines
email: [EMAIL PROTECTED]
I'm not sure if this covers all of them, but a good place to start is
here -
http://struts.apache.org/2.0.12/docs/strutsproperties.html
-Wes
On Fri, 2008-11-21 at 11:14 +0800, ryan webb wrote:
> Hi!! Where can I find the list of string values for
> in struts.xml?
> So i may use it as future r
Thank you very much for your information!
The link was very helpful! Appreciate your help my friend!
On Fri, Nov 21, 2008 at 11:22 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
> I'm not sure if this covers all of them, but a good place to start is
> here -
>
> http://struts.apache.org/2.0.12/
48 matches
Mail list logo