s:radio

2008-11-21 Thread srinivasa_v .
Hi All,
Is there any way to customise or our own lable in

About incresing file upload size in Struts 2

2008-11-21 Thread Hardik Shah

can anybody give me detailed configuration to increase size of file upload in
struts 2.0.11.2

please help me
-- 
View this message in context: 
http://www.nabble.com/About-incresing-file-upload-size-in-Struts-2-tp20633816p20633816.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



S2 custom tag - Passing custom tag attribute into action class

2008-11-21 Thread ManiKanta G
Hi,

I m struck with an issue with custom tag. And its kind of important for my
project completion.

I wrote a custom tag in S2 and of course related ftl file. It is just like
wrapper around a select box and few other controls. And I need to populate
the select box according to the attribute 'length' value specified in the
custom tag. But I m not able to get the attribute values in to the action.
With some searching on this, got to know that action classes will be
executed before the ftl file or cutom tag begins executing.

Could some please tell or direct me the flow for custom tags. And if it is
the case, is there any chance of getting custom tag attribute value in to
the action class.

will calling  in the ftl file works??? I mean as we are
calling action from ftl itself, is this possible?


ManiKanta


Problem with Select tag during migration

2008-11-21 Thread nikunj
 

Respected All,

In Struts1X,

 having attributes property and labelproperty those are having
list data type. 

 

Example:

 



 

But Struts2 doesn't support separate List data type for label and value.
Example: 



 

Data type of comboLabelValue is List, Which add object having key/value
property.

Here Key/value property having String data type. 

 

Can you please suggest me any alternative way in struts2 so that we can
manage combo as like struts1

 

 

 

Regards,

 

Nikunj

Applied Software Pvt. Ltd.

Ahmedabad

91-98249 88262



Populating textfield with dynamic string, stop expression evaluation.

2008-11-21 Thread Fender963

Hey All,

I've tried searching but either I dont' know what to search for, or it
simply hasn't been asked yet.

I have a textfield



Works fine until the string gets returned with something like the following:

"${dont.evaluate}"

I want the textfield to actually contain this string, instead it is being
evaluated, and since the object doesn't exist in this context, whats being
populated is a blank string.

Any thoughts?
-- 
View this message in context: 
http://www.nabble.com/Populating-textfield-with-dynamic-string%2C-stop-expression-evaluation.-tp20631795p20631795.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



setting a var with dynamic content

2008-11-21 Thread Frank Maritato
I need to set a variable that is specific to the object id I'm working 
with. I tried something like this:




and then later in the page:



but didn't get anything. Is there a different way to do this?
--
Frank Maritato

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dojo 404 and

2008-11-21 Thread Rabin Aryal
Gerhard,

Thanks for the reply. I am using 2.0.11.

Rabin 
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Gerhard Große
Sent: Friday, November 21, 2008 3:35 PM
To: user@struts.apache.org
Subject: Re: Dojo 404 and

Rabin Aryal  netlert.com> writes:

> 
> Hello,
> 
> I get the 404 on all the struts/dojo js and css files not found. 
> 

Hi,

this looks like you are using 2.0.12 and ran into a bug that sneaked into
this
release: See https://issues.apache.org/struts/browse/WW-2849 
This is fixed meanwhile, but a new release seems not quite ready yet.

If you don't want to wait, you can patch FilterDispatcher.java and change
line
411 from

String name = resourcePath.substring("/struts".length()); 

to 

String name = resourcePath;

At least this worked for me.

Gerhard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Loading and Calling Java Script in Struts

2008-11-21 Thread Karr, David
You might be better off with something like this:





