how to disable the back button in Struts 1.2.3 ?

2008-08-18 Thread Fernandes Celinio SGCF
Hi, I want to forbid the user to go back. This Javascript trick does not work in actions: script language=JavaScript window.history.forward(1); /script Is there a way to disable the back button in Struts ? Thanks = Ce message et

Re: how to disable the back button in Struts 1.2.3 ?

2008-08-18 Thread Nils-Helge Garli Hegvik
In case you missed the reply the first time you asked: http://www.nabble.com/how-to-disable-the-back-button-in-Struts-1.2.3---to18982816.html#a18989078 Nils-H On Mon, Aug 18, 2008 at 9:51 AM, Fernandes Celinio SGCF [EMAIL PROTECTED] wrote: Hi, I want to forbid the user to go back. This

problem with checkbox

2008-08-18 Thread Muralidhar Y
Hi , when I typed the code in my jsp like the following s:checkbox name=searchedPoP%{#stat.index} value=one / In the html file the following code is being shown. By default the attribute value is being true. Instead I want to give some other value. Kindly help. input type=checkbox

NullPointer Exception On IE7

2008-08-18 Thread Pranab
Hi Folks, We are facing NullPointer Exceptions in IE7, though such error are not coming in IE6, actually this error is coming at our client on IE7 only. We unable to recreate the same at our side even in IE7. Implementation-Version: 1.0 Specification-Title: Struts Framework

struts2 getInputForward()

2008-08-18 Thread wanginfo
how do i return to an actions input page/action? in struts1 there was the mapping.getInputForward() method, maybe i'm blind but i haven't found an equivalent in struts2. thanks in advance.

RE: struts2 getInputForward()

2008-08-18 Thread Umar Bilal
Use a forward tag in the Strut config action. Like forward name=success path=/whateverActionYouNeed.do/ Take care Bye -Original Message- From: wanginfo [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 3:01 PM To: Struts Mail List Subject: struts2 getInputForward() how do i

Re: struts2 getInputForward()

2008-08-18 Thread Nils-Helge Garli Hegvik
Maybe these resources can help: http://struts.apache.org/2.x/docs/bootstrap.html http://struts.apache.org/2.x/docs/selecting-results.html http://struts.apache.org/2.x/docs/result-configuration.html http://struts.apache.org/2.x/docs/result-types.html Nils-H On Mon, Aug 18, 2008 at 11:31 AM,

Re: Struts2 Application Structure

2008-08-18 Thread Stephan Schröder
Annother middle way would be to use the plain text result and no separate class attribute like this action name=intro interceptor-ref name=myAuth/ result type=plaintext/intro.html/result /action Advantages: -no own Action class (ActionSupport is used) -your static resources don't get

Re: [S2] 2.1.3GA?

2008-08-18 Thread Stephan Schröder
Is there an ETA on when 2.1.3 (or greater) will go GA? not that i know of (which doesn't say much) but the bugtracker (https://issues.apache.org/struts/secure/Dashboard.jspa) site says it's 87% finisched. /Stephan -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry

Re: NullPointer Exception On IE7

2008-08-18 Thread Dave Newton
Attachments aren't propagated to the mailing list. If you really think a screenshot is the best way to capture textual information you could post it to any of several free internet picture sites. More information would be... helpful. Things like the configuration of the action that's throwing

Re: problem with checkbox

2008-08-18 Thread Dave Newton
--- On Mon, 8/18/08, Muralidhar Y wrote: Hi , when I typed the code in my jsp like the following s:checkbox name=searchedPoP%{#stat.index} value=one / In the html file the following code is being shown. By default the attribute value is being true. Instead I want to give

Re: Object put in HttpSession can't be found by S2

2008-08-18 Thread Ylva Degerfeldt
Thank you all for your answers! #session.skillsFound worked (Not #skillsFound but that doesn't matter. One way to do it is enough.) Now I have a new problem, but I'll take that in another mail. /Ylva On Sun, Aug 17, 2008 at 4:48 PM, Stephan Schröder [EMAIL PROTECTED] wrote: --- On Sun,

Re: struts2 getInputForward()

2008-08-18 Thread Stephan Schröder
look for Redirect (Action) Result. /Stephan Maybe these resources can help: http://struts.apache.org/2.x/docs/bootstrap.html http://struts.apache.org/2.x/docs/selecting-results.html http://struts.apache.org/2.x/docs/result-configuration.html

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
MyAshok wrote: I do have the same issue. on click of submit, the loadingtext is displaying but the result in a new page as i am redirect to a action. Any solutions? please asap. action name=activateSubscriber class=subscriberAction method=activateSubscriber

RE: problem with checkbox

2008-08-18 Thread Muralidhar Y
Thank you. Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536.7486) India Main: +91 9949495511 India Fax: +91 9949495522 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this e-mail

Re: Re: NullPointer Exception On IE7

2008-08-18 Thread Pranab
Thanks Dave, if this violates the mailing list policy then I'm sorry for that. But the amazing thing is that I'm not getting any sort of error in log with descriptive information. The application is working very fine at our end, also for most of the users only few people are getting NullPointer

Hi problem no configration found.

2008-08-18 Thread Muralidhar Y
Hi friends I am facing the following error. I hope the execute method is not working. This is working fine few minutes ago. Suddenly started this error. No configuration found for the specified action: 'executePoPSearch.action' in namespace: '/p'. Form action defaulting to 'action' attribute's

Re: Re: NullPointer Exception On IE7

2008-08-18 Thread Dave Newton
So... we still have no idea what exception is being thrown. That makes it really hard to even begin. Dave --- On Mon, 8/18/08, Pranab [EMAIL PROTECTED] wrote: From: Pranab [EMAIL PROTECTED] Subject: Re: Re: NullPointer Exception On IE7 To: Struts Users Mailing List user@struts.apache.org

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread MyAshok
Thanks Evans, In IE, instead of loading text it shows [object error]. But it redirects to a new page. In Firefox, neither showing loading text nor object error. It redirects to a new page. s:submit theme=ajax value=Activate id=activate showLoadingText=false targets=targetid

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Dave Newton
I'd be immediately suspicious of your manual form submission; as a guess I'd say that bypasses the normal form submission process, making it a non-XHR request. Off-the-cuff guess, though. Dave --- On Mon, 8/18/08, MyAshok [EMAIL PROTECTED] wrote: From: MyAshok [EMAIL PROTECTED] Subject:

Re: Struts loses action configuration

2008-08-18 Thread tjstavenger
My application makes connections to our database through data sources configured in WebLogic, and I'm not seeing any logs from WebLogic saying that it has lost the connection... But I'll certainly keep an eye out for it. As for #1, which connection are you referring to. The database or something

Re: NullPointer Exception On IE7

2008-08-18 Thread Jeromy Evans
Dave Newton wrote: So... we still have no idea what exception is being thrown. That makes it really hard to even begin. Dave I think MemberId is null: memberID = memberID.substring(memberID.lastIndexOf('\\') + 1); Or pageRequested is null

RE: NullPointer Exception On IE7

2008-08-18 Thread Martin Gainty
did you verify your jsp compiler compiles the page?Please display/attach any/all pages causing the error and we'll reproduce here error.jsp projectSearch.jsp projectSearchResults.jsp also please highlight any version and IE specific ActiveX controlsMartin

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
Dave Newton wrote: I'd be immediately suspicious of your manual form submission; as a guess I'd say that bypasses the normal form submission process, making it a non-XHR request. Off-the-cuff guess, though. Dave Absolutely positive that's it. This line:

Re: [S2] 2.1.3GA?

2008-08-18 Thread Musachy Barroso
I don't think any of the remaining bugs are big deal, and we should go ahead with the build, but as the fine print reads, it depends on the time of the volunteers, and we don't have many of those for building/release management. On 8/18/08, Stephan Schröder [EMAIL PROTECTED] wrote: Is there an

Static Content Loading in Struts 2

2008-08-18 Thread Ramez Hassan
Hello Folks, I am trying to implement a theme enabled web application and the architecture is developed to upload themes to the application using jar or zip files with a certain directory structure. The problem is I don't know how to enable such a feature or how to extend struts control

Problem with no configaration found

2008-08-18 Thread Muralidhar Y
Hi friends I am getting the following error. I think it is a known issue. Kindly help me in this. No configuration found for the specified action: 'executePoPSearch.action' in namespace: '/p'. Form action defaulting to 'action' attribute's literal value. Warm regards, Muralidhar Y [EMAIL

Re: Struts2 Portlet - pre/post render, pre/post action hooks?

2008-08-18 Thread ossieguy
Torsten, did you ever solve this? We're having the same problem. I think it's worth mentioning that the action phase and render phase are distinct concepts that come directly from the Portlet API, with or without Struts. So Torsten's original confusion is ours as well - Struts2 portlet support

Re: Problem with no configaration found

2008-08-18 Thread Dave Newton
This is a duplication of your previous post, no? As it seems there's a form involved perhaps posting the JSP would be a good idea. --- On Mon, 8/18/08, Muralidhar Y [EMAIL PROTECTED] wrote: From: Muralidhar Y [EMAIL PROTECTED] Subject: Problem with no configaration found To: 'Struts Users

Re: Static Content Loading in Struts 2

2008-08-18 Thread Musachy Barroso
If you are building from trunk, To include static resources in your plugins add them under /static in your jar. And include them in your page using /static as the path, like in the following example: Assuming /static/main.css is inside a plugin jar, to add it to the page: @s.url

Re: Struts2 Portlet - pre/post render, pre/post action hooks?

2008-08-18 Thread Nils-Helge Garli Hegvik
I think it's worth mentioning that the action phase and render phase are distinct concepts that come directly from the Portlet API, with or without Struts. So Torsten's original confusion is ours as well - Struts2 portlet support doesn't seem to separate the two, but rather lump them

RE: Static Content Loading in Struts 2

2008-08-18 Thread Ramez Hassan
Thanks for the reply, This is a lot helpful, and I also found that DispatcherFilter takes an init-param called packages to include in static resources loading if and only if StrutsConstants.STRUTS_SERVE_STATIC_BROWSER_CACHE property is set to true. Thanx again, Ramez -Original

RE: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Martin Gainty
you can send your action to javascript function and use dojo to talk to the XMLHttpRequest object parse the XML response and then set innerHtml of the div tag to the parsed_response script language=JavaScript !-- Begin function doit() { var xmlhttp=dojo.hostenv.getXmlhttpObject() var

Re: Struts loses action configuration

2008-08-18 Thread Dustin Pearce
Are you seeing any thing in the log that would suggest that the app was reloaded? Are there any exceptions before the missing configuration? When you first start it up you can address this action fine? What does the action do/use? How long before the action starts thowing the error? Sent

Re: Object put in HttpSession can't be found by S2

2008-08-18 Thread Dustin Pearce
Isn't OGNL supposed to search the value stack, then request, then session for a property value? Or his was a s:if test, so it is only the value stack? Sent from my iPhone On Aug 18, 2008, at 4:02 AM, Ylva Degerfeldt [EMAIL PROTECTED] wrote: Thank you all for your answers! #session.skillsFound

Re: Object put in HttpSession can't be found by S2

2008-08-18 Thread Dave Newton
If it's prefixed with a # it will look for a context object with that name, AFAIK. And since it doesn't work with the #... Dave --- On Mon, 8/18/08, Dustin Pearce [EMAIL PROTECTED] wrote: From: Dustin Pearce [EMAIL PROTECTED] Subject: Re: Object put in HttpSession can't be found by S2 To:

RE: Object put in HttpSession can't be found by S2

2008-08-18 Thread Martin Gainty
yes OGNL will 'hunt' for Page,Request,Session andd then application for #attr.VariableName http://struts.apache.org/2.x/docs/accessing-application-session-request-objects.html are you seeing otherwise? thx, Martin __ Disclaimer and confidentiality

RE: Object put in HttpSession can't be found by S2

2008-08-18 Thread Dave Newton
--- On Mon, 8/18/08, Martin Gainty wrote: yes OGNL will 'hunt' for Page,Request,Session andd then application for #attr.VariableName http://struts.apache.org/2.x/docs/accessing-application-session-request-objects.html are you seeing otherwise? That's only if you use #attr, which wasn't

Struts 2 and Crystal Reports XI

2008-08-18 Thread James Neff
I am trying to find a good example of how to use Crystal Reports XI with Struts 2. I found this: http://www.jroller.com/njain/entry/crystal_reports_plus_struts But the code does not work. I need to see the struts.xml example and the author doesn't provide a list of required jar's. I see

Re: Object put in HttpSession can't be found by S2

2008-08-18 Thread Dustin Pearce
Thanks Dave. So without the # it only hunts for wabbits in the value stack? -D On Aug 18, 2008, at 8:51 AM, Dave Newton [EMAIL PROTECTED] wrote: --- On Mon, 8/18/08, Martin Gainty wrote: yes OGNL will 'hunt' for Page,Request,Session andd then application for #attr.VariableName

Re: struts-core-2.0.11.2 in two places on the server, causing exceptions

2008-08-18 Thread Edwin Quita
what we did with our deployment was to have the class loading setup to load on a per module basis. we have two struts2 portlet deployed with liferay5.1 on WAS. we had a modules first and parent last setting for class loading. you should check on your EAR deployment descriptor how class loading

Re: struts-core-2.0.11.2 in two places on the server, causing exceptions

2008-08-18 Thread Edwin Quita
here's the snippet for our deployment: ?xml version=1.0 encoding=UTF-8? appdeployment:Deployment xmi:version=2.0 xmlns:xmi=http://www.omg.org/XMI; xmlns:appdeployment=http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi; xmi:id=Deployment_1218223750906 deployedObject

Re: Select tag questions

2008-08-18 Thread Edwin Quita
there is a struts2-showcase-2.0.11.1.war included in the struts2 download bundle... you can find a reference about the select tag in the UI Tags section http://localhost:8010/struts2-showcase-2.0.11.1/tags/ui/ HTH, /kits On Fri, Aug 15, 2008 at 8:12 AM, David Barron [EMAIL PROTECTED] wrote:

Re: Struts 2 and Crystal Reports XI

2008-08-18 Thread James Neff
James Neff wrote: I am trying to find a good example of how to use Crystal Reports XI with Struts 2. I found this: http://www.jroller.com/njain/entry/crystal_reports_plus_struts But the code does not work. I need to see the struts.xml example and the author doesn't provide a list of

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
Martin Gainty wrote: var xmlhttp=dojo.hostenv.getXmlhttpObject() var response= xmlhttp.responseXML; var parsed_response=SomeXMLParser(response); document.getElementByTagId(div).innerHtml = parsed_response; -- /script yes/no? Martin That would work, but dojo already includes code to

Re: Could not find property [struts.valueStack] using struts 2.1.2

2008-08-18 Thread David N. Arnold
You're not the only one. I can't remember if I was running trunk or 2.1.2, but I have seen the same messages. On Thu, Aug 14, 2008 at 9:47 AM, Stephan Schröder [EMAIL PROTECTED] wrote: hi, this is my first post to the mailing list so i hope this is the right place/email address. I wrote a

Re: Could not find property [struts.valueStack] using struts 2.1.2

2008-08-18 Thread Jeromy Evans
David N. Arnold wrote: You're not the only one. I can't remember if I was running trunk or 2.1.2, but I have seen the same messages. On Thu, Aug 14, 2008 at 9:47 AM, Stephan Schröder [EMAIL PROTECTED] wrote: 14.08.2008 15:12:34 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn

RE: Problem with no configaration found

2008-08-18 Thread Muralidhar Y
Hi Dave, the following is the jsp page. %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% %@ taglib prefix=s uri=/struts-tags% !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head

Re: Problem with no configaration found

2008-08-18 Thread Jeromy Evans
Muralidhar Y wrote: s:form action=executePoPSearch.action It's an (annoying) warning caused by the line above. It means it searched for an action in the configuration called executePoPSearch.action but couldn't find it, so it's going to use the literal value