Hi,
My requirement is fieldError should appear below/above respective fields.
for that i written the following code:-
first
with this
Hi all,
I have a form that I am submitting, the form returns the input result
which points to a jsp that contains an interior s:action tag that
loads some data for display into its own jsp rendered inside (menu). I
have noticed that when the form fails and the input result is called,
the s:action n
we can be of more assistance if you send us the .project
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 Sende
Hello Ralf,
sorry for not replying earlier. I have to check the list more frequently.
Ralf Fischer schrieb:
Hint: storing *everything* into the session might be unwise in some
circumstances, as all resources on a server are limited, even cheap memory.
everything == "everything that is necess
You can use the method attribute in the s:submit button, combined with
a method in your action. You could use the different method invocation
as an implicit parameter.
You may need to use the action wildcard feature in struts.xml
Si quieres ser más positivo, pierde un electrón
Miguel Ruiz Velasco
Since I have moved to struts 2, It has been somehow hard for me to forgo the
simplicity offered by combining struts 1.2+ and Apache common chains. In a
number of projects [medium sized to large] I managed to get away only with ONE
single action class for the whole project. Just consider the foll
The jars that end up in the war file on the server match exactly what's
in my "build path" jars in eclipse, less servlet.jar & jre.
I use ant to build it, so there are excludes for the jre, servlet.jar,
etc.
--Dan
> -Original Message-
> From: Lukasz Lenart [mailto:lukasz.len...@googlemai
I have a CRUD action and jsp page for an entity, this entity has a list of
attributes. I display these attributes in a table one per row.
What I would like to do is have a button on
each row of the table so the user can click on the button to remove the
attribute.
In order to make this work I w
2009/1/30 Wick, Dan :
> I've developed an application using struts2 (2.0.12 to be exact). It
> works on my local windows box, on Tomcat via Eclipse, but not as a war
> when I put it up on a server. I get the following stack, which I can't
> see anything wrong...although I'm sure it's something I
You've un-zipped the war to confirm the libs are actually in there?
Dave
Wick, Dan wrote:
All,
I've developed an application using struts2 (2.0.12 to be exact). It
works on my local windows box, on Tomcat via Eclipse, but not as a war
when I put it up on a server. I get the following stack
All,
I've developed an application using struts2 (2.0.12 to be exact). It
works on my local windows box, on Tomcat via Eclipse, but not as a war
when I put it up on a server. I get the following stack, which I can't
see anything wrong...although I'm sure it's something I did!
**
http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk
Scott, you should have been able to find that ;)
-Wes
On Fri, Jan 30, 2009 at 12:22 PM, Musachy Barroso wrote:
> This should(might) also help:
> http://struts.apache.org/2.x/docs/struts-maven-archetypes.html
>
> musachy
>
> On
I forgot to mention that we're setting the test value in struts.xml
initially (in the first action in the chain). That's the value that
doesn't get modified in this test case.
-B
Musachy Barroso
Because Showcase is so packed with goodies something else may be causing
chaining to actually work. If you try that test case standalone (after
modifying the POM XML for 2.1.6) chaining doesn't work (the value stays the
initial value).
-B
You need to implement that in action.
-Original Message-
From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it]
Sent: Friday, January 30, 2009 2:26 PM
To: Struts Users Mailing List
Subject: Re: textbox showing currency default value
sorry... I meant .. I'm really tired.
sorry... I meant .. I'm really tired...:D
Paolo Niccolò Giubelli ha scritto:
Sorry, I don't understand from where I should return what.
I have a Form with a float m_price = 0.0 field (wit accessors methods).
In the jsp I have
I need to se a textbox like this
||
| 0,00
Hello,
please, can you show me on this example how to convert tiles from struts1 to
struts2?
This example defines localized page title attribute passed to template in
struts1:
<%
String docTitle = messages.getMessage(locale, "page.title");
%>
Thank you.
Tom
Sorry, I don't understand from where I should return what.
I have a Form with a float m_price = 0.0 field (wit accessors methods).
In the jsp I have
I need to se a textbox like this
||
| 0,00 |
||
Thanks anyway.
Zheng, Qiang ha scritto:
You can try load the locale of this user and
Format currencyformat = NumberFormat.getCurrencyInstance(locale);
Return currencyformat.format(amount);
-Original Message-
From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it]
Sent: Friday, January 30, 2009 1:54 PM
To: Stru
Hi! I need to display a textbox, where the user should write a money
value in eur. I need the textbox to display the default value in the
correct currency mode, like 0,00 (comma separated decimals) and not 0.0.
Of course, the textbox is "connected" with a float field. Now I get 0.0
as the defaul
stanlick wrote:
I am SO DONE with mucking around in dependencies that I am about to scream!
Until recently, I thought "real developers" were in control of jars and the
classpath, but as another year passes me by, I'm starting to rethink this
whole deal. I installed the Maven 2 plug-in for Eclip
As Wes suggested get the blank application from the demo zip:
http://struts.apache.org/download.cgi#struts216
also, the instructions on what needs to be done to get the samples of
Struts 2 in Action running are in the README.txt file inside the
download.
musachy
On Fri, Jan 30, 2009 at 12:05 PM
This should(might) also help:
http://struts.apache.org/2.x/docs/struts-maven-archetypes.html
musachy
On Fri, Jan 30, 2009 at 12:20 PM, Musachy Barroso wrote:
> Wes has a bunch of examples that you can use as templates. I am trying
> to find the link, but failing so far. Wes, are you out there?
>
Wes has a bunch of examples that you can use as templates. I am trying
to find the link, but failing so far. Wes, are you out there?
musachy
On Fri, Jan 30, 2009 at 12:14 PM, Edwin Quita wrote:
> hi Scott,
>
> here's the first project i created using struts2 and Maven... just
> adjust the versi
Sapmle application that is available for download for struts 2 in action, is
really painful to install. There is no proper instruction in the book on how
to install it and there are many issues when we try to do it ourself.
Sometimes I feel so frustrated about buying this book...
SanJ.SANJAY w
Greetings --
I am SO DONE with mucking around in dependencies that I am about to scream!
Until recently, I thought "real developers" were in control of jars and the
classpath, but as another year passes me by, I'm starting to rethink this
whole deal. I installed the Maven 2 plug-in for Eclipse
Ok,
I downloaded a sample application for Sruts 2 from manning .com for
StrutsInAction. I still get the same error on the web server. When open
"http://localhost:8080/SampleApplication/Menu.action";
for a moment the page says ...One moment please.. and then dumps the error.
HTTP Status 500
Have you tried using reflection to dump all the interfaces (and
corresponding classloaders) the action implements? Obviously, this
shouldn't be possible under normal circumstances...
Or if you're using maven 2, try running the app with the maven jetty
plugin (or if you're not, deploy to a differen
I'd love to zip up the whole project and stick it somewhere but it's
pretty dependent on the environment I'm running it in (LDAP server for
auth, etc etc). I could probably produce a neutered version of it
that'll run anywhere, but it'll take a while as it's quite big..
As for classloaders,
If you have a small project you could host somewhere that might help, or
just zip up all the source. Clearly this can't happen (ignoring for the
moment that it is), but the framework obviously relies on this working
so I'd have to assume something funky is going on.
Dave
Andy Sykes wrote:
I d
Use theme="simple" on the tags to they don't generate the table markup,
and put them in table markup of your own.
Dave
Seshagiri V wrote:
Hellow All,
I have a page with two forms on it. I want the respective submit buttons of
each form to appear next to each other, inline, so I set
styl
I think Musachy means with the ng filter instead of the old
FilterDispatcher.
Dave
Markus Doring wrote:
Not sure what the new ones are, but my Maven dependency uses version 2.1.6 of
the struts2 sitemesh plugin:
org.apache.struts
struts2-sitemesh-plugin
${struts.ve
As I said on JavaRanch you'll need to post at least the configs.
Dave
J D wrote:
I need some help figuring out where I need to search for the problem below.
I have a jsp input.jsp which calls display.jsp on click of submit.
display.jsp can also be called directly using search.
A URL in displa
I am putting my money on different class loaders. That is easy to
test, get the class loader from your action, and the class loader from
the current class (interceptor or whatever) and see if their object id
is the same.
musachy
On Fri, Jan 30, 2009 at 8:13 AM, Andy Sykes wrote:
> I dug around i
Hi. First of all: Thx u !
I thought about your advice this week but wanted to know whether there are
solutions without javascript, guess I found the simplest method, although I
don't know whether it's common practise with struts.
have u ever tried to do it like this : ?
I'm not at work, n
The new ones are:
struts-prepare
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
struts-execute
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter
look at the showcase web.xml for examples. I am not saying it will fix
your p
search for JSONP in the plugin documentation.
musachy
On Fri, Jan 30, 2009 at 5:25 AM, alee amin
wrote:
> I am using JSON plugin in Struts 2 for writing a resoponse. the plugin is
> generating the response perfectly. however, this is Google Visulization API
> demand that there should be a string
I dug around in the ServletConfig interceptor and modified my code to
mimic how it handles this situation - retrieve the Action as an Object
type, test for instanceof , the cast to it. For some
reason, that still does not work.
As a test case, I'm mimicking the code exactly. My action exte
Hi all,
I have a team form and a member form, team contains members.
In my members jsp, I want to show checkboxes with the possible members
and I want to show the already members as checked checkbox.
I am doing something wrong , because its not working… Can someone help me
?
No, I don't 'need' the cast to Action. However, if I cast what I get
back from ActionInvocation.getAction() straight to SessionAware or
similar, it still chucks a CCE.
I'm using Netbeans, and I'm pretty sure there's no crazy stuff going
on with the classloader - all my struts jars are in my
Hi,
We had the same problem with a checkboxlist. Actually, a html checkbox
does not send a data if it's unchecked. In a simple form, no data means
false so we don't see anything. In a list, that means there are only the
number of true which correspond to the number of checkbox checked.
In orde
I'm pretty sure that providing some relevant code snippets would
improve your odds of getting help...
Nils-H
On Fri, Jan 30, 2009 at 1:00 PM, Seshagiri V wrote:
> Hellow All,
>
>
>
> I have a page with two forms on it. I want the respective submit buttons of
> each form to appear next to each o
Do you really need the first cast to Action? Anyway, could it be that
you're having conflicting struts and/or application jars several
places in your classloader hierarchy? That could explain certain
"should never happen" incidents...
Nils-H
On Fri, Jan 30, 2009 at 12:39 PM, Andy Sykes wrote:
>
Hellow All,
I have a page with two forms on it. I want the respective submit buttons of
each form to appear next to each other, inline, so I set
style="display: inline;" on each form but it is not working.
Please help me.
Thank you,
Seshagiri V
seshagi...@kensium.com.
Hi Wes,
No, I'm not using Spring at all.
The Action never passes the test of being an instanceof Parseable. If
I make the action only implement SessionAware, and test if my action
is an instanceof SessionAware, the test is never passed!
Colour me confused!
Andy.
On 30 Jan 2009, at 00:55
On Fri, Jan 30, 2009 at 11:33 AM, Parvat Singh Ranawat
wrote:
> Hi,
> Can I stop the calling of action on click of refresh button as on this
> action it will generate a report at some specified location.
> So on every refresh click will generate a new report at that location which
> is unacceptabl
Hi.
I do have 2 lists in my formbean, one for the checkoxtypes[A,B,C,D] and one for
knowing which checkbox is on / off [checkboxstate]
In my jsp I do iterate over the checkboxtypes List and for every checkboxtype I
generate a struts:checkbox with property set to checkboxstate[index] and value
Not sure what the new ones are, but my Maven dependency uses version 2.1.6 of
the struts2 sitemesh plugin:
org.apache.struts
struts2-sitemesh-plugin
${struts.version}
...
2.1.6
Is there any other filter I can try?
Markus
Musachy Barroso wrote:
>
>
Hi,
Can I stop the calling of action on click of refresh button as on this
action it will generate a report at some specified location.
So on every refresh click will generate a new report at that location which
is unacceptable.
So is there any way to stop calling the action/ have one flag on acti
I am using JSON plugin in Struts 2 for writing a resoponse. the plugin is
generating the response perfectly. however, this is Google Visulization API
demand that there should be a string wrapping the JSON response. like the
one mentioned below.
> google.visualization.Query.setResponse(JSON RESPONS
I need some help figuring out where I need to search for the problem below.
I have a jsp input.jsp which calls display.jsp on click of submit.
display.jsp can also be called directly using search.
A URL in display.jsp does not work when it is being redirected from
input.jsp but works when direct
Thanks for your reply Lukasz. In practice, I should use BigDecimal to avoid
rounding problems but it doesn't change the fact that 0.0 shouldn't be
thrown up as an invalid conversion for a double.
This works perfectly well, so I can't understand why Struts2 throws "0.0"
out as an error ...
public
It turns out that the problem I was having - had nothing to do with
type conversion.
The problem was a chunk of my code that was responsible for formatting.
Specifically, the exception "IllegalArgumentException: Cannot format
given Object as a Number" was thrown because of
(format.money i
It turns out that the problem I was having - had nothing to do with
type conversion.
The problem was a chunk of my code that was responsible for formatting.
Specifically, the exception "IllegalArgumentException: Cannot format
given Object as a Number" was thrown because of
(format.money i
Thanks, I have posted to a Hibernate and MySql forum as well, with the hope
someone might help! I've pretty much exhausted google trying to find a
solution, it's really doing my head in. oh well, fingers crossed someone has
encountered this before!
Chris
--
View this message in context:
http://
It turns out that the problem I was having - had nothing to do with
type conversion.
The problem was a chunk of my code that was responsible for formatting.
Specifically, the exception "IllegalArgumentException: Cannot format
given Object as a Number" was thrown because of
(format.money i
It turns out that the problem I was having - had nothing to do with
type conversion.
The problem was a chunk of my code that was responsible for formatting.
Specifically, the exception "IllegalArgumentException: Cannot format
given Object as a Number" was thrown because of
(format.money i
On Fri, Jan 30, 2009 at 10:10 AM, mleneveut wrote:
>
> I put some @Conversion(), @Element(value = java.lang.Long.class) and
> @TypeConversion(rule = ConversionRule.COLLECTION, converter =
> "java.lang.Long") in my Action and it's not working better.
>
> So I set the convertion in a properties file
Hi,
first consider one common form for this two actions maybe they have
more in common.
Then You can append this x value to redirection params and set it for
second action/form,
last thing I would do would be session.
Best greetings,
Paweł Wielgus.
2009/1/30 overtakerx :
>
> Hi
>
>
> If I have fo
I don't think this has anything to do with Struts 2. You might have
better luck posting to a hibernate or mysql forum.
Google might help as well:
http://www.google.com/search?q=ResultSet+is+from+UPDATE.+No+Data
Nils-H
On Fri, Jan 30, 2009 at 10:00 AM, anubisza wrote:
>
> Hi All,
>
> I have a w
I put some @Conversion(), @Element(value = java.lang.Long.class) and
@TypeConversion(rule = ConversionRule.COLLECTION, converter =
"java.lang.Long") in my Action and it's not working better.
So I set the convertion in a properties file with :
Element_idsCommerciaux=java.lang.Long
and it is worki
On Fri, Jan 30, 2009 at 12:25 AM, wrote:
> We use Eclipse, but there's no IDE setup necessary and no special IDE
> plugins. The beauty of GWT is it's all Java, so you just drop in the GWT
> JARs and start using the APIs. Naturally there's a bit of a learning
> curve to understand the server-si
Hi All,
I have a website written using Struts 2, on a MYSQL database, using
Hibernate.. I have a search function which calls a
stored procedure in the database (search_SP), which accepts 1 parameter (the
text entered in the form field),
which in turn populates from a View.
When I submit a se
63 matches
Mail list logo