We are having similar problems ...try reading this
http://www.redbooks.ibm.com/redpapers/pdfs/redp4307.pdf.
-Original Message-
From: John Mammen [mailto:[EMAIL PROTECTED]
Sent: Friday, 3 August 2007 3:33 PM
To: 'Struts Users Mailing List'
Subject: Problem deploying an application
Hi,
OK, I think I found the problem. So if someone can
come up with a feasible workaround, please! Its
nothing struts related, btw. Javascript.
I have a form onSubmit function which disabled all the
input buttons to prevent users from clicking buttons
twice or clicking another button (the actions
And this
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c
om.ibm.websphere.base.doc/info/aes/ae/crun_classload.html
-Original Message-
From: John Mammen [mailto:[EMAIL PROTECTED]
Sent: Friday, 3 August 2007 3:33 PM
To: 'Struts Users Mailing List'
Subject: Problem
Could it be that you are looking for I18nInterceptor?
http://struts.apache.org/2.x/docs/i18n-interceptor.html
Ray Clough schrieb:
The first page of my app is a Login page. Every other page is correctly
localized, because the app gets the user's preferred locale from a DB, and
Struts handles
Hello experts,
I have following code...
JAVA class:
public class Support extends ActionSupport implements SessionAware
{
protected MapString, Object session;
public MapString, Object getSession() { return session; }
@SuppressWarnings({unchecked}) public void setSession(Map session)
Hi all,
I am trying to put a JFreeChart in a s:div tag
---jsp file---
...
s:url id=testChart value=/TestChart.html /
s:div
id=once
theme=ajax
cssStyle=border: 1px solid yellow;
href=%{testChart}
Initial Content/s:div
...
---eof---
/TestChart.html displays
Thanks for the reply but there must be an easier way. If thats the way the
plugin will not be easy to use.
Amit Sharma-10 wrote:
HI
You can store the image created by jfreechart at some temporary location,
and then get the image from this location while displaying.
--
View this
HI
You can store the image created by jfreechart at some temporary location,
and then get the image from this location while displaying.
On 03/08/07, Struts2 Fan [EMAIL PROTECTED] wrote:
Hi all,
http://struts.apache.org/2.x/docs/jfreechart-plugin.html
In this page it just gives an
Guys.. any ideas??
semaj.najraham wrote:
Hey guys,
I need some help using nested tag library and javascript. I have an
actionForm named RegistrationForm that has two AddressForm; mailing and
billing addresses. I need to implement a requirement if a user clicks a
checkbox say 'same as
You need to submit a form field -- could be anything -- with the name of the
cancel button Struts expects. Take a look at your generated HTML again to
get the name of the button. That needs to be in the submission for the
isCancelled() method to detect cancellation.
On 8/3/07, Charl Gerber [EMAIL
Depends on the container...
Weblogic 8.1+ allows you to define a APP-INF/lib where it will look for
common libs. Another solution might be to define these in the
manifest's classpath section of the EAR to point to the location of the
common lib. Other solutions might be to explore your
Seems that conversion to/from BigDecimal is covered by XWorks already.
I'm thinking in base the bigdecimal validator from the double
validator source code.
2007/8/2, Rene Gielen [EMAIL PROTECTED]:
You are right, there is no bundled BigDecimal related validator in
place, but it should be quite
Hi,
I found out that the EJB and the client projects should never reference the
web project. So can anyone tell me which project I should put all the common
JARS into?
Regards,
John.
-Original Message-
From: Fowler, Perryn [mailto:[EMAIL PROTECTED]
Sent: Friday, August 03, 2007
Hi,
I have a select list in my form, and when I submit the form, the
javascript client validation passes, but the server validation failed. It
comes back to my JSP with the required field error message.
The weird thing is that in my action the field is well filled (I put a
breakpoint in an
Hi,
When I submit a numeric in a form, the validation accepts only dotted
numbers (12,34) (I'm with a French locale). If a set 12.34, the validation
failed and I have the message : Invalid field value for field xx
But when a submit 12,34 and another field has an error, I come back to my
JSP
Hi all,
http://struts.apache.org/2.x/docs/jfreechart-plugin.html
In this page it just gives an example to make the action return a chart. My
question is how can I display it on a part of a jsp?
Any help will be appreciated...
--
View this message in context:
Are you using Struts 1.3? I believe only 1.3 captures all exceptions --
while 1.2 captures only non-runtime exceptions.
Pallavi Shetty wrote:
Hi All,
When ever there is an error I need to handle the exceptions gracefully.
Since I'm using struts frame work I'm using global-exceptions
Attach styleId to your fields. Then you can use JavaScript to manipulate
form fields by their id. use getElementById scripting method.
semaj.najraham wrote:
Hey guys,
I need some help using nested tag library and javascript. I have an
actionForm named RegistrationForm that has two
On 8/3/07, semaj.najraham [EMAIL PROTECTED] wrote:
Guys.. any ideas??
Hi, I have never used this so I don't really know what I 'm talking
about, but can't you use the onclick attribute of the nested tag to
give it a javascript to execute?
I really don't see any option to getting the Locale from a cookie, since this
is the first request of a new user session, and no other facility is available
to get it. The Locale from the user request won't do, because that is set to
the browser preference, or something. So the question is
How I get with dojo (Struts 2) the properties of div or some another
element, I'm running this code:
function updateDiv( url ) {
var reportDiv= window['info'];
reportDiv.href = url;
reportDiv.refresh();
}
Hi,
Is it possible to have an action process a page and launch an alert dialog box
if it encounters an issue that the user should be made aware of? Additionally,
how would I launch a confirmation dialog box and get the user's choice?
Thanks,
Session
Hi again,
How should I go about obtaining a user's selection in an s:select element from
my action's code?
Thanks,
Session
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Forgive the flurry of posts. I'd like to be able to do two things with tree
nodes:
- determine which one was clicked from my action code (getting the
corresponding id is enough)
- display the nodes in different colors depending on the type of the object. I
can determine the type of the
With Struts 2, how would I go about doing the following:
1. Replace the i18n resolution logic to load key/value pairs from a database
instead of properties files?
2. Add an extra processing step to translate wiki syntax in values to HTML?
Thanks,
Matt
--
View this message in context:
Thank you Paul.. you save my day!!
Paul Benedict-2 wrote:
Attach styleId to your fields. Then you can use JavaScript to manipulate
form fields by their id. use getElementById scripting method.
semaj.najraham wrote:
Hey guys,
I need some help using nested tag library and javascript.
Just to follow up, I've created my own custom FieldExpressionValidator to get
my desired behavior. The code is below in case anyone wants to use it.
Here's how:
1. Create a validators.xml in your WEB-INF/classes (or src/main/resources
for M2) to override the fieldexpression validator:
!DOCTYPE
I figured out how to do this - posting here so others will benefit.
1. Create a new ConditionalVisitorFieldValidator.java:
public class ConditionalVisitorFieldValidator extends VisitorFieldValidator
{
private String expression;
public void setExpression(String expression)
{
Hi,
Could someone tell me how in my action code I could get the item that was
selected by a user in a s:select list?
Thanks,
Session
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
We've been on Struts 2.0.6 and a Tiles 2.0 pre-release
(2.0-20070207.130156-4) for a while now in the Roller trunk. After
seeing the recent news about XSS dangers we decided to upgrade to
2.0.9. before we make our next release.
So I downloaded 2.0.9. First, I found that the old Tiles listener
Piero Sartini wrote:
I have the following situation:
a searchfield is on top of a table presenting results. if there is only one
result, the user should be redirected without the need of clicking on the
list..
now my problem is how to redirect to an action and passing a parameter from
It sounds like what you want is either to extend the I18nInterceptor to
be aware of your cookie, or simply create a custom interceptor that
takes care of setting the locale from the cookie into the session (or
exposing it as a request parameter for I18nInterceptor to consume), and
put that at
Struts2 Fan wrote:
Hi all,
http://struts.apache.org/2.x/docs/jfreechart-plugin.html
In this page it just gives an example to make the action return a chart. My
question is how can I display it on a part of a jsp?
Any help will be appreciated...
As with any resource you want to display in
Charl Gerber wrote:
OK, I think I found the problem. So if someone can
come up with a feasible workaround, please! Its
nothing struts related, btw. Javascript.
I have a form onSubmit function which disabled all the
input buttons to prevent users from clicking buttons
twice or clicking another
Sounds like an error in your validation rules, which you haven't listed,
or possibly a result of whatever your Change() JavaScript function is
doing. Without seeing all the pieces, it's difficult to diagnose.
L.
[EMAIL PROTECTED] wrote:
Hi,
I have a select list in my form, and when I submit
Vamsi wrote:
Hi all,
I am doing validations using struts2 validation framework.
Validations(Server-side validations) are working fine but my problem is
error messages are not getting displayed.when I am doing client-side
validations messages were getting displayed but the samething
I can't tell you anything definitive, since you didn't include all your
relevant code. I would suggest starting by simplifying things as much as
possible. Take out all your Javascript and strip the page down to just a
form with a couple of submit buttons dispatching to different methods.
Once
Firstly, you're unconditionally putting the same data into each session,
so are you sure you're getting the same *instance* of that data, not
just separate copies of the same data?
Actions should be instantiated for each request, so if your code is as
simple as you've presented and you really
Hi,
I've posted a number of times regarding this subject, but have not gotten a
reply. I would think that others have used s:select before and know how to
obtain a user's selection in data. Please help, because I have been stuck for
a number of hours now.
Thanks,
Session
Session A Mwamufiya wrote:
Could someone tell me how in my action code I could get the item that was
selected by a user in a s:select list?
Firstly, please dont' spam the list by repeatedly posting the same
question. If you don't get an answer to a question in a reasonable amout
of time,
This is rather vague. For building up page layouts, take a look at
Tiles. For doing Ajax-y stuff, take a look at the ajax theme and
supporting S2 tags. Specifically for the use case you describe below,
take a look at s:a and s:div (I think).
L.
Manuel Correa wrote:
I want to have one div in
I'm running into trouble migrating my existing web application from
WebWork 2.2.2 to Struts 2.0.9. We are using JSE6 (AKA JDK 1.6) and
Tomcat 5.5.17. I did everything mentioned on the wiki plus a bunch
more stuff:
http://struts.apache.org/2.x/docs/webwork-2-migration-strategies.html
If I ever
I'm sorry for the spam Laurie, I'll make sure to continue the same thread next
time.
You actually clarified my understanding of the way s:select works, because I
was under the impression that we had to make a specific function call to get
the list of selected options, but it is done by the
Hi,
I know that I've sent many questions today, so please bear with me once more.
I'd like to have my action popup a message to the user if a submit button is
pressed and the entered data is incorrect. Is that possible? Or if not from
struts 2, is there a way for struts 2 to execute html
Rather than use an Interceptor I created a filter which does what you describe.
I chose a Filter because all requests have to be intercepted and
pre-processed, and the app has both S1 and S2 pages, and an Interceptor will
only intercept URLs for S2 actions. It works perfectly for all pages
The same way you would get a textfields. If your select box can allow
for multiple selections, declare a String[] array in your action class
and the selected values will map to it. Don't forget the getter and
setters.
Zarar
On 8/3/07, Session A Mwamufiya [EMAIL PROTECTED] wrote:
Hi again,
On 8/4/07, mraible [EMAIL PROTECTED] wrote:
With Struts 2, how would I go about doing the following:
1. Replace the i18n resolution logic to load key/value pairs from a database
instead of properties files?
Well, if your Action class implements TextProvider (as does
ActionSupport), then you
Struts 2 behaves quite differently based on what plugins are
installed. Looks like you are using the Spring plugin, which it
sounds like you shouldn't be. Remove the
struts2-spring-plugin-VERSION.jar from your WEB-INF/lib.
Don
On 8/4/07, Van Riper [EMAIL PROTECTED] wrote:
I'm running into
48 matches
Mail list logo