> -Original Message-
> From: Casinova [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 21, 2008 1:09 PM
> To: user@struts.apache.org
> Subject: Re: Loading and Calling Java Script in Struts
> 
> 
> thanks for suggestion
> i have struts 1.2.9
> 
> i have included jstl 1.1 and now i am using like
> 
> <[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
> 
> paths are 
> 
> "/>
> "/>
> "/>
> 
> please refer project structure as given above please suggest 
> it feels i am near to solution...
> Thanks in advance
> 
> 
> newton.dave wrote:
> > 
> > Use either JSTL's  tag, S1's equivalent, or S2's 
> equivalent. 
> > I don't remember what version of Struts you're using.
> > 
> > Dave
> > 
> > 
> > --- On Fri, 11/21/08, Casinova <[EMAIL PROTECTED]> wrote:
> > 
> >> From: Casinova <[EMAIL PROTECTED]>
> >> Subject: Re: Loading and Calling Java Script in Struts
> >> To: user@struts.apache.org
> >> Date: Friday, November 21, 2008, 1:54 PM Sorry to say you but not 
> >> getting what to type in src=""
> >> Please can u brief me..
> >> 
> >> Thanks a lot
> >> 
> >> 
> >> 
> >> newton.dave wrote:
> >> > 
> >> > --- On Fri, 11/21/08, Casinova wrote:
> >> >> u tried that but getting jquery null or not a
> >> object error.
> >> >> [...]
> >> >> and right now i m giving absolute path  like
> >> >> 
> >> >> 

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova

thanks for suggestion
i have struts 1.2.9

i have included jstl 1.1 and now i am using like

<[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>

paths are 

"/>
"/>
"/>

please refer project structure as given above
please suggest it feels i am near to solution...
Thanks in advance


newton.dave wrote:
> 
> Use either JSTL's  tag, S1's equivalent, or S2's equivalent. I
> don't remember what version of Struts you're using.
> 
> Dave
> 
> 
> --- On Fri, 11/21/08, Casinova <[EMAIL PROTECTED]> wrote:
> 
>> From: Casinova <[EMAIL PROTECTED]>
>> Subject: Re: Loading and Calling Java Script in Struts
>> To: user@struts.apache.org
>> Date: Friday, November 21, 2008, 1:54 PM
>> Sorry to say you but not getting what to type in
>> src=""
>> Please can u brief me..
>> 
>> Thanks a lot
>> 
>> 
>> 
>> newton.dave wrote:
>> > 
>> > --- On Fri, 11/21/08, Casinova wrote:
>> >> u tried that but getting jquery null or not a
>> object error.
>> >> [...]
>> >> and right now i m giving absolute path  like
>> >> 
>> >> 

Re: Dojo 404 and

2008-11-21 Thread Gerhard Große
Rabin Aryal  netlert.com> writes:

> 
> Hello,
> 
> I get the 404 on all the struts/dojo js and css files not found. 
> 

Hi,

this looks like you are using 2.0.12 and ran into a bug that sneaked into this
release: See https://issues.apache.org/struts/browse/WW-2849 
This is fixed meanwhile, but a new release seems not quite ready yet.

If you don't want to wait, you can patch FilterDispatcher.java and change line
411 from

String name = resourcePath.substring("/struts".length()); 

to 

String name = resourcePath;

At least this worked for me.

Gerhard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Dave Newton
Use either JSTL's  tag, S1's equivalent, or S2's equivalent. I don't 
remember what version of Struts you're using.

Dave


--- On Fri, 11/21/08, Casinova <[EMAIL PROTECTED]> wrote:

> From: Casinova <[EMAIL PROTECTED]>
> Subject: Re: Loading and Calling Java Script in Struts
> To: user@struts.apache.org
> Date: Friday, November 21, 2008, 1:54 PM
> Sorry to say you but not getting what to type in
> src=""
> Please can u brief me..
> 
> Thanks a lot
> 
> 
> 
> newton.dave wrote:
> > 
> > --- On Fri, 11/21/08, Casinova wrote:
> >> u tried that but getting jquery null or not a
> object error.
> >> [...]
> >> and right now i m giving absolute path  like
> >> 
> >> 

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic

I solved with two lists..it is not so elegant solution, but there is
obviously no better solution.

--
Milan


Milan Milanovic wrote:
> 
> Dave,
> 
> actually my form isn't submitted twice :-(. I found now what was the
> problem. I set one multiple option select in jsp like this:
> 
>name="users.id" emptyOption="false" 
> value="%{users.{id}}"
>   headerKey="None" theme="simple" multiple="true" 
> />
> 
> The problem is because my users list contain e.g. three users: Mike, John,
> Paul. And when user select for example one of them in jsp page, I just got
> added that user(s) at the end of users list. How can I set that this list
> later contain just selected users ?
> 
> --
> Milan
> 
> 
> 
> newton.dave wrote:
>> 
>> Those aren't links. They're text. That's why I asked if everything came
>> through okay.
>> 
>> 
>> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> 
>>> From: Milan Milanovic <[EMAIL PROTECTED]>
>>> Subject: Re: Form submitted twice (no AJAX!)
>>> To: user@struts.apache.org
>>> Date: Friday, November 21, 2008, 10:19 AM
>>> There is no menu code, just those two links.
>>> 
>>> Milan
>>> 
>>> 
>>> newton.dave wrote:
>>> > 
>>> >>> > 
>>> /myApp/index.jsp Main
>>> >>>   | 
>>> >>> > /myApp/j_acegi_logout Logout 
>>> > 
>>> > Is your menu not implemented yet?
>>> > 
>>> > 
>>> > --- On Fri, 11/21/08, Milan Milanovic
>>> <[EMAIL PROTECTED]> wrote:
>>> > 
>>> >> From: Milan Milanovic
>>> <[EMAIL PROTECTED]>
>>> >> Subject: Re: Form submitted twice (no AJAX!)
>>> >> To: user@struts.apache.org
>>> >> Date: Friday, November 21, 2008, 9:39 AM
>>> >> Dear Dave,
>>> >> 
>>> >> I don't understand. That is exactly what I get
>>> when
>>> >> page is generated. I
>>> >> omited some plain html code.
>>> >> 
>>> >> 
>>> >> --
>>> >> Milan
>>> >> 
>>> >> 
>>> >> newton.dave wrote:
>>> >> > 
>>> >> > 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, 2008, 3:33
>>> PM
>>> >> >> 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:
>>> >> >> > 
>>> >> >> > >> >> >>
>>> xmlns="http://www.w3.org/1999/xhtml";
>>> >> >> xml:lang="en">
>>> >> >> > 
>>> >> >> > >> >> type="text/javascript">
>>> >> >> > // Dojo configuration
>>> >> >> > djConfig = {
>>> >> >> > baseRelativePath:
>>> >> >> "/myApp/struts/dojo",
>>> >> >> > isDebug: true,
>>> >> >> > bindEncoding:
>>> "UTF-8",
>>> >> >> > debugAtAllCosts: true // not
>>> needed,
>>> >> but
>>> >> >> allows the Venkman
>>> >> >> > debugger to work with the includes
>>> >> >> > };
>>> >> >> > 
>>> >> >> > >> type="text/javascript"
>>> >> >> >
>>> >> >>
>>> >>
>>> src="/myApp/struts/dojo/dojo.js">
>>> >> >> > >> type="text/javascript"
>>> >> >> >
>>> >> >>
>>> >>
>>> src="/myApp/struts/simple/dojoRequire.js">
>>> >> >> > 
>>> >> >> > 
>>> >> >> > 
>>> >> >> > 
>>> >> >> > 
>>> >> /myApp/index.jsp Main 
>>> >> >>   |  
>>> >> >> > /myApp/j_acegi_logout Logout
>>> 
>>> >> >> > 
>>> >> >> > 
>>> >> >> > Menu
>>> >> >> > >> class="project">
>>> >> >> >  /myApp/index.jsp Main page
>>> >> 
>>> >> >> >  
>>> >> >> >  
>>> >> >> >  # 
>>> >> >> >  
>>> >> >> > 
>>> >> >> > 
>>> >> >> > 
>>> >> >> > 
>>> >> >> > Choose report
>>> >> >> > 
>>> >> >> >  >> >> style="width:
>>> >> >> 600px; border-width:thin;
>>> >> >> > border-style:solid;
>>> >> border-color:threedlightshadow;
>>> >> >> text-align: left;">
>>> >> >> > 
>>> >> >> > 
>>> >> >> > >> >> name="showReport"
>>> >> >> > onsubmit="return true;"
>>> >> >>
>>> >>
>>> action="/myApp/reports/showReport.action"
>>> >> >> > method="post">
>>> >> >> >>> >> class="wwFormTable">
>>> >> >> > 
>>> >> >> > From date: >> >> >> type="text/javascript">
>>> >> >> >
>>> >> dojo.require("dojo.widget.DatePicker");
>>> >> >> > 
>>> >> >> > >> >> >> > 
>>> dojoType="dropdowndatepicker" 
>>> >>  
>>> >> >> id="fromDate"   
>>> >> >> >
>>> value="2008-11-11T00:00:00"   
>>> >> >> name="dojo.fromDate"   
>>> >> >> > inputName="fromDate"
>>> >> >> displayFormat="dd.MM." 
>>> >> >> >
>>> >>
>>> saveFormat="rfc">
>>> >> >> > Do datuma: >> >> >> type="text/javascript">
>>> >> >> >
>>> >> dojo.require("dojo.widget.DatePicker");
>>> >> >> > 
>>> >> >> > 
>>> >> >> > 
>>> >> >> > >> >> align="right">>> >> 

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic

O.K. Good. One more thing, it is maybe good to add SUBREPORT_DIR JR param as
a JR result param too, or to use directory location to say that subreport is
located in the same dir. 

--
Milan


newton.dave wrote:
> 
> A patch file would be better, but I can do it this way too.
> 
> 
> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> 
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>> Subject: Re: JasperReports Plugin datasource
>> To: user@struts.apache.org
>> Date: Friday, November 21, 2008, 11:49 AM
>> Dave,
>> 
>> I put the fix: 
>> https://issues.apache.org/struts/browse/WW-2884
>> https://issues.apache.org/struts/browse/WW-2884 . 
>> Please check it if I did it correctly.
>> 
>> --
>> Milan
>> 
>> 
>> newton.dave wrote:
>> > 
>> > --- On Fri, 11/21/08, Milan Milanovic wrote:
>> >> O.K. Where can I do this ?
>> > 
>> > On the S2 JIRA at:
>> https://issues.apache.org/struts/secure/Dashboard.jspa
>> > 
>> > (I think)
>> > 
>> > Dave
>> > 
>> > 
>> >
>> -
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20625106.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20628219.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova

Sorry to say you but not getting what to type in src=""
Please can u brief me..

Thanks a lot



newton.dave wrote:
> 
> --- On Fri, 11/21/08, Casinova wrote:
>> u tried that but getting jquery null or not a object error.
>> [...]
>> and right now i m giving absolute path  like
>> 
>> 

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Casinova wrote:
> u tried that but getting jquery null or not a object error.
> [...]
> and right now i m giving absolute path  like
> 
> 

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova

Thanks for your suggestion..
u tried that but getting jquery null or not a object error.

i have project in IDE like

ProjectName
-webpages
js
jquery.js
JSloader_1.js

and right now i m giving absolute path  like


Re: OGNL question about changed values

2008-11-21 Thread Dale Newfield

Torsten Krah wrote:

Hi, I want to know which "rows" in my table (s:iterator) are "dirty".
Is there any way to know (beside looking manually in the parameter map and 
loading again db state + looking at old/new values before saving) which rows 
have changed?


You can include previous values in hidden fields in the form so that 
they're submitted to the server and it's easy to compare, but then 
you're trusting that those values haven't been manipulated by a 
malicious client...



-Dale Newfield
 [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2's filter architecture vs. J2EE UserTransactions - problem with J2EE spec?

2008-11-21 Thread Gerhard Große
Hi,

we are currently evaluating to migrate a Struts1 J2EE-Application to Struts2 
and discovered something which might be a major problem or might not, which is 
what I am trying to find out:

In section J2EE.4.2.1 the J2EE specifications (1.3, 1.4 and 5.0 at least) 
states:
 
"Servlet filters and web application event listeners must not demarcate
transactions using the javax.transaction.UserTransaction interface. Servlet
filters may use transactional resources in a local transaction mode within 
their doFilter methods but should not use any transactional resources in the 
methods of any objects used to wrap the request or response objects."

Now Struts2 does call its actions from within the FilterDispatcher servlet
filter and in our application the action methods would call into our business
logic components which do demarcate transactions using the UserTransaction
interface. Therefore we wonder if this might cause problems.

We are using WebSphere (v6.1) as application server. First experiments showed
that the UserTransaction (via the JNDI lookup java:comp/UserTransaction) is
available and can be used within the Struts2 action. However a started
transaction is not rolled back if the application code fails to do a commit or
rollback (in case of an Error thrown, for example). In this case further
requests executed on the same the thread generate an exception when an attempt
is made to start a new transaction. This is different from the behavior in
Struts1 actions, which are called from a servlet: Here the transaction is
cleaned up by the container, no matter what the application code does or does 
not.

So it seems that using UserTransactions with Struts2 more or less works with
WebSphere but it might be more like an undocumentated "feature" of WebSphere
that might be dropped in the future.

Is this something that has been taken into consideration when designing Struts2
to call actions from within a servlet filter? Are there any workarounds / best
practices / advices how to deal with this potential problem?

We have started to love to work with Struts2 and would hate it if we had to 
stop our migration project because of this detail.

Any feedback on this issue would be highly welcome.

Gerhard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL question about changed values

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Torsten Krah wrote:
> Hi, I want to know which "rows" in my table (s:iterator) are "dirty".
> Is there any way to know (beside looking manually in the parameter map 
> and loading again db state + looking at old/new values before
> saving) which rows have changed?

I don't see how you could do that w/o some sort of comparison on either the 
client or server side.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OGNL question about changed values

2008-11-21 Thread Torsten Krah
Hi, I want to know which "rows" in my table (s:iterator) are "dirty".
Is there any way to know (beside looking manually in the parameter map and 
loading again db state + looking at old/new values before saving) which rows 
have changed?


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
A patch file would be better, but I can do it this way too.


--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:

> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: JasperReports Plugin datasource
> To: user@struts.apache.org
> Date: Friday, November 21, 2008, 11:49 AM
> Dave,
> 
> I put the fix: 
> https://issues.apache.org/struts/browse/WW-2884
> https://issues.apache.org/struts/browse/WW-2884 . 
> Please check it if I did it correctly.
> 
> --
> Milan
> 
> 
> newton.dave wrote:
> > 
> > --- On Fri, 11/21/08, Milan Milanovic wrote:
> >> O.K. Where can I do this ?
> > 
> > On the S2 JIRA at:
> https://issues.apache.org/struts/secure/Dashboard.jspa
> > 
> > (I think)
> > 
> > Dave
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context:
> http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20625106.html
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic

Dave,

I put the fix:  https://issues.apache.org/struts/browse/WW-2884
https://issues.apache.org/struts/browse/WW-2884 . 
Please check it if I did it correctly.

--
Milan


newton.dave wrote:
> 
> --- On Fri, 11/21/08, Milan Milanovic wrote:
>> O.K. Where can I do this ?
> 
> On the S2 JIRA at: https://issues.apache.org/struts/secure/Dashboard.jspa
> 
> (I think)
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20625106.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Milan Milanovic wrote:
> O.K. Where can I do this ?

On the S2 JIRA at: https://issues.apache.org/struts/secure/Dashboard.jspa

(I think)

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic

Dave,


newton.dave wrote:
> 
>> I added connection param to the JR result and now it works perfectly 
>> :-)! If connection is found, dataSource is not used. 
> 
> Glad to hear it. If you want, you could create a patch and a JIRA and I'll
> apply it to the JR result and finish some of my earlier work on it.
> 

O.K. Where can I do this ?

-- 
View this message in context: 
http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20624536.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic

Dave,

actually my form isn't submitted twice :-(. I found now what was the
problem. I set one multiple option select in jsp like this:



The problem is because my users list contain e.g. three users: Mike, John,
Paul. And when user select for example one of them in jsp page, I just got
added that user(s) at the end of users list. How can I set that this list
later contain just selected users ?

--
Milan



newton.dave wrote:
> 
> Those aren't links. They're text. That's why I asked if everything came
> through okay.
> 
> 
> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> 
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>> Subject: Re: Form submitted twice (no AJAX!)
>> To: user@struts.apache.org
>> Date: Friday, November 21, 2008, 10:19 AM
>> There is no menu code, just those two links.
>> 
>> Milan
>> 
>> 
>> newton.dave wrote:
>> > 
>> >>> > 
>> /myApp/index.jsp Main
>> >>>   | 
>> >>> > /myApp/j_acegi_logout Logout 
>> > 
>> > Is your menu not implemented yet?
>> > 
>> > 
>> > --- On Fri, 11/21/08, Milan Milanovic
>> <[EMAIL PROTECTED]> wrote:
>> > 
>> >> From: Milan Milanovic
>> <[EMAIL PROTECTED]>
>> >> Subject: Re: Form submitted twice (no AJAX!)
>> >> To: user@struts.apache.org
>> >> Date: Friday, November 21, 2008, 9:39 AM
>> >> Dear Dave,
>> >> 
>> >> I don't understand. That is exactly what I get
>> when
>> >> page is generated. I
>> >> omited some plain html code.
>> >> 
>> >> 
>> >> --
>> >> Milan
>> >> 
>> >> 
>> >> newton.dave wrote:
>> >> > 
>> >> > 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, 2008, 3:33
>> PM
>> >> >> 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:
>> >> >> > 
>> >> >> > > >> >>
>> xmlns="http://www.w3.org/1999/xhtml";
>> >> >> xml:lang="en">
>> >> >> > 
>> >> >> > > >> type="text/javascript">
>> >> >> > // Dojo configuration
>> >> >> > djConfig = {
>> >> >> > baseRelativePath:
>> >> >> "/myApp/struts/dojo",
>> >> >> > isDebug: true,
>> >> >> > bindEncoding:
>> "UTF-8",
>> >> >> > debugAtAllCosts: true // not
>> needed,
>> >> but
>> >> >> allows the Venkman
>> >> >> > debugger to work with the includes
>> >> >> > };
>> >> >> > 
>> >> >> > > type="text/javascript"
>> >> >> >
>> >> >>
>> >>
>> src="/myApp/struts/dojo/dojo.js">
>> >> >> > > type="text/javascript"
>> >> >> >
>> >> >>
>> >>
>> src="/myApp/struts/simple/dojoRequire.js">
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> /myApp/index.jsp Main 
>> >> >>   |  
>> >> >> > /myApp/j_acegi_logout Logout
>> 
>> >> >> > 
>> >> >> > 
>> >> >> > Menu
>> >> >> > > class="project">
>> >> >> >  /myApp/index.jsp Main page
>> >> 
>> >> >> >  
>> >> >> >  
>> >> >> >  # 
>> >> >> >  
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > Choose report
>> >> >> > 
>> >> >> >  > >> style="width:
>> >> >> 600px; border-width:thin;
>> >> >> > border-style:solid;
>> >> border-color:threedlightshadow;
>> >> >> text-align: left;">
>> >> >> > 
>> >> >> >  
>> >> >> > > >> name="showReport"
>> >> >> > onsubmit="return true;"
>> >> >>
>> >>
>> action="/myApp/reports/showReport.action"
>> >> >> > method="post">
>> >> >> >> >> class="wwFormTable">
>> >> >> >  
>> >> >> >  From date: > >> >> type="text/javascript">
>> >> >> >
>> >> dojo.require("dojo.widget.DatePicker");
>> >> >> > 
>> >> >> > > >> >> > 
>> dojoType="dropdowndatepicker" 
>> >>  
>> >> >> id="fromDate"   
>> >> >> >
>> value="2008-11-11T00:00:00"   
>> >> >> name="dojo.fromDate"   
>> >> >> > inputName="fromDate"
>> >> >> displayFormat="dd.MM." 
>> >> >> >
>> >>
>> saveFormat="rfc">
>> >> >> >  Do datuma: > >> >> type="text/javascript">
>> >> >> >
>> >> dojo.require("dojo.widget.DatePicker");
>> >> >> > 
>> >> >> > 
>> >> >> >  
>> >> >> >  > >> align="right">> >> >> for="users"
>> >> >>
>> >>
>> class="label">User:
>> >> >> >  > >> name="user.id"
>> >> >> id="user">
>> >> >> > > >> >>
>> value="1">Mike
>> >> >> > > >> >>
>> value="2">John
>> >> >> > > >> >>
>> value="3">Peter
>> >> >> > 
>> >> >> >  
>> >> >> >  
>> >> >> >  > colspan="2">> >> >> type="submit"
>> >> id="showReport_0"
>> >> >> value="Show
>> >> >> > report"
>> class="submit"
>> >> >> style="submit"/>
>> >> >> > 
>> >> >> >  
>> >

Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Dave Newton
The point is that I didn't (and still don't) believe the text is being rendered 
appropriately, which is why I said try using pastebin or a similar service.

--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> Yes, you are right. They are not copied well. This is exact code:
> 
>  /myApp/index.jsp Main 
>   |   /myApp/j_acegi_logout
> Logout 

This is what I see. There are still no links. That's why I'm asking you to use 
a different mechanism to show us the source code.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dojo 404 and

2008-11-21 Thread Rabin Aryal
Hello,

 

I get the 404 on all the struts/dojo js and css files not found. 

 

I have following filter mapping in web.xml

 

 
struts2 
/* 


 

When I changed it to 

 

 
struts2 
/struts/* 


 

It took down my application and I get the infinite looping error.

 

The question I have is do I need both the mapping to handle the problem.

 
struts2 
/* 


 
struts2filter 
/struts/* 


 

Thanks in advance

Rabin 

 

 

 

 



Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic

Yes, you are right. They are not copied well. This is exact code:

 /myApp/index.jsp Main    |   /myApp/j_acegi_logout
Logout 

But this has no implication on form submiting ? It is not part of the form.
I don't have AJAX code on the page except datetimepickers.

--
Milan


newton.dave wrote:
> 
> Those aren't links. They're text. That's why I asked if everything came
> through okay.
> 
> 
> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> 
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>> Subject: Re: Form submitted twice (no AJAX!)
>> To: user@struts.apache.org
>> Date: Friday, November 21, 2008, 10:19 AM
>> There is no menu code, just those two links.
>> 
>> Milan
>> 
>> 
>> newton.dave wrote:
>> > 
>> >>> > 
>> /myApp/index.jsp Main
>> >>>   | 
>> >>> > /myApp/j_acegi_logout Logout 
>> > 
>> > Is your menu not implemented yet?
>> > 
>> > 
>> > --- On Fri, 11/21/08, Milan Milanovic
>> <[EMAIL PROTECTED]> wrote:
>> > 
>> >> From: Milan Milanovic
>> <[EMAIL PROTECTED]>
>> >> Subject: Re: Form submitted twice (no AJAX!)
>> >> To: user@struts.apache.org
>> >> Date: Friday, November 21, 2008, 9:39 AM
>> >> Dear Dave,
>> >> 
>> >> I don't understand. That is exactly what I get
>> when
>> >> page is generated. I
>> >> omited some plain html code.
>> >> 
>> >> 
>> >> --
>> >> Milan
>> >> 
>> >> 
>> >> newton.dave wrote:
>> >> > 
>> >> > 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, 2008, 3:33
>> PM
>> >> >> 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:
>> >> >> > 
>> >> >> > > >> >>
>> xmlns="http://www.w3.org/1999/xhtml";
>> >> >> xml:lang="en">
>> >> >> > 
>> >> >> > > >> type="text/javascript">
>> >> >> > // Dojo configuration
>> >> >> > djConfig = {
>> >> >> > baseRelativePath:
>> >> >> "/myApp/struts/dojo",
>> >> >> > isDebug: true,
>> >> >> > bindEncoding:
>> "UTF-8",
>> >> >> > debugAtAllCosts: true // not
>> needed,
>> >> but
>> >> >> allows the Venkman
>> >> >> > debugger to work with the includes
>> >> >> > };
>> >> >> > 
>> >> >> > > type="text/javascript"
>> >> >> >
>> >> >>
>> >>
>> src="/myApp/struts/dojo/dojo.js">
>> >> >> > > type="text/javascript"
>> >> >> >
>> >> >>
>> >>
>> src="/myApp/struts/simple/dojoRequire.js">
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> /myApp/index.jsp Main 
>> >> >>   |  
>> >> >> > /myApp/j_acegi_logout Logout
>> 
>> >> >> > 
>> >> >> > 
>> >> >> > Menu
>> >> >> > > class="project">
>> >> >> >  /myApp/index.jsp Main page
>> >> 
>> >> >> >  
>> >> >> >  
>> >> >> >  # 
>> >> >> >  
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > Choose report
>> >> >> > 
>> >> >> >  > >> style="width:
>> >> >> 600px; border-width:thin;
>> >> >> > border-style:solid;
>> >> border-color:threedlightshadow;
>> >> >> text-align: left;">
>> >> >> > 
>> >> >> >  
>> >> >> > > >> name="showReport"
>> >> >> > onsubmit="return true;"
>> >> >>
>> >>
>> action="/myApp/reports/showReport.action"
>> >> >> > method="post">
>> >> >> >> >> class="wwFormTable">
>> >> >> >  
>> >> >> >  From date: > >> >> type="text/javascript">
>> >> >> >
>> >> dojo.require("dojo.widget.DatePicker");
>> >> >> > 
>> >> >> > > >> >> > 
>> dojoType="dropdowndatepicker" 
>> >>  
>> >> >> id="fromDate"   
>> >> >> >
>> value="2008-11-11T00:00:00"   
>> >> >> name="dojo.fromDate"   
>> >> >> > inputName="fromDate"
>> >> >> displayFormat="dd.MM." 
>> >> >> >
>> >>
>> saveFormat="rfc">
>> >> >> >  Do datuma: > >> >> type="text/javascript">
>> >> >> >
>> >> dojo.require("dojo.widget.DatePicker");
>> >> >> > 
>> >> >> > 
>> >> >> >  
>> >> >> >  > >> align="right">> >> >> for="users"
>> >> >>
>> >>
>> class="label">User:
>> >> >> >  > >> name="user.id"
>> >> >> id="user">
>> >> >> > > >> >>
>> value="1">Mike
>> >> >> > > >> >>
>> value="2">John
>> >> >> > > >> >>
>> value="3">Peter
>> >> >> > 
>> >> >> >  
>> >> >> >  
>> >> >> >  > colspan="2">> >> >> type="submit"
>> >> id="showReport_0"
>> >> >> value="Show
>> >> >> > report"
>> class="submit"
>> >> >> style="submit"/>
>> >> >> > 
>> >> >> >  
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > 
>> >> >> > Jeromy Evans - Blue Sk

Re: Loading and Calling Java Script in Struts

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Casinova wrote:
> 

Loading and Calling Java Script in Struts

2008-11-21 Thread Casinova

HI all. i found strange issue with my struts application. 

I have a jsp page like below test.jsp






and something like this

script type="text/javascript">
var jquery = new Jquery();
jquery.load('calendar');



jquery.newCalendar('test1');
jquery.newCalendar('test2', 'yy/dd/mm');
jquery.ready();


and i m using this as


when i run this jsp page alone then Java Script working fine..but when i
call this JSP page in struts via some other page using action...then java
script is not working..

Please help me OUT.

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Loading-and-Calling-Java-Script-in-Struts-tp20623678p20623678.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Milan Milanovic wrote:
> I found what is the problem. Query that JR report run returned no rows,
> so it show it like empty.

[OT] There's a JR parameter for that, btw, so if it's a report with no data 
elements it'll still print out something.

> I added connection param to the JR result and now it works perfectly 
> :-)! If connection is found, dataSource is not used. 

Glad to hear it. If you want, you could create a patch and a JIRA and I'll 
apply it to the JR result and finish some of my earlier work on it.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Dave Newton
Those aren't links. They're text. That's why I asked if everything came through 
okay.


--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:

> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: Form submitted twice (no AJAX!)
> To: user@struts.apache.org
> Date: Friday, November 21, 2008, 10:19 AM
> There is no menu code, just those two links.
> 
> Milan
> 
> 
> newton.dave wrote:
> > 
> >>> > 
> /myApp/index.jsp Main
> >>>   | 
> >>> > /myApp/j_acegi_logout Logout 
> > 
> > Is your menu not implemented yet?
> > 
> > 
> > --- On Fri, 11/21/08, Milan Milanovic
> <[EMAIL PROTECTED]> wrote:
> > 
> >> From: Milan Milanovic
> <[EMAIL PROTECTED]>
> >> Subject: Re: Form submitted twice (no AJAX!)
> >> To: user@struts.apache.org
> >> Date: Friday, November 21, 2008, 9:39 AM
> >> Dear Dave,
> >> 
> >> I don't understand. That is exactly what I get
> when
> >> page is generated. I
> >> omited some plain html code.
> >> 
> >> 
> >> --
> >> Milan
> >> 
> >> 
> >> newton.dave wrote:
> >> > 
> >> > 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, 2008, 3:33
> PM
> >> >> 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:
> >> >> > 
> >> >> >  >> >>
> xmlns="http://www.w3.org/1999/xhtml";
> >> >> xml:lang="en">
> >> >> > 
> >> >> >  >> type="text/javascript">
> >> >> > // Dojo configuration
> >> >> > djConfig = {
> >> >> > baseRelativePath:
> >> >> "/myApp/struts/dojo",
> >> >> > isDebug: true,
> >> >> > bindEncoding:
> "UTF-8",
> >> >> > debugAtAllCosts: true // not
> needed,
> >> but
> >> >> allows the Venkman
> >> >> > debugger to work with the includes
> >> >> > };
> >> >> > 
> >> >> >  type="text/javascript"
> >> >> >
> >> >>
> >>
> src="/myApp/struts/dojo/dojo.js">
> >> >> >  type="text/javascript"
> >> >> >
> >> >>
> >>
> src="/myApp/struts/simple/dojoRequire.js">
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> /myApp/index.jsp Main 
> >> >>   |  
> >> >> > /myApp/j_acegi_logout Logout
> 
> >> >> > 
> >> >> > 
> >> >> > Menu
> >> >> >  class="project">
> >> >> >  /myApp/index.jsp Main page
> >> 
> >> >> >  
> >> >> >  
> >> >> >  # 
> >> >> >  
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > Choose report
> >> >> > 
> >> >> >   >> style="width:
> >> >> 600px; border-width:thin;
> >> >> > border-style:solid;
> >> border-color:threedlightshadow;
> >> >> text-align: left;">
> >> >> > 
> >> >> >   
> >> >> >  >> name="showReport"
> >> >> > onsubmit="return true;"
> >> >>
> >>
> action="/myApp/reports/showReport.action"
> >> >> > method="post">
> >> >> > >> class="wwFormTable">
> >> >> >   
> >> >> >   From date:  >> >> type="text/javascript">
> >> >> >
> >> dojo.require("dojo.widget.DatePicker");
> >> >> > 
> >> >> >  >> >> > 
> dojoType="dropdowndatepicker" 
> >>  
> >> >> id="fromDate"   
> >> >> >
> value="2008-11-11T00:00:00"   
> >> >> name="dojo.fromDate"   
> >> >> > inputName="fromDate"
> >> >> displayFormat="dd.MM." 
> >> >> >
> >>
> saveFormat="rfc">
> >> >> >   Do datuma:  >> >> type="text/javascript">
> >> >> >
> >> dojo.require("dojo.widget.DatePicker");
> >> >> > 
> >> >> > 
> >> >> >   
> >> >> >>> align="right"> >> >> for="users"
> >> >>
> >>
> class="label">User:
> >> >> >>> name="user.id"
> >> >> id="user">
> >> >> >  >> >>
> value="1">Mike
> >> >> >  >> >>
> value="2">John
> >> >> >  >> >>
> value="3">Peter
> >> >> > 
> >> >> >   
> >> >> >   
> >> >> >colspan="2"> >> >> type="submit"
> >> id="showReport_0"
> >> >> value="Show
> >> >> > report"
> class="submit"
> >> >> style="submit"/>
> >> >> > 
> >> >> >   
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > Jeromy Evans - Blue Sky Minds wrote:
> >> >> >> 
> >> >> >> Milan Milanovic wrote:
> >> >> >>> Hi,
> >> >> >>>
> >> >> >>> I have a simple jsp form:
> >> >> >>>
> >> >> >>> 
> >> >> >>>  theme="ajax"
> >> >> debug="true" />
> >> >> >>> 
> >> >> >>>  >> action="showReport"
> >> >> namespace="/reports"
> >> validate="true">
> >> >> >>>   
> >> >> >> 
> >> >> >> 
> >> >> >>> And when user click submit
> button,
> >> this form
> >> >> get submitted twice, i.e.
> >> >> >>> showReport form action
> method is
> >> called

RE: Form submitted twice (no AJAX!)

2008-11-21 Thread Martin Gainty

Good Afternoon Milan

forgive the mid-thread interruption but 
Dave is talking about the theme setting for struts head tag set to simple or 
ajax as in


so if you specified attribute theme=simple you will reference  
$classpath/template/simple/head.ftl
or if you specified attribute theme=ajax you will reference  
$classpath/template/ajax/head.ftl

The referenced head.ftl contains the dojo code you will be using so in the case 
of simple/head.ftl

// Dojo configuration
djConfig = {
baseRelativePath: "<@s.url includeParams='none' value='/struts/dojo' 
includeParams="none" encode='false'/>",
isDebug: ${parameters.debug?default(false)},
bindEncoding: "${parameters.encoding}",
debugAtAllCosts: ${parameters.debug?default(false)}, // not needed, but 
allows the Venkman debugger to work with the includes
};

">
">
whereas the ajax head.ftl would look something like

// Dojo configuration
djConfig = {
isDebug: ${parameters.debug?default(false)?string},
bindEncoding: "${parameters.encoding}"
<#if parameters.baseRelativePath?if_exists != "">
  ,baseRelativePath: "<@s.url value='${parameters.baseRelativePath}' 
includeParams='none' encode='false' />"
  ,baseScriptUri: "<@s.url value='${parameters.baseRelativePath}' 
includeParams='none' encode='false' />"
<#else>
  ,baseRelativePath: "${base}/struts/dojo/"
  ,baseScriptUri: "${base}/struts/dojo/"
  
<#if parameters.locale?if_exists != "">
  ,locale: "${parameters.locale}"

<#if parameters.extraLocales?exists>
  ,extraLocale: [
<#list parameters.extraLocales as locale>
"${locale}"<#if locale_has_next>,

  ]

 ,parseWidgets : ${parameters.parseContent?string}

};


<#if parameters.compressed?default(true)>
  <#assign dojoFile="dojo.js">
<#else>
  <#assign dojoFile="dojo.js.uncompressed.js">


<#if parameters.cache?default(true)>
  <#assign profile="struts_">
<#else>
  <#assign profile="">
   

<#if parameters.baseRelativePath?if_exists != "">
  
<#else>
  
  


<#if parameters.debug?default(false)>

dojo.hostenv.writeIncludes(true);
 







Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Date: Fri, 21 Nov 2008 06:39:07 -0800
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: Form submitted twice (no AJAX!)
> 
> 
> Dear Dave,
> 
> I don't understand. That is exactly what I get when page is generated. I
> omited some plain html code.
> 
> 
> --
> Milan
> 
> 
> newton.dave wrote:
> > 
> > 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, 2008, 3:33 PM
> >> 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:
> >> > 
> >> >  >> xmlns="http://www.w3.org/1999/xhtml";
> >> xml:lang="en">
> >> > 
> >> > 
> >> > // Dojo configuration
> >> > djConfig = {
> >> > baseRelativePath:
> >> "/myApp/struts/dojo",
> >> > isDebug: true,
> >> > bindEncoding: "UTF-8",
> >> > debugAtAllCosts: true // not needed, but
> >> allows the Venkman
> >> > debugger to work with the includes
> >> > };
> >> > 
> >> >  >> >
> >> src="/myApp/struts/dojo/dojo.js">
> >> >  >> >
> >> src="/myApp/struts/simple/dojoRequire.js">
> >> > 
> >> > 
> >> > 
> >> > 
> >> >  /myApp/index.jsp Main 
> >>   |  
> >> > /myApp/j_acegi_logout Logout 
> >> > 
> >> > 
> >> > Menu
> >> > 
> >> >  /myApp/index.jsp Main page 
> >> >  
> >> >  
> >> >  # 
> >> >  
> >> > 
> >> > 
> >> > 
> >> > 
> >> > Choose report
> >> > 
> >> >  
> >> > 
> >> >  
> >> >  >> > onsubmit="return true;"
> >> action="/myApp/reports/showReport.action"
> >> > method="post">
> >> >
> >> >  
> >> >  From date:  >> type="text/javascript">
> >> > dojo.require("dojo.widget.DatePicker");
> >> > 
> >> >  >> >  dojoType="dropdowndatepicker"   
> >> id="fromDate"   
> >> > value="2008-11-11T00:00:00"   
> >> name="dojo.fromDate"   
> >> > inputName="fromDate"
> >> displayFormat="dd.MM." 
> >> > saveFormat="rfc">
> >> >

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic

Hi Dave,

I found what is the problem. Query that JR report run returned no rows, so
it show it like empty. I added connection param to the JR result and now it
works perfectly :-)! If connection is found, dataSource is not used. 

Great job, thanks!

--
Milan


newton.dave wrote:
> 
> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> I managed to call fillReport with open Connection object,
>> but I just get an empty report page?! If I try to pass Connection object
>> as dataSource in JR result, then I get that exception that Connection is 
>> null and I see report contents but with null values ?
> 
> Second comment first: Passing a connection object as the dataSource won't
> work--it's expecting a data source, not a connection.
> 
> Since I don't know what your code is doing with fillReport I have zero
> chance of providing any useful feedback.
> 
> Again: if you're not using the JR result plugin as intended it might make
> more sense to just use JR normally and stream the PDF contents back. If
> you add a connection parameter to the result and are using it correctly in
> a fillReport call then you'd have to look more on the JR side of things.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20623288.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic

There is no menu code, just those two links.

Milan


newton.dave wrote:
> 
>>> >  /myApp/index.jsp Main
>>>   | 
>>> > /myApp/j_acegi_logout Logout 
> 
> Is your menu not implemented yet?
> 
> 
> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> 
>> From: Milan Milanovic <[EMAIL PROTECTED]>
>> Subject: Re: Form submitted twice (no AJAX!)
>> To: user@struts.apache.org
>> Date: Friday, November 21, 2008, 9:39 AM
>> Dear Dave,
>> 
>> I don't understand. That is exactly what I get when
>> page is generated. I
>> omited some plain html code.
>> 
>> 
>> --
>> Milan
>> 
>> 
>> newton.dave wrote:
>> > 
>> > 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, 2008, 3:33 PM
>> >> 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:
>> >> > 
>> >> > > >> xmlns="http://www.w3.org/1999/xhtml";
>> >> xml:lang="en">
>> >> > 
>> >> > > type="text/javascript">
>> >> > // Dojo configuration
>> >> > djConfig = {
>> >> > baseRelativePath:
>> >> "/myApp/struts/dojo",
>> >> > isDebug: true,
>> >> > bindEncoding: "UTF-8",
>> >> > debugAtAllCosts: true // not needed,
>> but
>> >> allows the Venkman
>> >> > debugger to work with the includes
>> >> > };
>> >> > 
>> >> > > >> >
>> >>
>> src="/myApp/struts/dojo/dojo.js">
>> >> > > >> >
>> >>
>> src="/myApp/struts/simple/dojoRequire.js">
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> /myApp/index.jsp Main 
>> >>   |  
>> >> > /myApp/j_acegi_logout Logout 
>> >> > 
>> >> > 
>> >> > Menu
>> >> > 
>> >> >  /myApp/index.jsp Main page
>> 
>> >> >  
>> >> >  
>> >> >  # 
>> >> >  
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > Choose report
>> >> > 
>> >> >  > style="width:
>> >> 600px; border-width:thin;
>> >> > border-style:solid;
>> border-color:threedlightshadow;
>> >> text-align: left;">
>> >> > 
>> >> > 
>> >> > > name="showReport"
>> >> > onsubmit="return true;"
>> >>
>> action="/myApp/reports/showReport.action"
>> >> > method="post">
>> >> >> class="wwFormTable">
>> >> > 
>> >> > From date: > >> type="text/javascript">
>> >> >
>> dojo.require("dojo.widget.DatePicker");
>> >> > 
>> >> > > >> >  dojoType="dropdowndatepicker" 
>>  
>> >> id="fromDate"   
>> >> > value="2008-11-11T00:00:00"   
>> >> name="dojo.fromDate"   
>> >> > inputName="fromDate"
>> >> displayFormat="dd.MM." 
>> >> >
>> saveFormat="rfc">
>> >> > Do datuma: > >> type="text/javascript">
>> >> >
>> dojo.require("dojo.widget.DatePicker");
>> >> > 
>> >> > 
>> >> > 
>> >> > > align="right">> >> for="users"
>> >>
>> class="label">User:
>> >> > > name="user.id"
>> >> id="user">
>> >> > > >> value="1">Mike
>> >> > > >> value="2">John
>> >> > > >> value="3">Peter
>> >> > 
>> >> > 
>> >> > 
>> >> > > >> type="submit"
>> id="showReport_0"
>> >> value="Show
>> >> > report" class="submit"
>> >> style="submit"/>
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > Jeromy Evans - Blue Sky Minds wrote:
>> >> >> 
>> >> >> Milan Milanovic wrote:
>> >> >>> Hi,
>> >> >>>
>> >> >>> I have a simple jsp form:
>> >> >>>
>> >> >>> 
>> >> >>>   > >> debug="true" />
>> >> >>> 
>> >> >>> > action="showReport"
>> >> namespace="/reports"
>> validate="true">
>> >> >>>   
>> >> >> 
>> >> >> 
>> >> >>>   And when user click submit button,
>> this form
>> >> get submitted twice, i.e.
>> >> >>> showReport form action method is
>> called twice!
>> >> I'm NOT USING AJAX here,
>> >> >>> I
>> >> >>> DON'T HAVE ANY Javascript
>> functions in
>> >> this page.
>> >> >>>
>> >> >>>   
>> >> >> 
>> >> >> You DO have javascript in your page and
>> you ARE
>> >> using ajax.
>> >> >> 
>> >> >> 
>> instructs
>> >> struts to include the dojo javascripts, 
>> >> >> and sets the default theme to ajax.
>> >> >> > ...valudate="true">
>> >> instructs struts to include client-side 
>> >> >> javascript validation (or possibly ajax
>> >> validation; I can't recall if 
>> >> >> that requires the theme on the form
>> itself or
>> >> not).
>> >> >> 
>> >> >> Viewing the source of your page would
>> tell you
>> >> this.  Firefox with 
>> >> >> Firebug will tell you what's
>> happening.
>> >> >> 
>> >> >> Clean it up and see how you go.
>> >> >> 
>> >> >> 
>> >> >>
>> >>
>> --

RE: Struts 2: What do i need to do to be able to upload files

2008-11-21 Thread Peterson, Ryan
Check here:
http://struts.apache.org/2.0.6/docs/how-do-we-upload-files.html

Specifically the struts.multipart.maxSize property.

-Original Message-
From: ryan webb [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2008 4:53 PM
To: Struts Users Mailing List
Subject: Re: Struts 2: What do i need to do to be able to upload files

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 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 very helpful.
>
> God bless.
>
>
> On Thu, Nov 20, 2008 at 7:10 PM, Jeromy Evans <
> [EMAIL PROTECTED]> wrote:
>
>> 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)" message
>> implies there's still a configuration problem though.  Is there a
"caused
>> by" in the stack trace?
>>
>> You must be very close.  Can you change the name of your file field
to
>> something else, say "upload".
>> Your action should then have the setters:
>>  void setUpload(File file);
>>  void setUploadFileName(String fileName);
>>  void setUploadContentType(String contentType);
>>
>> That's slightly different than your quoted configuration (as calling
the
>> File "file" implies there should be a setFileFileName method).  That
>> shouldn't cause a 500 error though.
>>
>>
>>  On Thu, Nov 20, 2008 at 2:56 PM, Jeromy Evans <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
 ryan webb wrote:



> Hello, first I would like to thank you for reading my email.
>
> I am trying out some examples for uploading a file.  And I always
get
> HTTP
> 500 error from tomcat.
> I can't see why, I followed and copied the example.  For sure I
missed
> something but I don't know what?
> I tried debugging but I failed because IDE don't enter the
execute()
> method.
>
>
>
>
 Ensure you have included the "add on" dependencies described here:

 http://struts.apache.org/2.x/docs/file-upload.html

 There are good examples and explanations for Struts 2.0.x and 2.1.x
on
 that
 page.




-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




>>>
>>>
>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> warmest regards,
> Ryan Webb - Philippines
>
> email: [EMAIL PROTECTED]
>
>
>


-- 
warmest regards,
Ryan Webb - Philippines

email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JasperReports Plugin datasource

2008-11-21 Thread Dave Newton
--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> I managed to call fillReport with open Connection object,
> but I just get an empty report page?! If I try to pass Connection object
> as dataSource in JR result, then I get that exception that Connection is 
> null and I see report contents but with null values ?

Second comment first: Passing a connection object as the dataSource won't 
work--it's expecting a data source, not a connection.

Since I don't know what your code is doing with fillReport I have zero chance 
of providing any useful feedback.

Again: if you're not using the JR result plugin as intended it might make more 
sense to just use JR normally and stream the PDF contents back. If you add a 
connection parameter to the result and are using it correctly in a fillReport 
call then you'd have to look more on the JR side of things.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Dave Newton
>> >  /myApp/index.jsp Main
>>   | 
>> > /myApp/j_acegi_logout Logout 

Is your menu not implemented yet?


--- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:

> From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: Form submitted twice (no AJAX!)
> To: user@struts.apache.org
> Date: Friday, November 21, 2008, 9:39 AM
> Dear Dave,
> 
> I don't understand. That is exactly what I get when
> page is generated. I
> omited some plain html code.
> 
> 
> --
> Milan
> 
> 
> newton.dave wrote:
> > 
> > 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, 2008, 3:33 PM
> >> 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:
> >> > 
> >> >  >> xmlns="http://www.w3.org/1999/xhtml";
> >> xml:lang="en">
> >> > 
> >> >  type="text/javascript">
> >> > // Dojo configuration
> >> > djConfig = {
> >> > baseRelativePath:
> >> "/myApp/struts/dojo",
> >> > isDebug: true,
> >> > bindEncoding: "UTF-8",
> >> > debugAtAllCosts: true // not needed,
> but
> >> allows the Venkman
> >> > debugger to work with the includes
> >> > };
> >> > 
> >> >  >> >
> >>
> src="/myApp/struts/dojo/dojo.js">
> >> >  >> >
> >>
> src="/myApp/struts/simple/dojoRequire.js">
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> /myApp/index.jsp Main 
> >>   |  
> >> > /myApp/j_acegi_logout Logout 
> >> > 
> >> > 
> >> > Menu
> >> > 
> >> >  /myApp/index.jsp Main page
> 
> >> >  
> >> >  
> >> >  # 
> >> >  
> >> > 
> >> > 
> >> > 
> >> > 
> >> > Choose report
> >> > 
> >> >   style="width:
> >> 600px; border-width:thin;
> >> > border-style:solid;
> border-color:threedlightshadow;
> >> text-align: left;">
> >> > 
> >> >  
> >> >  name="showReport"
> >> > onsubmit="return true;"
> >>
> action="/myApp/reports/showReport.action"
> >> > method="post">
> >> > class="wwFormTable">
> >> >  
> >> >  From date:  >> type="text/javascript">
> >> >
> dojo.require("dojo.widget.DatePicker");
> >> > 
> >> >  >> >  dojoType="dropdowndatepicker" 
>  
> >> id="fromDate"   
> >> > value="2008-11-11T00:00:00"   
> >> name="dojo.fromDate"   
> >> > inputName="fromDate"
> >> displayFormat="dd.MM." 
> >> >
> saveFormat="rfc">
> >> >  Do datuma:  >> type="text/javascript">
> >> >
> dojo.require("dojo.widget.DatePicker");
> >> > 
> >> > 
> >> >  
> >> >   align="right"> >> for="users"
> >>
> class="label">User:
> >> >   name="user.id"
> >> id="user">
> >> >  >> value="1">Mike
> >> >  >> value="2">John
> >> >  >> value="3">Peter
> >> > 
> >> >  
> >> >  
> >> >   >> type="submit"
> id="showReport_0"
> >> value="Show
> >> > report" class="submit"
> >> style="submit"/>
> >> > 
> >> >  
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > Jeromy Evans - Blue Sky Minds wrote:
> >> >> 
> >> >> Milan Milanovic wrote:
> >> >>> Hi,
> >> >>>
> >> >>> I have a simple jsp form:
> >> >>>
> >> >>> 
> >> >>> >> debug="true" />
> >> >>> 
> >> >>>  action="showReport"
> >> namespace="/reports"
> validate="true">
> >> >>>   
> >> >> 
> >> >> 
> >> >>>And when user click submit button,
> this form
> >> get submitted twice, i.e.
> >> >>> showReport form action method is
> called twice!
> >> I'm NOT USING AJAX here,
> >> >>> I
> >> >>> DON'T HAVE ANY Javascript
> functions in
> >> this page.
> >> >>>
> >> >>>   
> >> >> 
> >> >> You DO have javascript in your page and
> you ARE
> >> using ajax.
> >> >> 
> >> >> 
> instructs
> >> struts to include the dojo javascripts, 
> >> >> and sets the default theme to ajax.
> >> >>  ...valudate="true">
> >> instructs struts to include client-side 
> >> >> javascript validation (or possibly ajax
> >> validation; I can't recall if 
> >> >> that requires the theme on the form
> itself or
> >> not).
> >> >> 
> >> >> Viewing the source of your page would
> tell you
> >> this.  Firefox with 
> >> >> Firebug will tell you what's
> happening.
> >> >> 
> >> >> Clean it up and see how you go.
> >> >> 
> >> >> 
> >> >>
> >>
> -
> >> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >> 
> >> >> 
> >> >> 
> >> > 
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >>
> http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20609456.html
> >> Sent from the Struts - User 

Re: JasperReports Plugin datasource

2008-11-21 Thread Milan Milanovic

I managed to call fillReport with open Connection object, but I just get an
empty report page?! If I try to pass Connection object as dataSource in JR
result, then I get that exception that Connection is null and I see report
contents but with null values ?

--
Milan


newton.dave wrote:
> 
> --- 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.
> 
>> O.K. Anyway, what I need to change in order that JR result
>> accept Connection object ? Can I just say: Connection con =
>> stack.finValue("connection"); and then to call JR fillReport(...) 
>> with that object in JR result ?
> 
> No clue. AFAIK you could just pass in the connection object in the
> parameter map and access it in the report that way, I think someone at my
> current gig is doing that, but I don't know any of the details.
> 
> Again--if you're not using the result as intended I don't really see any
> benefit in using the result at all and it'd probably be just as simple to
> stream the PDF to the browser manually.
> 
> Or you could take the code from the S2.1 result, add a result
> configuration parameter for a connection, and do whatever you want with
> JR.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20622753.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form submitted twice (no AJAX!)

2008-11-21 Thread Milan Milanovic

Dear Dave,

I don't understand. That is exactly what I get when page is generated. I
omited some plain html code.


--
Milan


newton.dave wrote:
> 
> 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, 2008, 3:33 PM
>> 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:
>> > 
>> > > xmlns="http://www.w3.org/1999/xhtml";
>> xml:lang="en">
>> > 
>> > 
>> > // Dojo configuration
>> > djConfig = {
>> > baseRelativePath:
>> "/myApp/struts/dojo",
>> > isDebug: true,
>> > bindEncoding: "UTF-8",
>> > debugAtAllCosts: true // not needed, but
>> allows the Venkman
>> > debugger to work with the includes
>> > };
>> > 
>> > > >
>> src="/myApp/struts/dojo/dojo.js">
>> > > >
>> src="/myApp/struts/simple/dojoRequire.js">
>> > 
>> > 
>> > 
>> > 
>> >  /myApp/index.jsp Main 
>>   |  
>> > /myApp/j_acegi_logout Logout 
>> > 
>> > 
>> > Menu
>> > 
>> >  /myApp/index.jsp Main page 
>> >  
>> >  
>> >  # 
>> >  
>> > 
>> > 
>> > 
>> > 
>> > Choose report
>> > 
>> >  
>> > 
>> >
>> > > > onsubmit="return true;"
>> action="/myApp/reports/showReport.action"
>> > method="post">
>> >
>> >
>> >From date: > type="text/javascript">
>> > dojo.require("dojo.widget.DatePicker");
>> > 
>> > > >  dojoType="dropdowndatepicker"   
>> id="fromDate"   
>> > value="2008-11-11T00:00:00"   
>> name="dojo.fromDate"   
>> > inputName="fromDate"
>> displayFormat="dd.MM." 
>> > saveFormat="rfc">
>> >Do datuma: > type="text/javascript">
>> > dojo.require("dojo.widget.DatePicker");
>> > 
>> > 
>> >
>> >> for="users"
>> class="label">User:
>> >> id="user">
>> > > value="1">Mike
>> > > value="2">John
>> > > value="3">Peter
>> > 
>> >
>> >
>> >> type="submit" id="showReport_0"
>> value="Show
>> > report" class="submit"
>> style="submit"/>
>> > 
>> >
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > Jeromy Evans - Blue Sky Minds wrote:
>> >> 
>> >> Milan Milanovic wrote:
>> >>> Hi,
>> >>>
>> >>> I have a simple jsp form:
>> >>>
>> >>> 
>> >>>  > debug="true" />
>> >>> 
>> >>> > namespace="/reports" validate="true">
>> >>>   
>> >> 
>> >> 
>> >>>  And when user click submit button, this form
>> get submitted twice, i.e.
>> >>> showReport form action method is called twice!
>> I'm NOT USING AJAX here,
>> >>> I
>> >>> DON'T HAVE ANY Javascript functions in
>> this page.
>> >>>
>> >>>   
>> >> 
>> >> You DO have javascript in your page and you ARE
>> using ajax.
>> >> 
>> >>  instructs
>> struts to include the dojo javascripts, 
>> >> and sets the default theme to ajax.
>> >> 
>> instructs struts to include client-side 
>> >> javascript validation (or possibly ajax
>> validation; I can't recall if 
>> >> that requires the theme on the form itself or
>> not).
>> >> 
>> >> Viewing the source of your page would tell you
>> this.  Firefox with 
>> >> Firebug will tell you what's happening.
>> >> 
>> >> Clean it up and see how you go.
>> >> 
>> >> 
>> >>
>> -
>> >> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> >> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> >> 
>> >> 
>> >> 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20609456.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-submitted-twice-%28no-AJAX%21%29-tp20584806p20622377.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Nils-Helge Garli Hegvik
Yhea, I noticed a JIRA issue for that. However, it should be possible
to construct the urls "by hand".

Nils-H

On Fri, Nov 21, 2008 at 3:14 PM, Torsten Krah
<[EMAIL PROTECTED]> wrote:
> Am Freitag, 21. November 2008 14:16:31 schrieb Nils-Helge Garli Hegvik:
>> Yes, I would handle this outside the portlet. As you say, it's not
>> than uncommon, and it should be easily solved using a servlet.
>
> I used buildResourceUrl on PortletUrlHelper to generate my servlet urls
> handled by FilterDispatcher.
> This won't work either.
> Some Ideas how to build the url otherwise with struts2?
>
>
>
> --
> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
>
> Really, I'm not out to destroy Microsoft. That will just be a
> completely unintentional side effect."
>-- Linus Torvalds
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Torsten Krah
Am Freitag, 21. November 2008 14:16:31 schrieb Nils-Helge Garli Hegvik:
> Yes, I would handle this outside the portlet. As you say, it's not
> than uncommon, and it should be easily solved using a servlet.

I used buildResourceUrl on PortletUrlHelper to generate my servlet urls 
handled by FilterDispatcher.
This won't work either.
Some Ideas how to build the url otherwise with struts2?



-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: Table Grid in struts2

2008-11-21 Thread Nils-Helge Garli Hegvik
There are several tag libraries and components that can handle this.
Personally, I have used displaytag [1] earlier for this requirement.

You could also try google: http://www.google.com/search?q=struts2+paging

Nils-H

[1] - http://displaytag.sourceforge.net/

On Fri, Nov 21, 2008 at 2:32 PM, Rajil <[EMAIL PROTECTED]> wrote:
> Hi.
>
>
>
> I need to display around 50,000 records in a page.
>
>
>
> I need grid for that, that have paging, sorting etc. functionality.  Where I
> can display some of records at a time and if required (on next click) I
> retrieve next page records and display to the use.
>
>
>
> Can anybody suggest better solution for this?
>
>
>
>
>
> regards,
>
>
>
> Rajil Davda
>
>
>
> Software Engineer,
>
> Applied Software Pvt. Ltd. | 42, Tapovan Society | Above Bank of Baroda |
> Near Manekbaug Hall | Ambawadi | Ahmedabad.
>
> + 91 942 888 99 15,  + 91 79 266 20 719  Ext. 38
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table Grid in struts2

2008-11-21 Thread Rajil
Hi.

 

I need to display around 50,000 records in a page.

 

I need grid for that, that have paging, sorting etc. functionality.  Where I
can display some of records at a time and if required (on next click) I
retrieve next page records and display to the use.

 

Can anybody suggest better solution for this?

 

 

regards,

 

Rajil Davda

 

Software Engineer,

Applied Software Pvt. Ltd. | 42, Tapovan Society | Above Bank of Baroda |
Near Manekbaug Hall | Ambawadi | Ahmedabad.

+ 91 942 888 99 15,  + 91 79 266 20 719  Ext. 38

 



Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Nils-Helge Garli Hegvik
Yes, I would handle this outside the portlet. As you say, it's not
than uncommon, and it should be easily solved using a servlet.

Nils-H

On Fri, Nov 21, 2008 at 2:07 PM, Torsten Krah
<[EMAIL PROTECTED]> wrote:
> Am Friday 21 November 2008 13:57:26 schrieben Sie:
>> You can't. It's a limitation of the portlet spec.
>
> Ok. Lets take this scenario:
>
> User fill out some registration form (portlet) and want to receive a optin
> email with a activation "link".
> How would this be done with portlets (spec v1)? Is it not possible? Do i need
> to use some servlet for this?
> How to solve this scenario, which i guess is not that uncommon?
>
> --
> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
>
> Really, I'm not out to destroy Microsoft. That will just be a
> completely unintentional side effect."
>-- Linus Torvalds
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Torsten Krah
Am Friday 21 November 2008 13:57:26 schrieben Sie:
> You can't. It's a limitation of the portlet spec.

Ok. Lets take this scenario:

User fill out some registration form (portlet) and want to receive a optin 
email with a activation "link".
How would this be done with portlets (spec v1)? Is it not possible? Do i need 
to use some servlet for this?
How to solve this scenario, which i guess is not that uncommon?

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


URL Encryption

2008-11-21 Thread Rajil
Hi.

 

I am looking to encrypt my application URL displayed in Clients Browser.

 

My application is ready so I can't change each page and encrypt each link.

 

Is there any solution on server-side to encrypt URL query-string parameters
that applies to all links in my application.

 

e.g.  my URL is
http://192.1.1.32:8055/fincrm/demoStrutsSession/brokerMaster.action?mode=mod
ify
 &userName=abc

 

should be displayed like  :
http://192.1.1.32:8055/fincrm/demoStrutsSession/brokerMaster.action?tn=12345
6845512321

 

I want it to be encrypted such that user should not be able to interpret or
change query-string parameters in URL.

 

 

regards,

 

Rajil Davda



Re: How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Nils-Helge Garli Hegvik
You can't. It's a limitation of the portlet spec. URLs can only be
created (in a portable manner) through the RenderResponse (or
MimeResponse in the 2.0 spec) interface which is only available in the
render phase. I'm not even sure that it's guaranteed that the
generated url would be "static" anyway. Depending on your requirement,
your portal server might have some sort of support for "bookmarkable
urls" that might can be used instead.

Nils-H

On Fri, Nov 21, 2008 at 1:41 PM, Torsten Krah
<[EMAIL PROTECTED]> wrote:
> Hi. I need to programmatically create an PortletURL to include in an email.
>
> Trying to use the PortletHelper to build the URL does not help because it does
> fail with this exception:
>
> RenderRequest cannot be obtained in event phase
>
> RenderRequest request = PortletActionContext.getRenderRequest();
>
> If it can not be obtained, how can i generate an action url in the event
> phase?
>
>
>
> --
> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
>
> Really, I'm not out to destroy Microsoft. That will just be a
> completely unintentional side effect."
>-- Linus Torvalds
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to generate PortletURL in Event / Action Phase?

2008-11-21 Thread Torsten Krah
Hi. I need to programmatically create an PortletURL to include in an email.

Trying to use the PortletHelper to build the URL does not help because it does 
fail with this exception:

RenderRequest cannot be obtained in event phase

RenderRequest request = PortletActionContext.getRenderRequest();

If it can not be obtained, how can i generate an action url in the event 
phase?



-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: Struts2 - JSP Scriptlet

2008-11-21 Thread Nils-Helge Garli Hegvik
Here are some resources that can be helpful:

http://struts.apache.org/2.0.12/docs/tutorials.html
http://struts.apache.org/2.0.12/docs/jsp.html
http://struts.apache.org/2.0.12/docs/tag-syntax.html
http://struts.apache.org/2.0.12/docs/ognl.html

Nils-H

On Fri, Nov 21, 2008 at 1:25 PM, Rajil <[EMAIL PROTECTED]> wrote:
> Hi.
>
>
>
> I am migrating a module from struts1.0 to struts2.1.2.
>
>
>
> I am facing problem while using scriptlet  [  <%=jsp_variable_name%> ] in
> struts2 tags.
>
>
>
> Is there any way I can use scriptlet in struts2 tags.??
>
>
>
>
>
>
>
> regards,
>
>
>
> Rajil Davda
>
>
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2 - JSP Scriptlet

2008-11-21 Thread Rajil
Hi.

 

I am migrating a module from struts1.0 to struts2.1.2.

 

I am facing problem while using scriptlet  [  <%=jsp_variable_name%> ] in
struts2 tags.

 

Is there any way I can use scriptlet in struts2 tags.??

 

 

 

regards,

 

Rajil Davda

 

 



[S2] Unknown Handler @DefaultActionProxy

2008-11-21 Thread Torsten Krah
Hi some question abount the unknown handler:
The unknown handler gots injected looking at the code - but where do i 
configure my own one which should be used - can't find the right place?

thx


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature