> -Original Message-
> From: Brian Thompson [mailto:elephant...@gmail.com]
> Sent: Tuesday, November 30, 2010 6:05 PM
> To: Struts Users Mailing List
> Subject: Re: AJAX file upload
>
> I was assuming that he wanted his own custom look and feel for the upload
> button rather than just put
I was assuming that he wanted his own custom look and feel for the upload
button rather than just putting an unstyled HTML on the
page.
-Brian
On Tue, Nov 30, 2010 at 7:57 PM, Tommy Pham wrote:
> > -Original Message-
> > From: Harsh C [mailto:hchau...@gmail.com]
> > Sent: Tuesday, Nove
> -Original Message-
> From: Harsh C [mailto:hchau...@gmail.com]
> Sent: Tuesday, November 30, 2010 12:59 PM
> To: Struts Users Mailing List
> Subject: AJAX file upload
>
> How can I setup a AJAX-ified file upload page using Struts 2? If there is
some
> integration with Dojo, it would be e
The source code of FileUploadInterceptor is:
http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/FileUploadInterceptor.java
..
if (maximumSize != null && maximumSize < file.length()) {
Chris is right.
On the client side, there is not such a concept of "Struts
Action".There is Server Side Resource only.
You have to access(post or get) it by URL, param, and you must handle
the response from the server side.
Code should looks like:
(1)Client side JavaScript
Send a request to Se
What is the error message?
And, how did you defined the property "today"?
Is it the same data type as the static method param?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h..
With OGNL you can call specific methods. So in my base action I have the
following:
public boolean isUserAuthorised(Integer actionId){
// here I get a handle to the authorisation code and test
// if the current user is authorised to execute the action
// if the user is aurthorised return true e
Either use ajax or submit the page request, there's no other good way to
access a server side resource from the client side.
(*chris*)
On Nov 30, 2010 1:15 PM, "Anjib Mulepati" wrote:
> Struts 1.3.8
>
> I have text box and button in the JSP page with the function on
> onCLick() event.
>
Struts 1.3.8
I have text box and button in the JSP page with the function on
onCLick() event.
How can I setup a AJAX-ified file upload page using Struts 2? If there is
some integration with Dojo, it would be even better i.e. not use the OS
specific file upload button etc.
--
*Thanks,
Harsh*
In my jsp I have two dates ("today" and "expiryDate") the following
works in the JSP:
Now I created two static methods (In a Class called
dateUtils.DateRange):
/* Calling the following from my JSP:
*
* Works just fine...
*/
public static int numTest(int num) {
return num + 5;
Hmm, I just took a second look. We do actually have
struts2-sitemesh-plugin.jar in our classpath. OTOH, it doesn't seem to be
used anywhere. From the documentation available (
http://struts.apache.org/2.x/docs/sitemesh-plugin.html), it sounds like the
plugin is only important if you're using Vel
Before I wrap myself around my own axle, does anyone know a straightforward
technique for substituting the maximumSize into a message property text
according to the following scenario.
100123
image/png,image/x-png
I am currently using Struts2 + Dojo 1.5. Dojo documentation is getting
better but the dojo user community is awesome. I would not use the dojo
plugin.
- Original Message -
From: "Dave Newton"
To: "Struts Users Mailing List"
Sent: Tuesday, November 30, 2010 12:26
Subject: Re: Struts2 +
Dojo is framework- agnostic.
On Nov 30, 2010 12:12 PM, "developer researcher" <
java.developer.researc...@gmail.com> wrote:
> Hello,
>
> Has anyone worked with Dojo to create the UI? I do not refer to plugin
> for dojo. I mean to use dojo as javascript library to create the structure
> of the pages
Hello,
Has anyone worked with Dojo to create the UI? I do not refer to plugin
for dojo. I mean to use dojo as javascript library to create the structure
of the pages and form elements.
I've been testing and I've run into several problems. I do not know if
is a problem of struts2 or
Brian, you are saying I can use struts tags and access the action etc
in my JSP decorator without needing the struts2-sitemesh-plugin?
(This would be great, but then what is the plugin for?)
Thanks Dave, Brian for the clarification on the filter vs filter-mapping order.
On Tue, Nov 30, 2010 at 1
I figured it out. My interceptor was returning null instead of
invocation.invoke()...n00b mistake. :)
In your example, you invoke a specific method "isUserAuthorized()".
What is the method named in your action? Is it "getIsUserAuthorized"?
I have an action method "isAuthorized" and I have to inv
Thank you for the suggestion, Zoran! I guess I'm doing somewhat of a
combination of what you and Dave suggested.
I've been utilizing the Aware interfaces for my actions...I think it's
similar to what you're suggesting with your base action class, just a
different approach, if I understand correctl
Re: Question 1 -
No, you can use other taglibs inside a decorator file. My user.jsp
(decorator) has the following lines:
<%-- Include struts tag declaration --%>
<%@ include file="/common/taglibs.jsp"%>
-
(it also uses in places. All you need to do is declare the taglib
with e.g.
<%@ tagli
On Tue, Nov 30, 2010 at 10:35 AM, Greg Lindholm wrote:
> Question 4) In the "Example" section of the doc the sitemesh filter
> appears after the two struts filters, is this correct? I was under the
> impression that the sitemesh filter must be declared between the
> struts-prepare and struts-execu
I'm working on my first project that will use sitemesh and have some
questions on basic configuration with Struts2.
Info:
struts 2.2.1
sitemesh 2.4.1
My decorators will be JSP files
I'm looking at the struts2-sitemesh-plugin doc
http://struts.apache.org/2.2.1/docs/sitemesh-plugin.html
Question 1
> Struts will not automatically populate fields based on parameters passed via
> the URL
I always use URL to binding parameters to Action.
And I have read source code of ParametersInterceptor, I think this
Interceptor will populate all the params to Action.
And it dose not treat params via URL o
I think your tag has a leak of attribute "method"
Your code:
will generate HTML likes:
When you click this button, there will be a http request parameter
like "btn.search=Search".
Struts2 will accept this parameter, and try to save it to your action property.
So, there will be a property sett
i created one jsp(confirmPaymnt.jsp) like this and run from my server
machine.
its working fine.
confirmPaymnt.jsp:
---
http://168.183.169.195/Payment/eNetMainAPI.aspx"; method="post" >
http://www.octopusplus.com/process.do"; id="processpage"
style
There is an easy trick:
Define all your buttons in your global.properties starting with word ‘*dojo*’
like this:
dojo.btn.eliminar=Borrar
dojo.btn.editar=Editar
dojo.btn.inscripcion=Inscribirse
dojo.btn.buscar=Buscar
That way you avoid ParametersInterceptor to search for unimplemented
It doesn’t work…
Neither putting ‘btn.search=Search’ in: my-global-messages.properties,
package.properties, my-action.properties
¿?¿?
2010/11/29 M. Rakowski
>
> i have exactly the same problem:
>
>
>
> with event.name set in the package.properties file: works ok.
>
>
>
> with button.creat
27 matches
Mail list logo