ea about where the problem can come from ?
Thanks,
Cimballi
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
ea about where the problem can come from ?
Thanks,
Cimballi
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
t uses the HttpSession, but then in the
actions it seems to be recommended to use the "context" session.
Thanks !
Cimballi
On Thu, Jan 14, 2010 at 5:31 PM, Gabriel Belingueres
wrote:
> This way of obtaining a Session I think is not a good idiom.
>
> May be there are things that
Don't you think it could be interesting to find a solution to have
both way working ?
Well, maybe it's not possible in fact... I've seen there is also kind
of hack to invalidate the session, because if you invalidate the
HttpSession it generates an error when recreating and accessgin
Tu as quoi comme code à cette ligne :
action.ChargementParamAction.execute(ChargementParamAction.java:66) ?
Cimballi
2010/1/25 canardo972 :
>
> Bonjour,
>
> Contexte :
> Après installation de tomcat 5.5 et le déploiement de mon application Web,
> je rencontre une erre
mis "admnin" et non "admin",
est-ce normal ?
Cimballi
2010/1/26 canardo972 :
>
> Bonjour Cimballi,
>
> voici le code de la classe ChargementParamAction (la ligne 66 est dans la
> fonction execute : le "return SUCCESS":
> public class ChargementPara
Look here, there are 2 tips, about security and swing, you will need :
http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/
Cimballi
On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal wrote:
> Any ideas why my application is throwing this error on Google
You interceptor declaration should be like that :
true
com.xxx
ERROR
Cimballi
On Thu, Feb 4, 2010 at 4:14 PM, DavidZaz wrote:
>
> I have an exception interceptor declared in my struts.xml, but no log
> messages ever appear in the log
:D Ok, I just noticed than the mailing list engine, or maybe google,
removes the < param > tag...
Cimballi
On Thu, Feb 4, 2010 at 4:40 PM, DavidZaz wrote:
>
> I actually had the interceptor-ref configured like that in my source code. It
> looks like my code didn't paste fr
Hum, it's strange because in fact at fatal level you should only have
fatal log messages...
On Thu, Feb 4, 2010 at 5:33 PM, DavidZaz wrote:
>
> As an update, I changed the level in my struts.xml to FATAL and the logging
> started working. This behavior confuses me since I don't have any loggers
I have a working case with this declaration :
private Float latitude; and getXxx setXxx.
And in the JSP :
Using Struts 2.1.8.1
Cimballi
2010/2/9 BlackKnight :
> Hi,
>
> Just curious,
>
> Lib Version:
> ognl 2.6.11/Struts2.1.6,
>
> Initial setting:
> I have a flo
Frankie, here it works also with "0.0" entered in the UI.
Cimballi
On Wed, Feb 10, 2010 at 11:32 AM, BlackKnight wrote:
> Hi Cimballi,
>
>
> Have you tried to set latitude = 0f (in java class) or 0.0 in the web
> textfield and then submit the form?
>
>
The default pattern is to put all JSPs under WEB-INF and so you force
the call to an action to access them.
Cimballi
On Wed, Feb 17, 2010 at 7:46 PM, Wong Chin Shin wrote:
> Hi,
>
> I've had a pen test finding where our JSP files, which are in the public
> directories of o
the
RequestDispatcher calls.
Cimballi
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Look at ParameterRemoverInterceptor for example, you can access the
action context like this :
ActionContext ac = invocation.getInvocationContext();
And then you can set values in the value stack. Didn't test it but should work.
Cimballi
On Fri, Feb 19, 2010 at 11:10 AM, CRANFORD, CHRIS
will
help to debug.
You can look at this class too,
com.opensymphony.xwork2.interceptor.TimerInterceptor, they do the
same, only they don't put it in the value stack.
Cimballi
On Fri, Feb 19, 2010 at 11:39 AM, CRANFORD, CHRIS
wrote:
>
> My RequestTimerInterceptor is very basic and
Not sure at 100%, but should be a problem of encoding. What's the
encoding of your page ?
Cimballi
On Tue, Feb 23, 2010 at 12:44 PM, CRANFORD, CHRIS
wrote:
> I have added a format to my messages resource bundle as follows:
>
> format.currency={0,number,currency}
>
> Then I use this in my JSP
>
>
John, you can use namespaces at the package level to distinguish your stores.
You can also do that in a rest way, like http://www.xyz.com/store/1.
Cimballi
On Sat, Mar 6, 2010 at 11:18 PM, john lee wrote:
>
> my company is distributor, we plan to provide platform for our
> customer(
paramter, and
you set the parameter statically in the action definitions.
You will need 2 action definitions, one in each package, calling the
same java action and setting the storeId parameter like said before.
Then, in each JSP for each store, you call the correct struts action.
Is it clear for you ?
Something like that :
Declare the interceptor unless you use default Struts stacks
Declare the static param :
value
And in the action you need a setFoo(String)
Cimballi
On Mon, Mar 8, 2010 at 10:40 PM, john lee wrote:
> Cimballi,
>
> tks for your help, but i do not quite underst
Yes !
On Tue, Apr 6, 2010 at 11:15 PM, Krunal Dhamelia wrote:
> Hi All,
>
> I am new to Struts 2 and wanted to use latest versions of Spring and
> Hibernate with Struts2.
> Is it possible to use Spring 3.0.2 and Hibernate 3.5 with Struts 2?
>
>
> Krunal Dhamelia
>
to your super class, and you
write a PermissionInterceptor which calls the hasPermission method.
Finally you add the PermissionInterceptor interceptor to your stack on
all protected actions.
Cimballi
On Thu, Apr 15, 2010 at 9:39 PM, Kun Niu wrote:
> You should check the authentication all
Comments are already included in the doc :
1. When we talk about MVC frameworks Struts(original and not Struts2)
2. Sturts 2 is the revision of Struts (original) and takes care of
such shortcoming and provides a good set of competing features.
So not so much to debate on...
Cimballi
On Thu
Hi Sven,
It's better to avoid to put jars in the Tomcat folders. The problem is
that if you put your jars there, then all your apps will share them,
and then you cannot have different versions of the same API, like one
app using Struts 2.0.x and another one using Struts 2.1.x.
Cimballi
O
Of course it can be done with JQuery and I recommend using JSON too.
You call the action via Ajax and you get the JSON result and display it.
Cimballi
On Fri, Apr 30, 2010 at 1:36 PM, Ozu Natsu wrote:
> Is it possible to fire the struts 2 validation without performing a
> submit? I r
7;s a single String but I suppose you can return more
complex objects.
Cimballi
On Fri, Apr 30, 2010 at 2:51 PM, Ozu Natsu wrote:
> I am having some problems with the call, the ajax "get" returns no
> response, even though I know the form validation should be failing.
> My aja
even specify the name of
the method to call in your action.
Another option is to create 2 actiosns in your configuration file
calling the same java action, one for the real action, and the other
for the validation.
Cimballi
On Fri, Apr 30, 2010 at 3:34 PM, Ozu Natsu wrote:
> Closer, still
Did you try with the getJSON method of JQuery ?
Cimballi
On Fri, Apr 30, 2010 at 5:01 PM, Ozu Natsu wrote:
> 1 step closer. I had missed the reference to the interceptor
> in my struts
> action.
>
> I am now getting a result back from the validator, but it doesn't se
I noticed that I am not using the json interceptor, only the result :
What are you using ?
Cimballi
On Fri, Apr 30, 2010 at 5:16 PM, Ozu Natsu wrote:
> var url= "./checkValid.do";
> var data=
> $('#update').serialize()+'&struts.enableJ
Did you try putting the xworks jar in each project ? I am not sure but
I don't think you can share it.
Cimballi
On Thu, May 20, 2010 at 9:18 PM, Bhaarat Sharma wrote:
> We have a weird problem with multiple Struts2 wars deployed on same
> GlassFish server. These wars share the Xwor
I recommend you to try to deploy both applications on separate
servers, as the guy did in your link, and see if you still have the
problem.
For sure the s:text in Struts uses Xworks.
Cimballi
On Thu, May 20, 2010 at 10:10 PM, Bhaarat Sharma wrote:
> Hi,
>
> Have not tried that yet. W
Yes you can but instead of using you can use directly JSP
EL like {myBean.propertyName}.
Cimballi
On Mon, May 24, 2010 at 1:10 PM, lucas owen wrote:
> Hi:
>
>
> is it possible to pass a dynamic parameter to a javascript function???
>
> I'm trying this:
>
>
http://struts.apache.org/2.1.8.1/docs/result-configuration.html
Cimballi
On Tue, May 25, 2010 at 6:14 AM, ennidhi wrote:
>
> Whats the difference between action tag? Which one is called at what point? Please suggest. And also what
> does
> /empmanager/editEmploye
You should not call your page from a link but always go through an action.
It is more secure and also it would solve your problem.
Nevertheless, one solution is to use the tag.
Cimballi
On Wed, Jun 2, 2010 at 3:12 AM, Guy Thomas wrote:
> Hallo,
>
> On a jsp page booksearchresult.j
You should not write java code inside JSPs, it's very hard to maintain.
You should use Struts taglib and JSTL taglibs.
Look at the tag and also ${} to display bean values.
Cimballi
On Wed, Jun 2, 2010 at 12:22 PM, Emi Lu wrote:
>>> Could someone tell me how to read actionFor
It seems you are looking for a tool like Seam but for Struts2.
I don't know about any such tool but it should be possible to do the same.
Cimballi
On Thu, Jun 10, 2010 at 1:47 PM, Ken wrote:
> On Thu, 2010-06-10 at 17:38 +0100, Jan T. Kim wrote:
>
>> Dear List,
>>
&g
Hi Jan,
One solution could be to externalize the URL generation in a JSP
fragment and set a variable containing the resulting URL.
Then, in your JSP you call the variable to output the URL.
Cimballi
On Tue, Jun 15, 2010 at 1:05 PM, Jan T. Kim wrote:
> Hi All,
>
> the basic way to
input".
Cimballi
On Mon, Jul 26, 2010 at 12:23 PM, Rohit wrote:
> Hi,
>
>
>
> I am new to struts2, prior to this I have been using struts1.2, Spring and
> Hibernate combination. I have just started using Struts2,Spring and
> Hibernate application, but I seem to be plag
It's highly probable that at some moment in the action process you (or
the framework) return "input" as the result.
Cimballi
On Sun, Aug 1, 2010 at 2:54 PM, Chris Miles wrote:
> Hi folks.
>
> I am getting the following exception on my action method.
>
>
As a first step you can try to activate the logs for Struts and Xwork
and look if they say anything when returning from the action.
Cimballi
On Sun, Aug 1, 2010 at 4:04 PM, Chris Miles wrote:
> Hi, It is not being returned by me so without having to debug the source is
> anything which
You can try this :
http://cimballisblog.blogspot.com/2009/09/unit-testing-struts2-actions-with.html
Cimballi
On Tue, Aug 3, 2010 at 3:01 PM, akash uppal wrote:
>
>
>
> Dan - Is your Struts 2 application using Spring? If it isn't you shouldn't
> need to use the StrutsS
Why worrying so much ? iBatis is still alive : http://www.mybatis.org/
Cimballi
On Thu, Aug 12, 2010 at 1:24 PM, Emi Lu wrote:
> Good afternoon,
>
> http://ibatis.apache.org/index.html shows that "2010/06/16 - Apache iBATIS
> has been retired".
>
> Can you suggest
Lu, this is a Struts ML, not a Spring or iBatis ML.
A simple search in Spring documentation would have given you the answer :
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/orm.html#orm-ibatis
Cimballi
On Thu, Aug 12, 2010 at 3:12 PM, Emi Lu wrote:
> He
Frank, I think that you can simply replace the Spring 2.5.6 jars by
the 3.0.x jars.
Cimballi
On Thu, Aug 12, 2010 at 5:32 PM, Frans Thamura wrote:
> hi all
>
> talking spring3
>
> any idea to make struts 2.21 using spring 3 rath
Are you sure the crash is related to the dependencies ?
Below is a what I used on a project, mixing Struts 2.1.8.1 and Spring 3.0.2.
Cimballi
com.opensymphony
xwork
2.1.3
compile
org.springframework
spring-beans
${spring.version
Chris, the ParametersInterceptor clears the ValueStack, so depending
on your stack maybe that's what's happening.
Cimballi
On Fri, Aug 13, 2010 at 1:09 PM, CRANFORD, CHRIS
wrote:
> I am trying to add an object to the ValueStack prior to invoking the
> action; however my actio
Cimballi
On Tue, Aug 17, 2010 at 2:40 PM, E2241 wrote:
>
> Hi,
>
> 1.) I would like to know if it is possible to call the struts framework
> through a command line or a console application. Can one call an action
> class? Is there any possibility to do so? I think i
47 matches
Mail list logo