Thanks for the summary, although I disagree with your conclusion ;)
Nils-H
On Fri, Aug 1, 2008 at 2:21 AM, Struts Two <[EMAIL PROTECTED]> wrote:
> I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE PORTAL.
> You need to keep the followings in mind:
> 1- You need to have at least
I have read a number of reports spanning the last year and describing the
problem of wanting to attach parameters to an actionRedirect, as in the
following example:
myAction
23
This issue has been raised a number of times, I believe, but I
Hi,
This is how I fixed it:
1. open the struts2-core-2.0.11.jar file
2. extract template\simple\head.ftl
3. edit it and set the debugAtAllCosts attribute to false
4. replace that file in the jar
Thanks Markus!
Nicole
On Thu, Jul 31, 2008 at 5:03 PM, nauke. <[EMAIL PROTECTED]> wrote:
> ohh tha
I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE PORTAL. You
need to keep the followings in mind:
1- You need to have at least fixpack 13 or 15 ( I am not sure which one,
otherwise you CAN NOT RUN STRUTS 2 ON WAS)
2- Struts 2.0.11.2 has problems running on Websphere 6.1 (it is
Yes, that's exactly what that does. It invalidates the session and removes
all the data.
(*Chris*)
On Thu, Jul 31, 2008 at 3:27 PM, Milan Milanovic
<[EMAIL PROTECTED]>wrote:
>
> Hi Dave,
>
> excuse me for disturbing this list or you personally, I asked for this in
> Spring forum (
> http://for
Basically Struts just loads the properties from the classpath, so anywhere
on the classpath should work.
(*Chris*)
On Thu, Jul 31, 2008 at 4:18 PM, Pranav <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In our application, currently package.properties is packaged inside the war
> file at \web-inf\classes
Hi,
In our application, currently package.properties is packaged inside the war
file at \web-inf\classes directory. But we would like to move it out to a
directory like /server/default/conf inside the jboss. Is there anyway this can
be done? If yes, can someone please guide me with step-by-step
Hi Dave,
excuse me for disturbing this list or you personally, I asked for this in
Spring forum (
http://forum.springframework.org/showthread.php?p=194333#post194333
http://forum.springframework.org/showthread.php?p=194333#post194333 ).
I figured out what I do in those method with session which f
That was the issue. I did not include *struts-portlet-default.xml* in
struts.xml. Thanks a lot for your help.
Dinesh
On Thu, Jul 31, 2008 at 12:55 PM, Nils-Helge Garli Hegvik
<[EMAIL PROTECTED]>wrote:
> Did you in your struts.xml?
>
> On Thu, Jul 31, 2008 at 9:26 PM, Dinesh Narayanan <[EMAIL PR
Did you in your struts.xml?
On Thu, Jul 31, 2008 at 9:26 PM, Dinesh Narayanan <[EMAIL PROTECTED]> wrote:
> Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0.0? I
> am running into issues when I tried a very simple JSR168 example. Any help
> would be appreciated. Is there so
Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0.0? I
am running into issues when I tried a very simple JSR168 example. Any help
would be appreciated. Is there some example of struts2 sample in websphere
portal 6.1?
A) My portlet.xml contains the following entries
Hi everyone,
Our struts.xml file is getting beastly, so I attempted to break it down
into multiple files.
I read this page:
http://struts.apache.org/2.x/docs/can-we-break-up-a-large-strutsxml-file-into-smaller-pieces.html
Specifically:
"You can use elements in your struts.xml interchangeably wit
I already told you I don't know and you continue to refuse to provide the
information I've asked for. You also added new information about Acegi, which I
responded to by saying that yes, if you're getting logged out it's unlikely
you'd keep the same session, as that would somewhat defeat the pur
Dear Dave,
O.K. But when you look at this scenario:
MyFirstActionClass -> show first.jsp -> user click on link ->
MyFirstActionClass.method where I set session variable
(getSession().put("variable", new Boolean(true)); -> show second.jsp (here I
see my variable) -> user click on some link ->
MyS
Yes, I tried this. Unfortunately, the minute I include below in struts.xml
Struts complains on startup that bean with the same name has already been
defined. Additionally, stepping through struts validation code, I can see
that it is not even using this "bean" definition, but instead, proceeds
I didn't say it wouldn't work. I, and the Sun documentation I quoted, said it
was a known bad programming practice.
Dave
Milan Milanovic wrote:
> Hi Dave,
> no, I think that this is not an issue. I tried with Boolean.TRUE and it is
> the same, but I earlier used new Boolean(true) and that worked
Sure it's possible.
Milan Milanovic wrote:
> Hi Dave,
> one question, is it possible that Acegi security remove my session variable,
> because it sometimes ask to login between actions ? But, I'm not sure for
> this.
> --
> Regards, Milan
> newton.dave wrote:
>>
>> --- On Thu, 7/31/08, Milan Mila
I am having a similar issue. I am using Ajax and I want to update the div
with an image but
it renders it in byte code.. since the div does not know that its an image.
I am not sure how to handle this either. I am thinking one way is to use the
ChartUtils and write an image on the filesystem and
Hi Dave,
no, I think that this is not an issue. I tried with Boolean.TRUE and it is
the same, but I earlier used new Boolean(true) and that worked.
--
Milan
newton.dave wrote:
>
> --- On Thu, 7/31/08, Milan Milanovic wrote:
>> (getSession().put("variable", new Boolean(true));
>
> Use Boolean
--- On Thu, 7/31/08, Milan Milanovic wrote:
> (getSession().put("variable", new Boolean(true));
Use Boolean.TRUE rather than instantiating a new object.
Note also that the Javadocs for Boolean state in big bold letters:
"Note: It is rarely appropriate to use this constructor. Unless a new instan
Hi Dave,
one question, is it possible that Acegi security remove my session variable,
because it sometimes ask to login between actions ? But, I'm not sure for
this.
--
Regards, Milan
newton.dave wrote:
>
> --- On Thu, 7/31/08, Milan Milanovic wrote:
>> I think that you didn't understand what
Dave thanks again for your help. I will watch these three videos.
Early I've used Google Web Toolkit for making complicated WEB UI
My brain will blow up If there would appear another version of docs for
struts2.
I've googled all around, but I didn't find fact about two invocations.
newton.dav
--- On Thu, 7/31/08, Milan Milanovic wrote:
> I think that you didn't understand what is my scenario.
I'm reasonably certain that I did.
> What is the problem ?
I still don't know, because you still didn't include the code I asked for. That
would have saved at least one posting (this one).
I d
> No one have any idea how to access session variable in jsp in this kind of
> simple scenario ?
You may access your session variable just like you would do without S2. There
is no difference. Then use either the s:test tag from struts or c:if from the
standard tag library.
Piero
Hi Laurie
Thanks for the reply. I finally figured it out. Removing the
visitorFields pattern fixed the problem.
I'm guessing my combination of annotations is incorrect. So I had
CLASS LEVEL
---
@Validation
Execute() method:
@Validations(visi
It seems that my session variable is deleted somehow when first action method
of the second Action class is called:
MyFirstActionClass -> show first.jsp -> user click on link ->
MyFirstActionClass.method where I set session variable
(getSession().put("variable", new Boolean(true)); -> show second
Hi Dave,
newton.dave wrote:
>
> --- On Thu, 7/31/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> No one have any idea how to access session variable in jsp
>> in this kind of simple scenario ?
>
> That's one explanation.
>
>>> So, scenario is like this:
>>> [...]
>
> I am unable to duplica
I don't use the Ajax theme or any of the Dojo integration but I assumed that
if theme=ajax on the submit button that it would be using Ajax.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: Laurie Harper <[EMAIL
since using struts 2.1.2 my actions was three times
executed when i submit a form with dojo and
Is this a bug, or a configuration error?
--
View this message in context:
http://www.nabble.com/My-Action-was-three-times-executed-tp18755679p18755679.html
Sent from the Struts - User mailing list
Jeromy Evans - Blue Sky Minds wrote:
>
>
> True. The Struts 2 in Action book goes into the next level detail:
>
> http://www.manning.com/dbrown/excerpt_contents.html
>
> but still doesn't cover exactly what you're trying to do. I know others
> works are in progress but not the details or sc
Did you substitute your custom provider in the xml declaration?
The default from struts-default.xml is:
so you will need to plug your implementation.
Peace,
Scott
ayavorskiy wrote:
>
> Hi,
> Is there a way to substitute default, bundle-based TextProvider in Struts
> 2 with a custom
Yes. I started my project with Tomcat in Netbeans and I have not set context.
The url look like:
http://localhost:8080/index.action
When I set namespace : namespace="/manager" the url look like:
http://localhost:8080/manager/indet.action
and the server return me HTTP Status 404.
Then I set cont
Hi guys,
I am wondering if it's possible to modify the url format to get an
url of file format.
Current pattern:
www.myfunnyurl.com/namespace/actionname.action?param1=value1¶m2=value2
I am looking for something like this:
www.myfunnyurl.com/namespace/actionname/value1/value2
Thanks,
--
Are you deliberately using modules (if so, I have no idea--I always found them
more trouble than they're worth)? If not you can just use a comma-separated
list.
Dave
--- On Thu, 7/31/08, angelwei <[EMAIL PROTECTED]> wrote:
> From: angelwei <[EMAIL PROTECTED]>
> Subject: Create multiple struts
--- On Thu, 7/31/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> No one have any idea how to access session variable in jsp
> in this kind of simple scenario ?
That's one explanation.
>> So, scenario is like this:
>> [...]
I am unable to duplicate the inability to test session variables for
no
Andy Law wrote:
There's nothing better than a good book though.
That's agreed!
What do you recommend? I have Kurniawan's "Struts 2 Design and Programming"
and Roughley's "Practical Apache Struts2 Web 2.0 projects" and "Starting
Struts 2". None of them go into any kind of detail about th
Hi,
I m using Struts2 (S2), not Struts1. In S2 there is a standard result
called 'stream' for downloading files. I m using that only.
Thanks any way.
Regards,
ManiKanta
Martin wrote:
URL url=new URL(http://www.fubar.com);
string encoded_url = httpServletReponse.encodeRedirectURL(url);
http
URL url=new URL(http://www.fubar.com);
string encoded_url = httpServletReponse.encodeRedirectURL(url);
httpServletResponse.sendRedirect(encoded_url);
Is there a reason why you would'nt want to use Struts prescribed method of
that is return a valid ActionForward via findMapping from
execute() meth
it does sound like a caching issue.. try this directive before your
<%
response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0); //prevents caching at the proxy
server
%>
?
Martin
- Origin
Another option is to read the documentation, which indicates that the
JavaScript function will be called twice (although it's better-stated in the
2.1 docs), once getting the id, and then again on success or error, with the
HTML result.
http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTa
No one have any idea how to access session variable in jsp in this kind of
simple scenario ?
--
Milan
Milan Milanovic wrote:
>
> So, scenario is like this:
>
> MyFirstAction.method1 [put session variable] -> show first.jsp -> user
> click on link in first.jsp page -> show second.jsp -> user c
Jeromy Evans - Blue Sky Minds wrote:
>
>
>> A short follow-up. Can you point me towards a description of where/when
>> the
>> Action object gets created and where Interceptors fit into the process.
>>
>
> The architect's guide is a good place to start.
>
> http://struts.apache.org/2.0.11.2/d
Thank you, Laurie!
But I'm going to switch to Struts 2 now so that issue is not so
important anymore.
Thanks anyway!
/Ylva
On Wed, Jul 30, 2008 at 11:11 PM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Ylva Degerfeldt wrote:
>>
>> Hi everyone,
>>
>> I'm using Struts 1.2 (bundled with NetBeans 5.5.
And I will explain why.
If I make any mistakes, please, tell me.
This is my struts2 tag:
Click me!
this is my JS code:
dojo.event.topic.subscribe("/afterDeleteLaw", _listeners, "test1");
var _listeners = {
test1: function(sourceId){
alert("sourceId");
}
};
ohh thank you thank you sooo much!
I'm about to go home now but I'll try it out first thing tomorrow and let
you all know how it went!
thanks again,
nicole
On Thu, Jul 31, 2008 at 4:57 PM, Markus Stauffer
<[EMAIL PROTECTED]>wrote:
> I had the exact same problem.
>
> Turns out it is a problem in
I had the exact same problem.
Turns out it is a problem in dojo 0.4.0 that is shipped with struts2.
I include my own build of dojo to solve the problem.
kind regards
--
Markus Stauffer
On 7/31/08, nauke. <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Was really not sure which mailing list to post to
HI,
How to configure struts 1.3 with eclipse 3.3.please help me regarding
this,it's little bit urgent.
I am using following software's
Jdk1.6
Eclipse3.3
Tomcat6.0
or is there any related stuff please post me.
Thanks in Advance
BHBA
--
View this message in context:
http://www.nabble.com/
47 matches
Mail list logo