2013/7/10 Alireza Fattahi :
> Thanks !
>
> I found a code
> here:http://struts.apache.org/release/2.0.x/docs/zero-configuration.html
>
>
> @ParentPackage({"my-parent-package1, my-parent-package2"}) package
> com.mycompany.myapp.actions import org.apache.struts2.config.ParentPackage;
>
>
> Can I d
Thanks !
I found a code
here:http://struts.apache.org/release/2.0.x/docs/zero-configuration.html
@ParentPackage({"my-parent-package1, my-parent-package2"}) package
com.mycompany.myapp.actions import org.apache.struts2.config.ParentPackage;
Can I do it ?!
~Regards,
~~Alireza Fattahi
__
2013/7/10 Alireza Fattahi :
> Hi,
>
> I am using the convention in with json plugin so I add:
> value="json-default" />
> Now I want to use the REST plugin so I should add:
> value="rest-default" />
json-default [1] contains just one result definition and two
interceptors, so you can merge it in
Hi,
I am using the convention in with json plugin so I add:
Now I want to use the REST plugin so I should add:
How can I solve it !
~Regards,
~~Alireza Fattahi
As per my understanding, your applciation might have configured the common
interceptor stack for action classes, that is why for every action request..it
is accessing the interceptor and u see the log msgs.
-Thanks
Uma Kagitha.
From: Sreekanth S. Nair
To: Str
I wrote an action class to return an image, and display perfect.
http://localhost/ecommerce/ImageAction?imageId=darksouls.jpg
but, when i use struts 2' jquery plugin div resize sample(just copy& paste
their demo code, but only change action at following.
It return/displ
Yes you are right Dave, let me recheck the scenario when my interceptor
calls twice.
--
Thanks & Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
On Tue, Jul 9, 2013 at 8:46 PM, D
What do you mean by "called while response"? Interceptors aren't called
twice, they wrap action invocation.
Dave
On Jul 9, 2013 10:07 AM, "Sreekanth S. Nair" <
sreekanth.n...@egovernments.org> wrote:
> I have a custom interceptor for trimming whitespaces in request data
> My intercept method is
Interceptor are designed to work in this way..
They work in 2 steps pre-processing and post-processing.The time
Interceptor is called in reverse order, response will already be with your
client (Browser)
Other option (not good) is to create a custom convertor where you can trim
spaces.
On Tue, J
No, I dont want a filter i want to make it done with strust2 interceptor
only, my question is how do we achieve this using an interceptor.
--
Thanks & Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
--
Agreed. What you want is a Servlet filter, not a Struts interceptor.
On Tue, Jul 9, 2013 at 9:54 AM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:
> I doubt struts2 interceptor work like a filter, just like in ur pseudo
> code. In filter we can specify
> what to do with request and
I have a custom interceptor for trimming whitespaces in request data
My intercept method is like below
@Override
public String intercept(final ActionInvocation invocation) throws
Exception {
// Get the action context from the invocation so we can access the
// HttpServletRequest
It works precisely like a filter, there is code before and after
action.invoke, and before rendering with PreResultListeners.
I don't understand the specific issue(s) you think you're having. What
problem are you having that you're trying to solve?
Dave
On Jul 9, 2013 9:54 AM, "Sreekanth S. Nair
I doubt struts2 interceptor work like a filter, just like in ur pseudo
code. In filter we can specify
what to do with request and response by adding code before and
after chain.doFilter(request, response). In Interceptor intercept method
will always get executed before and after req & resp.
--
Hi Alireza
See if this helps SomeAction-AliasName-validation.xml, where AliasName is
method/action name
Regards,
Neville Fernandes | Software Engineer
Cell: +91-9049398189| Off Tel: +91-832-6628733
Persistent Systems Ltd.| Partners in Innovation | www.persistentsys.com
-Original Message-
2013/7/9 Alireza Fattahi :
> I do not use any configuration.
>
> There is an index.jsp:
> <% response.sendRedirect("index.action"); %>
Try to use
<% response.sendRedirect("/namespace/"); %>
> and the index.action is has a execute and simple return SUCCESS and redirects
> to a jsp. As I said it
I think that if you name your validation file as follows it will only trigger
for the given method.
SomeAction--validation.xml
For the "saveFile" method you would have:
SomeAction-saveFile-validation.xml
Todd Kofford
tkoff...@ku.edu
From: Alireza Fattah
I do not use any configuration.
There is an index.jsp:
<% response.sendRedirect("index.action"); %>
and the index.action is has a execute and simple return SUCCESS and redirects
to a jsp. As I said it is the struts 2 jquery showcase sample!
I am new, please let me know if I should describe any
Hi,
When I put SomeAction-validation.xml nead an action class, the validation is
always checked before execute method.
If I have more than one method in the action, will the validation execute for
them too ?! Is there any way that I can configure which methods should by pass
the validation
~
Ok, but could you share configuration of results? How do you perform redirect?
2013/7/9 Alireza Fattahi :
> Here it is:
>
> I acutally downloaded the struts 2 jquery plug in and add
>
> to it!
>
>
>
>
>
> value="com.jgeppert.struts2.jquery.showcase" />
> value="json-default
I dont think it is possible. But I believe you can just ignore the response and
do nothing with that.
I am not sure if I understand your question. But an interceptor has only one
call per request/response. So your code could like this:
public class Interceptor {
method {
Here it is:
I acutally downloaded the struts 2 jquery plug in and add
to it!
~Regards,
~~Alireza Fattahi
From: Lukasz Lenart
To: Struts Users Mailing List ; Alireza Fattahi
Sent: Tuesday, 9 July 2013, 17:22
2013/7/9 Alireza Fattahi :
> The
>
> is not working !
> It keeps redirecting to slash
>
> any comments ?!
Could you share your struts.xml? Os some snippets with results?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
--
Hi,
The
is not working !
It keeps redirecting to slash
any comments ?!
~Regards,
~~Alireza Fattahi
Yes, i have an Interceptor basically to Trimming of input values, i don't
want to do this to be happened while request coming back with response.
--
Thanks & Regards
Srikanth
Software Developer
eGovernments Foundations
www.egovernments.org
Mob : 9980078913
---
Any specific reason to do that?
--Original Message--
From: Sreekanth S. Nair
To: Struts Users Mailing List
ReplyTo: Struts Users Mailing List
Subject: How to make interceptor to be invoked only for HTTP Request not for
Response
Sent: Jul 9, 2013 5:33 PM
How to make interceptor to be invok
How to make interceptor to be invoked only for HTTP Request not for Response
Am 09.07.2013 11:15, schrieb Lukasz Lenart:
getters? And maybe use just one value instead of two searchResult?
Getters are present for the one from the action, without the #
I need both for an evil hack, I have a page that consists of a form and
a list which are seperate actions and after s
2013/7/9 Fabian Richter :
> Am 09.07.2013 11:07, schrieb Lukasz Lenart:
>>
>> Have you tried this:
>>
>>
>
> Yes, I did, didnt work :(
getters? And maybe use just one value instead of two searchResult?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
--
Am 09.07.2013 11:07, schrieb Lukasz Lenart:
Have you tried this:
Yes, I did, didnt work :(
smime.p7s
Description: S/MIME Kryptografische Unterschrift
Have you tried this:
2013/7/9 Fabian Richter :
> Hey,
>
> quick question (I know WW is EOL maybe someone will help me nonetheless):
>
> Why does
>
>
>
> not work as expected?
>
> Depending on the call, searchResult is either from the action or set by
> ww:set but the if only evaluates the one
Hey,
quick question (I know WW is EOL maybe someone will help me nonetheless):
Why does
not work as expected?
Depending on the call, searchResult is either from the action or set by
ww:set but the if only evaluates the one from the action -> searchResult
and if its empty does not proceed t
32 matches
Mail list logo