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
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
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
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
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.
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
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,
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
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
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
--- 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
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,
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
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
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
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 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
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
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
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:
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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:
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
--- 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
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
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
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
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
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:
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
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
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
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
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
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
49 matches
Mail list logo