Dave, ${#session.foo} works in struts.xml.
newton.dave wrote:
>
> --- On Tue, 6/24/08, John Smith wrote:
>> I like it to be automatically set, using the getter/setter
>> methods in the action. Can this be done with either
>> SessionAware or through ActionContext?
>
> No. ScopedModelDriven, I
Hi:
In my application I first use the chain result type for one
action:"loginSub".
If login success,user should be taken to the manager page.
This is the core content in struts.xml:
.
manager
/secure
/
2010/12/29 Dave Newton
> I didn't misunderstand you at all; now you're asking a different question.
>
> Have you checked that the content type is correct in the headers?
>
:)
Thanks, I will have a try.
>
> Dave
> On Dec 28, 2010 7:18 PM, "maven apache" wrote:
> > I am afraid you misundersatn
I didn't misunderstand you at all; now you're asking a different question.
Have you checked that the content type is correct in the headers?
Dave
On Dec 28, 2010 7:18 PM, "maven apache" wrote:
> I am afraid you misundersatnd me.
>
> *I mean jus the "contentType"*
>
> Nomatter I set it to text/p
I am afraid you misundersatnd me.
*I mean jus the "contentType"*
Nomatter I set it to text/plain or application/vnd/ms-word,I can not see the
difference. So I wonder if there is relly no difference.
2010/12/29 Dave Newton
> http://struts.apache.org/2.x/docs/stream-result.html
>
> On Tue, Dec 2
http://struts.apache.org/2.x/docs/stream-result.html
On Tue, Dec 28, 2010 at 7:35 PM, maven apache wrote:
> Hi jlmagc:
>
> How do you set the contenttype in the result of the action?
>
> 2010/12/27 maven apache
>
> >
> >
> > 2010/12/27
> >
> >> That's right. I don't have access to the code now,
Hi jlmagc:
How do you set the contenttype in the result of the action?
2010/12/27 maven apache
>
>
> 2010/12/27
>
>> That's right. I don't have access to the code now, but I will try to send
>> it later. Check the syntax, I'm sure you will find some
>
>
> No hurry. :) Thanks.
>
>
>> examples
On Tue, Dec 28, 2010 at 11:10 AM, Amol Ghotankar
wrote:
> Even I am searching for some better way in which authentication can be done
> using struts2 or spring security toghether.
You might want to look at Codehaus Redback. Even if you end up not
using it, you might find some ideas there.
(Red
Personally, I'd lean towards having showSales.action always show a report
specific to the current user.
Then the manager wouldn't click on showSales.action. She'd click on
showSalesSummary.action which would have a completely customized query.
-Brian
On Tue, Dec 28, 2010 at 3:25 PM, wrote:
Dave is right in that there are truly a dozen ways to do this. However,
Struts does not have an out-of-the-box solution governing user/role level
permissions. Does your company have a user user based permissions system in
house today where permissions are determined according to the user logged
i
don't start with this tabbedPanel, the dojo plugin is deprecated.
Use http://code.google.com/p/struts2-jquery/ Struts2 jQuery Plugin or any
other plugin or any plain JavaScript UI Lib
like Dojo 1.5, Yui, jQuery or ...
Johannes
Li Ying wrote:
>
> You can use the tag, as Maurizio Cucchiara
Thanks, gents. Perfect!
On Thu, Dec 23, 2010 at 2:13 PM, Dave Newton wrote:
> Yep, the entire expression needs to be in the OGNL escape.
>
> Although I'd just use single and double quotes to avoid the escapes.
>
> Dave
>
> On Thu, Dec 23, 2010 at 12:53 PM, Maurizio Cucchiara <
> maurizio.cucchi
Both commons-fileupload and Tomcat usually have a maximum file upload size;
configure one or both.
Dave
On Dec 28, 2010 2:30 PM, "Anjib Mulepati" wrote:
> I am writing an app to upload file using Struts 1.3.8.
>
> It works fine if I upload small file. But when I try to upload
> lager(>200MB) fil
I am writing an app to upload file using Struts 1.3.8.
It works fine if I upload small file. But when I try to upload
lager(>200MB) file it doesn't response correctly.
For larger file my form validation get null for all field even I have
value in it.
This is happening to all browser IE,FF and
Yes. You need to extend ValidatorForm (or ValidatorActionForm) to override
the validate() method.
On Tue, Dec 28, 2010 at 1:55 PM, Anjib Mulepati wrote:
> So my form should extends from ValidatorForm?
> Anjib
>
> On 12/28/2010 2:50 PM, Paul Benedict wrote:
>
>> Option 2 is fine.
>>
>> On Tue, De
So my form should extends from ValidatorForm?
Anjib
On 12/28/2010 2:50 PM, Paul Benedict wrote:
Option 2 is fine.
On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote:
1. Complex in the sense my own custom validation for multiple emails.
2. So do you mean i can go with Option 2?
Anjib
Option 2 is fine.
On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote:
> 1. Complex in the sense my own custom validation for multiple emails.
> 2. So do you mean i can go with Option 2?
>
> Anjib
>
>
1. Complex in the sense my own custom validation for multiple emails.
2. So do you mean i can go with Option 2?
Anjib
On 12/28/2010 2:38 PM, Paul Benedict wrote:
On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepatiwrote:
Ok to make my self clear I have three field to check name,email and
message
On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepati wrote:
> Ok to make my self clear I have three field to check name,email and
> message.
> I want name and message to be required but email required complex
> validation that is not provided with struts.
>
What kind of "complex" validation?
> As '
Ok to make my self clear I have three field to check name,email and message.
I want name and message to be required but email required complex
validation that is not provided with struts.
As 'required' is provided in Struts I can set validation rule for name
and message simply in xml file.
And
Anjib,
It depends on how you configure your struts action. If you have
validate="true" on, then no -- failed validation will never make it to your
action. If you want to call validate() yourself in execute() and perform
additional validation, go for it.
Paul
On Tue, Dec 28, 2010 at 12:20 PM, Anj
Struts 1.3.8
Can I use validate.xml and validate() method at same time
a) for same field in both place and
b) different disjunctive fields.
Anjib
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional comm
I can elaborate on the requirement as follows,
Assume a simple action which is authorized to be called by sales dept people
only. i.e showSales.action
When a user from purchase dept tries to call this action then, an
interceptors will check whether the user in role has the authorization to
access
On Tue, Dec 28, 2010 at 11:10 AM, Amol Ghotankar wrote:
> Even I am searching for some better way in which authentication can be done
> using struts2 or spring security toghether.
>
> No direct or simple example to explain it working together.
>
> Specially for these two cases where
>
> 1. which u
Hello,
Even I am searching for some better way in which authentication can be done
using struts2 or spring security toghether.
No direct or simple example to explain it working together.
Specially for these two cases where
1. which user can access which action, is stored in database ->
authori
That's just wired.
The first idea in my head was, may be there is lacks of brackets in
your expression.
But then I checked the document of OGNL:
http://www.opensymphony.com/ognl/html/LanguageGuide/apa.html
Accordinting to this document,
the operator [%] has higher precedence than operator [==].
You can use the tag, as Maurizio Cucchiara has told you.
http://struts.apache.org/2.2.1.1/docs/tabbedpanel.html
Or you can use JQuery UI.
Here are demos and docs:
http://jqueryui.com/demos/tabs/
-
To unsubscribe, e-mail: user-
May be something getting wrong in Eclipse IDE.
Try:
(1)Delete the whole project from Eclipse IDE.
But NOT delete the project content from the file system
(2)Import the project to Eclipse again
(3)Clean the project
And see if the error get cleared?
-
What HTML code does your tag render?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
* There is no problem on the level of firewall/proxy, because I can do
software updates within eclipse without any problems
* if something is broken in dependencies, how can I check this?? The strange
thing is if I deploy it directly on my web-server, it works without any
problems
On 28 December 2
If you want use native struts2 validation start from here [1],
Remember that in order to show the error message on top you need to
choose the css_xhtml theme for struts.
[1] http://struts.apache.org/2.2.1/docs/validation.html
2010/12/28 :
> Any One tell me how to do field validation in struts 2
At first glance your struts.xml seems to be ok.
I don't know the eclipse environment, the only two things that come to my
mind are:
1 you are behind a firewall/proxy and eclipse is not be aware of this
2 there is something broken in your dependencies
2010/12/28 Stefaan Somers :
> I have create th
Have you already take a look at
http://struts.apache.org/2.1.8/struts2-core/apidocs/org/apache/struts2/components/TabbedPanel.html
?
2010/12/28 :
>
> I want to create a three tab in jsp using struts 2 and
> call 3 separate jsp for each tab any one give the example
> Thanks and Regards,
> Kart
It's definitely a dojo/dijit miss-configuration issue.
We can't help you, there is not an html form. I've ever disliked the dojo way.
My suggestion is: change the method from post to get and see what
happens (see if get variables appear to the address bar)
2010/12/28 developer researcher :
>
setMaxInactiveInterval(int seconds) will work for a specific user
session timeout. It is set in the httpsession object, for example
http://bit.ly/g2WdSW.
In Struts 2 you can gain access to the HttpSession object by accessing
HttpServletRequest
(http://struts.apache.org/2.0.14/docs/how-can-we-
Try jQuery validation http://docs.jquery.com/Plugins/validation for
client side javascript validation.
On 28/12/2010 6:54, karthick.gunaseka...@wipro.com wrote:
Any One tell me how to do field validation in struts 2,
i need to show the error message on top of the each field not in top of the
s
I have create the most simple struts2 application, where I refer with my
build path to the necessary struts2-jar files.
But it keeps complaining in the Eclipse-IDE on "struts.xml" with the
following message : The errors below were detected when validating the file
"struts-2.0.dtd" via the file "str
37 matches
Mail list logo