You don't invoke the javascript from your action. You probably want to
use javascript to post the data, and then display the popup when you
have received a response from the server. Google for 'ajax form' and
'javascript popup', and you will find many examples.
Nils-H
On Thu, Feb 5, 2009 at 7:51
Hi,
How to invoke the javaScript from execute method?
And i am not clear with the reply u send.
Srikanth
Srikanth Goud wrote:
>
> Hi,
> I have a requirement where after saving data in to database , show a
> popup in the same page propmting Continue or ok.
>
> For this i am planning
Hi,
Try to use Ajax? or use the frame with no length, when the saving is
over, refresh the hide frame and invoke the popup script. Also, you can
refresh the current frame which you just committed, to popup the confirm.
After user confirm it, start a new request to do the other things
remaine
Hi,
I have a requirement where after saving data in to database , show a popup
in the same page propmting Continue or ok.
For this i am planning to write a javascript for popUp.
But how to invoke the popup from the execute method?
And how to write the JavaScript in the Bean?
Or is there any
On Wednesday 04 February 2009 23:05:06 Martin Gainty wrote:
> Dave and Crew
>
> Where is the upside down question-mark key???
>
It's ALT-F4
:)
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/
Dave and Crew
Where is the upside down question-mark key???
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Se
Hi,
Its good to hear... Is there any possibility of getting video of the session
or the presentations.. this will be useful for the developers who are not
able to come to the conference, at least for the developers in other
countries...
ManiKanta
Hi,
thanks for your reply.
Well... I have to iterate through a collection accesible in a struts2
Action. I can make that object visible to the page/request scope and then
access it from JSTL ; in fact I am doing that for dynamic images
as strugs2 has no IMG tag to use OGNL directly. Very painful w
Wick, Dan wrote:
struts2-pell-multipart-plugin-2.0.12.jar
Are you actually using Pell? I didn't see the library there, and it
could cause a startup issue (can't check at the moment).
Dave
-
To unsubscribe, e-mail: user-uns
Ignacio de Córdoba wrote:
Hi there,
I've checked struts2 docs and this forum and have found no inside syntax for
s:iterator tag to do:
Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid
counting and using indexed property to access an iterator. The last example
in docs doe
Hi there,
I am having a problem with encoding and (and other tags). As
default it encodes non ASCII chars and I get:
categoría y tecnología
where I should get accented chars:
categoría y tecnología
I've seen adding encoding="false" to the s:property tag solves this. Can I
configure this behav
+1 Spring Security. Everything else is for wimps.
Wes Wannemacher wrote:
>
> On Wednesday 04 February 2009 05:56:24 alee amin wrote:
>> I browsed through struts official site to check for any plugin available
>> or
>> security mechanism to authenticate the user. but i could not find one.
>> c
Take a look at this example
what is displayed when property is displayed in jsp?
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a co
The array allows a variety of input formats but then outputs the same format
for all dates. I use the converter to give a default format for all dates
or calendars (date/times) in the app.
I don't think that s:date will trigger type conversion. I think only
s:property will do that and it will
On Wednesday 04 February 2009 05:56:24 alee amin wrote:
> I browsed through struts official site to check for any plugin available or
> security mechanism to authenticate the user. but i could not find one. can
> anyone guide me what are teh ways to implement the security constraints
> (user securi
Hi,
I'm trying to use a List as a parameter to a s:url tag. Ideally I
would like to create a URL in the form of:
myAction.action?theList=first&theList=second&theList=third
I've tried writing my JSP in a few different ways without any success.
First, I tried using a param tag directly inside the
Good afternoon,
A question about getText in jsp file. I'd like to get value from
property file.
in package.properties,
edit.action=Edit information
in jsp,
...
The result always shows "edit.action" as the button value, but not "Edit
information". Could someone tell me where I di
I hate it when I do this kind of thing. My input result was pointing to
the wrong result. Me <-- My own worst enemy.
-Original Message-
From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov]
Sent: Wednesday, February 04, 2009 11:13 AM
To: Struts Users Mailing List
Subject: Why
Lets take one step back, are you adding this param in an interceptor
or in your action?
musachy
On Wed, Feb 4, 2009 at 1:49 PM, Adam Hardy
wrote:
> Now that 2.1.6 won't let me add to the resultConfig to add my redirect
> httpParameters myself, I figured I'd have to obtain the actual Result
> obj
Hello. I'm Chad Davis, one of the authors of Struts 2 in Action.
I'll be teaching a one day training on Struts 2 Ajax at the ApacheCon
Europe ( http://eu.apachecon.com/c/aceu2009/ ). This course will work
for Struts 2 newbies as well as Struts 2 developers wanting to see how
the framework plays
params interceptor doesn't like parameters with spaces
in the name (this was fixed in xwork already), to fix it, set
"acceptedParamNames" to "[[\p{Graph}\s]&&[^,#:=]]*" in your param
interceptor.
Right, I am using displayTag(displaytag-1.2.jar). The parameter looks like:
https://info/ProcessBro
Now that 2.1.6 won't let me add to the resultConfig to add my redirect
httpParameters myself, I figured I'd have to obtain the actual Result object.
The way that DefaultActionInvocation is programmed to do this though makes it
impossible, despite the Javadocs explicitly stating otherwise e.g.
Thanks for the class. I have a few questions about it. What exactly is the
point of the array of parse patterns? It seems like you only use the first
one. It would be great if there was a way for me to specify a parse pattern
as the conversion is happening because in different situations I wan
I found in the OGNL Language reference that the a static field of a class
has to be referenced using the syntax @fqclassn...@field where FQClassName
is the fully qualified name of the target class. It is working for any
normal class. But I failed to access the fields of an inner class using the
s
Yeah, I've created a LoginInterceptor to detect a session value if someone's
logged in. The main reason I did it was to understand the concept.
I will look into the prepare stuff, and just handle setting it myself. What I
did to make it work was change the Provider to have a lockDoor(doorId) m
Technically you don't actually have to be that /smart/ to work it out, you just
need to read the right documentation :)
I only do type conversion and instantiation of my model objects in one
particular way and haven't a good overview of the other ways, such as via a
prepare method.
It would
Hello all,
I must be missing something subtle about my configuration. I'm using
Struts 2.0.11 and want to use annotation based validation, but can't
seem to get it working.
My action class has an update method as such:
@Validation
public class ArtifactAction extends BaseAction implements
> Libs look ok, that is quite weird, something is messed up or
> duplicated(jars) in the server.
I'm not seeing anything obvious:
/tomcat/common/lib has these:
commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
naming-factory-dbcp.jar
naming-factory.jar
All I meant was that the value="[0]" evaluates to a Door object, which
implements an IDoor, which I want to use for the setter method.
The documentation for type conversions says:
"The framework cannot instantiate an object if it can't determine an
appropriate implementation. It recognizes well
Libs look ok, that is quite weird, something is messed up or
duplicated(jars) in the server.
musachy
On Wed, Feb 4, 2009 at 9:41 AM, Wick, Dan wrote:
>> $ unzip -l your_war_name.war | grep lib
>>
>> and post the output.
>
> Sorry about that. I've been pulling out jars to see if they were
> unuse
Hi Mike,
I can't quite figure out what you're doing wrong. Don't know what you mean
exactly about the "iterator value" - but I guess the problem lies with the
config for your type conversions.
Do you have an xwork-conversions or an action-conversion.properties? That's
where you tell the xwor
From the ActionConfig.Builder#build() javadoc:
"The builder for this object. An instance of this object is the only way to
construct a new instance. The purpose is to enforce the immutability of the
object. The methods are structured in a way to support chaining. After
setting any values yo
Here's my delima:
I have an interface to represent a Door, called IDoor
I have an interface to represent a DoorProvider, called IDoorProvider.
I use Spring to inject the DoorProvider implementation for the particular
application to get lists of doors.
I have an UnlockDoorAction that will unlock
Ah, yes. I was thinking that the longest url match would win, but a
filter of course has higher priority than the servlet . So either do
as Andy suggested, or change the url mapping of the filter dispatcher
to something more specific, depending on your needs.
Nils-H
On Wed, Feb 4, 2009 at 4:03 PM
And of course the magic of sending my problem to the mailing list let me
figure out the solution on my own:
I should have been using ServletActionRedirectResult rather than
ServletRedirectResult.
jk
On Wed, Feb 4, 2009 at 10:03 AM, Jim Kiley wrote:
> I'm feeling dim this morning and I hope you
That should work, it will complain in the logs that it wasn't able to
bind that parameter to the action, but you can just ignore it, or
configure the params interceptor to ignore it.
musachy
On Wed, Feb 4, 2009 at 9:37 AM, Emi Lu wrote:
> Good morning Musachy,
>
>> params interceptor doesn't lik
I'm prevented from adding my redirect parameter programmatically with 2.1.6!
Look:
Map resultsMap =
ServletActionContext.getActionContext(getRequest())
.getActionInvocation().getProxy().getConfig().getResults();
ResultConfig config = resultsMap.get(resultName);
Map params = config.ge
Hi there,
I've checked struts2 docs and this forum and have found no inside syntax for
s:iterator tag to do:
Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid
counting and using indexed property to access an iterator. The last example
in docs doesnt seem to work if I repla
I ran into the same thing as the OP. I think the FilterDispatcher is catching
all requests to the servlet since it uses a url-mapping of /*.
The Struts in Action book, from what I remember, suggests having an Action
receive the request and then dispatch to a servlet.
If anyone has direc
hello,
i wanna call a javacsript function only if a property in th form is equal to
a value
so , in th form, i have these properties , ajustContrat, currentPeriod
any one know how can i access the currentPeriod inside the
nested:iterate,i.e: how get a property in the parent level ?
here is the ne
I'm feeling dim this morning and I hope you folks can help me out.
To simplify, I have two classes:
com.company.view.cust.my.order.FieldRepAction
com.company.view.cust.my.rep.ChooseCustomerAction
FieldRepAction has the following annotation:
@Result(value = "chooseCustomer!input.action",
You can add this to your action, locale needs to come from user,
public String getCurrency(float amount) {
Format currencyformat = NumberFormat.getCurrencyInstance(locale);
Return currencyformat.format(amount);
}
Paolo Niccolò Giubelli-2 wrote:
>
> There's no method in the Action cla
> $ unzip -l your_war_name.war | grep lib
>
> and post the output.
Sorry about that. I've been pulling out jars to see if they were
unused/conflicting. Below is the complete contents of the WEB-INF/lib.
activation.jar
antlr-2.7.2.jar
commons-beanutils-1.6.jar
commons-chain-1.1.jar
commons-colle
Good morning Musachy,
params interceptor doesn't like parameters with spaces
in the name (this was fixed in xwork already), to fix it, set
"acceptedParamNames" to "[[\p{Graph}\s]&&[^,#:=]]*" in your param
interceptor.
Right, I am using displayTag(displaytag-1.2.jar). The parameter looks like:
there is no error in logs. and yes .. invoking the servlet calls the struts
action. I don't think that servlet configuration has anything to do, since i
created it using eclipse wizard.
..alee
http://techboard.wordpress.com
On Wed, Feb 4, 2009 at 5:01 PM, Nils-Helge Garli Hegvik wrote:
> I'm n
Hi experts,
I am using struts 2 framework, the problem is i want to get a auto completer
id(1,2,3,4) instead of getting value (apple,banana.).
The code works fine, it gets only (apple,banna..) but i want to get
the id(1,2..)
function getFruits(fruits){
alert(fruits);
}
I'm not sure I follow you. Are you saying that when you try to invoke
the servlet, the struts action is invoked instead? Or is nothing
invoked? And again, have you checked your logs for errors or any
traces of what's happening? Maybe your servlet is not correctly
configured so it's not started?
Ni
Hi all,
i am new to struts2.. am struggling to get the result for populating items
from DB.
my requirement is to populate country, which is stored in DB, using struts2
and when u choose a particular country, another select box populate its
cities, which also stored in DB..
at first i tried, fetc
I browsed through struts official site to check for any plugin available or
security mechanism to authenticate the user. but i could not find one. can
anyone guide me what are teh ways to implement the security constraints
(user security) on application.
..alee
http://techboard.wordpress.com
Hi elyes,
You can do it with nested:equal, or else with nested:define, two different ways.
Best greetings,
Paweł Wielgus.
2009/2/4 elyes sallem :
> Hello,
> i have a form, in which a i wanna set a readonly property of a textarea,
> depending on contratAjustEditMode's value (a member of ajustContr
Hello,
i have a form, in which a i wanna set a readonly property of a textarea,
depending on contratAjustEditMode's value (a member of ajustContratModifie)
here is a part of the form , like this the test (contratAjustEditMode==0)
doesn't work, it can not recognize contratAjustEditMode:
Rega
Hi
I've got a ModelDriven action. The model is an object, say 'Parent'
which contains some simple properties, but also a List of 'Children'
objects.
Rendering the list of Children in a form is easy enough, but I was
wondering if there is a nice way to *set* the list back into the model
when the u
This is the entry that i made in web.xml for the servlet
>
>
>
>
rawData
rawData
>
com.e2e.servlet.rawData
>
>
rawData
>
/data/rawData
>
even if i try to call the servlet directly (direct writing the url in the
address bar) there is no call going to servlet, rather the struts action is
b
>
> What should i do ?
You could start by providing some more information. How do call the
servlet, and how is it configured? Do you get any errors in your log
files? Can you invoke the servlet by typing it's url in the browser?
Nils-H
On Mon, Feb 2, 2009 at 4:18 PM, Musachy Barroso wrote:
> This is a known problem on xwork 2.1.2:
>
> http://jira.opensymphony.com/browse/XW-670
>
> it is fixed in xwork trunk
>
AFAIS, struts 2.0 uses xwork 2.0
How will it help me that it will be fixed in xwork 2.1?
---
hi,
I am having a struts application but due to some reason i want to create a
servlet in this application (which would return a json string) that is going
to be used in JSP (that would map in struts action page url) .. ..
I am unable to create the servlet and call it from that web. I have created
56 matches
Mail list logo