Hello
How can I get property method with arguments?
Here is my example code from my TagSupport class:
TagUtils.getInstance().lookup(ipage, iname, myMethod, iscope);
... and i want to lookup for:
TagUtils.getInstance().lookup(ipage, iname, myMethod(a,b), iscope);
Is there any way to get it?
On 11/9/05, Jadeler [EMAIL PROTECTED] wrote:
I wanted to find out any recommendations in handling
successful payments where the user is redirected to a
receipt screen after a successful payment transaction.
Basically, I need to prevent users from resubmitting
the payment screen again via
You should also take a look at www.openrico.org
On 11/8/05, Joe Germuska [EMAIL PROTECTED] wrote:
At 4:43 PM +0100 11/8/05, Nicolas De Loof wrote:
I'm using DWR on my webapp for navigation in a
table, using a Page 1 2 3 ... footer.
DWR makes it realy simple based on a List put
into user
Hello
Sometimes I have problem with reload my application context in Tomcat.
It can not start again (I must restart Tomcat). I suppose that problem
make for example NullPointerException and not closed hibernate session
etc. How can I add (and where) my method to close sessions etc.? Any
Michael Jouravlev schrieb:
On 11/9/05, Jadeler [EMAIL PROTECTED] wrote:
I wanted to find out any recommendations in handling
successful payments where the user is redirected to a
receipt screen after a successful payment transaction.
Basically, I need to prevent users from resubmitting
the
Yes I do have that. Other validations are working fine except the url
validation.
I also use the following code to call UrlValidation class to validate
a url, it gives me the same result, i.e. always return false.
String[] schemes = { http, https };
UrlValidator urlValidator = new
Jadeler,
If you are using struts, in your class you can use saveToken() method and
isValidToken() method to revalidate the request. more detail you can get
from struts site.
hope it helps
Sunil
Jadeler [EMAIL PROTECTED]
11/10/2005 01:05 PM
Please respond to
Struts Users Mailing List
We've found a workaround ourselves:
We've now using Commons Beanutils 1.6.1 which does not contain the
classes BeanUtilsBeans and PropertyUtilsBean.
So far this works fine with Struts 1.2.7.
Ciao,
Jesper Richter-Reichhelm
After switching to Struts 1.2.7 (and Commons Beanutils 1.7) we
Hello,
I would like to iterate the DTO's List of my ActionForm with
layout:collection
like i will do with logic:iterate :
logic:iterate name=orderForm property=orders id=rememberMe
html:text name=rememberMe property=fieldA indexed=true/
/logic:iterate
The result i try to achieve is
Hi all,
i have problem with validator plugin.
in my struts config i enabled the validator like this(i am using struts 1.2)
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
/plug-in
Hi,
just a quick question:
I want to replace the following:
javascript:newWindow('popup-faq.jsp?txt=date','350', '500')
with the html:rewrite. So I added an entry into my struts-config and my
tiles-def and changed it to:
javascript:newWindow('html:rewrite action=/popup/faq /?txt=date','350',
Just to add that Sun is offering both Java Studio Enterprise 8
and Java Studio Creator for free now,
http://developers.sun.com/prodtech/javatools/free/
-- Ch.
JDeveloper 10.1.3 EA (which is also free) has excellent
JSF support, too.
Ted Husted schrieb:
On 11/9/05, Ashish Kulkarni [EMAIL
At 10:36 AM +0200 11/10/05, Ovidiu EFTIMIE wrote:
You should also take a look at www.openrico.org
Rico builds upon prototype.js and so is subject to the same
warning:as prototype. If you don't use html:javascript in your
Struts app, it's no problem, but if you want to add AJAX to your app
Jesper:
I'm glad you found a workaround works for you -- but if you have a
minute could you file a ticket in Bugzilla noting the issue (and the
workaround)?http://issues.apache.org/bugzilla/
It should be possible to make some changes to Struts to eliminate or
minimize calls to the
The bug report can be found at
http://issues.apache.org/bugzilla/show_bug.cgi?id=37441 .
-Ursprüngliche Nachricht-
Von: Joe Germuska [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 10. November 2005 11:22
An: Richter-Reichhelm, Jesper; Struts Users Mailing List
Betreff: Re: AW:
Sorry,
I asked my question to quickly..
I found a solution myself now. Solved it as followed - if anyone might need
it:
bean:define id=keyword value=date /html:rewrite action=/popup/faq
paramId=txt paramName=keyword /
But anyways: does anybody know, if the parameters, given through paramId
On 11/10/05, Christian Bollmeyer [EMAIL PROTECTED] wrote:
Just to add that Sun is offering both Java Studio Enterprise 8
and Java Studio Creator for free now,
http://developers.sun.com/prodtech/javatools/free/
Yep ... the new policy was announced at JavaOne Tokyo (where I am right now,
Good Morning Jadeler-
I would suggest taking a look at what is happening underneath the hood e.g.
@1 Struts will generate a unique value (the token) and keep it in the
session context
@2 When the JSP is rendered, Struts inserts the unique value (token) as a
hidden field
@3 The hidden field
Yes, I have tried everything that is relavent for the upgrade as mentioned in
the wiki page - http://wiki.apache.org/struts/StrutsUpgradeNotes11to124, I do
not see any wiki pages that talk about upgrade from 1.0 to 1.2 version, could
only get 1.1 to 1.2 document.
As per the above wiki page, I
On Nov 9, 2005, at 3:25 PM, Ted Husted wrote:
This is suppose to work:
* http://portals.apache.org/bridges/multiproject/portals-bridges-
struts/index.html
It definitely works with Jetspeed-2. I just got that going today.
Greg
Why would you need an artificial token, if you can create a robust
system using your own data model? Instead of verifying that request
was or was not yet submitted, you would verify that actual data is or
is not there. I think the latter approach is more logical and robust.
Michael.
On 11/10/05,
I am having a column which is displaying Dates in the below format.
Mon Oct 10 00:00:00 EDT 2005
But want the format to be in MM/dd/yy format.
How can this be done?
Thanks.
_
Express yourself instantly with MSN Messenger!
I tried this on my development Win2K box and this worked fine.
Then I put it on the system test Win2003 Server box and it just caught
itself in a redirect loop that you could never get out of. Apparently IIS
on Win2003 Server is not case sensitive.
Shawn D. Garner
-Original Message-
Doesn't that solve the problem then? Wasn't the issue users typing the url
with lc or uc lettering?
Otherwise if you want to run on both Win2K and Win2003, can you not
uppercase the incoming URL first and then apply redirection? I'm not
familiar with IIS, but redirection is standard webserver
Hi,
as we had a few display:*-tag questions in here in the last days I wonder if
anyone found a solution to this problem:
I´m using the display:* together with Struts 1.2.7 and this works quite good
so far. But I´m experiencing the following problem now:
I´m using a wrapper/decorator to
fea jabi wrote:
I am having a column which is displaying Dates in the below format.
Mon Oct 10 00:00:00 EDT 2005
But want the format to be in MM/dd/yy format.
How can this be done?
Use the JSTL fmt:formatDate tag. Or pass it in to the view in the format
you want.
Dave
Thankyou for your response.
using JSP. Is there any formatting in JSP for dates?
if I format and then send it to view which will be a String type.
When I try to sort the column in display tag, it sorts the column treating
it as strings rather than Date type.
Thanks.
From: Dave Newton
Isn't there two different reset methods. One taking in Request params and
other taking in HTTPRequest params?
Maybe you have the wrong one overridden?
Shawn D. Garner
-Original Message-
From: Chris Pat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 09, 2005 10:04 PM
To: Struts
fea jabi wrote:
using JSP. Is there any formatting in JSP for dates?
Use the JSTL tag. That _is_ JSP. Otherwise you'll need to use a
scriptlet or pass it in in the format you want.
When I try to sort the column in display tag, it sorts the column
treating it as strings rather than Date
Here is the tips:
layout:collection name=CreateAccesForm property=utilisateurs
indexId=indexUser
id=utilisateur styleClass=hermes-layout styleId=listeUsers height=190px
width=100% onRowMouseOut=this.className='tableauClair' onRowMouseOver=
this.className='tableauSurvol'
layout:collectionInput
On 11/10/05, fea jabi [EMAIL PROTECTED] wrote:
When I try to sort the column in display tag, it sorts the column treating
it as strings rather than Date type.
It's been a while since I've worked with it, but here's a formatted,
sortable column:
display:column title=Balance Outstanding
Actually they type it in with all sorts of different letters in the context
path either lower case or upper case. All upper case is by far the most
common because of the caps lock being on I think.
No it does not solve my problem because it gets caught in a loop. If you
type in the upper case
There seems to be a ton of AJAX stuff out there now. But what I'm
looking for is a JSP/Struts tag library that handles bindings between
the Javascript calls and the beans in request scope, so I can just drop
a JSP tag in and get my widget all hooked up. Kind of like DisplayTag,
or the stuff
The original Struts-only version of AjaxTags is somewhat close to this...
http://struts.sourceforge.net/ajaxtags/index.html
It isn't exactly what your looking for, but it could be a start... It
won't bind directly to beans, but it should be pretty trivial to write an
Action to do that part.
Hello
What is the best way to handle, in an Action, form
fields that are blank? If you have a simple getter
that just returns the field, how do you handle it when
the field is not in the session b/c it was not filled
in? Do I just check for fieldName==null in the getter
of the ActionForm? tia.
Hi Chris,
As with most things, it depends on your app... what would be most
appropriate to get from your ActionForm? If you never want to get a null
out of it, you can do the check in the accessor of the ActionForm. If
it's something that is a valid return, you probably will want to do the
Chris Pat wrote:
What is the best way to handle, in an Action, form
fields that are blank?
Depends on how you want to handle blank fields, I suppose.
Empty fields in a form submision aren't null; they're empty strings.
Am I misunderstanding what you mean?
Dave
Well, we are using here plain ol' XMLHttpRequest, but it's a pain in the ass
writing jsps that creates xmls to use with xmlHttpRequest. We want to
improve our knowledge in AJAX, to later move to a AJAX framework.
What're the best practices using AJAX?
Thanks in advance
Rafael Mauricio Nami
I'm not sure there are any at this point. I'm sure some have been
proposed by someone somewhere, but I'm not aware of them.
You might want to have a look at my AjaxTags if your finding what your
doing now to be a bit of a pain... http://javawebparts.sourceforge.net...
go to the javadocs and find
You know, the far simpler answer here, assuming null doesn't have any
special meaning to your app, is to simply initialize your fields in your
ActionForms. I.e.,
public class myForm extends ActionForm {
private String firstName = ;
public void setFirstName(String inFirstName) {
firstName
Super, I tested ajaxtags and really liked it, but that's how I said before -
The team arged that before using a framework, they have to understand what
Ajax is.
So like, I don't have to supply xml to xmlHttpRequest? How can I do it?
Thanks in advance
Rafael Mauricio Nami
2005/11/10, Frank W.
In an Action class I am writing, I would like to be able to get the
real physical path to the web app. Eg: C:/webserver/webapp/instance
According to the docs, the request.getRealPath(instance) is going
away. It looks like the ServletContext would work, but I do not know
how to get the context
in your action try:
ServletContext context = request.getSession().getServletContext();
-ed
On 11/10/05, Jim Reynolds [EMAIL PROTECTED] wrote:
In an Action class I am writing, I would like to be able to get the
real physical path to the web app. Eg: C:/webserver/webapp/instance
According to
Well, first, are we talking about the right ajaxtags? :) There's a whole
separate project with that name, and they supply essentially complete
AJAX-based components. The ajaxtags in JWP is more low-level and
flexible, more of a toolkit in the classic sense.
I ask because in fact most of what my
I have tiles working in my application. As i try to use the validator
i get the following error
which may it be the cause?
javax.servlet.ServletException: Can't get definitions factory from context.
Super, I tested ajaxtags and really liked it, but that's how I said before -
The team arged that before using a framework, they have to understand what
Ajax is.
So like, I don't have to supply xml to xmlHttpRequest? How can I do it?
I guess you might find this interesting.
Rasmus' 30 second AJAX
That post is dead-on. I've been building webapps this way for almost six
years now, although without XMLHttpRequest for most of that time... there
are alternative ways to implement the concept, but it's the underlying
concept that's important, and as the poster said, it's not exactly rocket
Thomas,
in my decorators I typically take the current context path from the
PageContext like this:
PageContext pc = getPageContext();
HttpServletRequest request = (HttpServletRequest)pc.getRequest();
String contextPath = request.getContextPath();
Martin
bhas4 wrote:
Yes, I have tried everything that is relavent for the upgrade as mentioned in
the wiki page - http://wiki.apache.org/struts/StrutsUpgradeNotes11to124, I do
not see any wiki pages that talk about upgrade from 1.0 to 1.2 version, could
only get 1.1 to 1.2 document.
As per the above
Just to be diferent, there are alternatives to Ajax:
http://msdn.microsoft.com/smartclient/understanding/definition/default.aspx
.V
Rafael Nami wrote:
Super, I tested ajaxtags and really liked it, but that's how I said before -
The team arged that before using a framework, they have to
Ben wrote:
Hi
Could someone please let me know how to make FormFile work in the
session scope? It always gives me Serializable exception.
I need to use FormFile in session scope.
FormFile is an interface, so I assume it's the particular implementation
you're working with that's failing to
Andrzej Bengner wrote:
Hello
How can I get property method with arguments?
Here is my example code from my TagSupport class:
TagUtils.getInstance().lookup(ipage, iname, myMethod, iscope);
... and i want to lookup for:
TagUtils.getInstance().lookup(ipage, iname, myMethod(a,b), iscope);
Are you using the validator.xml and validation-rules.xml files shipped
with Struts 1.2, or copies from an older version? Do you have the right
versions of all jars in your WEB-INF/lib?
L.
Kanuri, Chand wrote:
Hi all,
i have problem with validator plugin.
in my struts config i enabled the
layout:collection is part of the Struts Layout project, which is a
seperate project from Struts. You need to ask questions about its use on
the Struts Layout mailing lists:
http://struts.application-servers.com/mail-lists.html
arnaud gonzales wrote:
Here is the tips:
layout:collection
Thomas Hamacher wrote:
But anyways: does anybody know, if the parameters, given through paramId are
saved in an ActionForward? This would help me a lot, because I have to
remember the parameters - if any are used - together with my ActionForward
for later references. Right know I'm trying a
That appears to be a Tiles error, not a validator error; does it work if
you don't configure any validation? If so, what validator configuration
do you add that leads to the error below?
L.
eve wrote:
I have tiles working in my application. As i try to use the validator i
get the following
Joe Germuska wrote:
[...]
I would recommend against using Prototype[3] or JSON[4] with Struts, as
they use a JavaScript strategy which is incompatible with
commons-validator and the html:javascript tag (see Bug #37134[5]).
[...]
[5] http://issues.apache.org/bugzilla/show_bug.cgi?id=37134
I also delivered an AJAX-like web application for ABN AMRO, so the users in
India can access a mainframe in Chicago. The performance is surprising. It
is even faster than a client/server version of the application.
The best approach for AJAX is to develop the custom tags. For example, tag
for
If someone wants to see the frameworks comparision, here is nice list:
http://wiki.osafoundation.org/bin/view/Projects/AjaxLibraries
Lukasz
-Original Message-
From: Ben Kim [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 10, 2005 1:55 PM
To: Struts Users Mailing List
Subject:
Laurie Harper wrote:
Joe Germuska wrote:
[...]
I would recommend against using Prototype[3] or JSON[4] with Struts,
as they use a JavaScript strategy which is incompatible with
commons-validator and the html:javascript tag (see Bug #37134[5]).
[...]
[5]
I defined an ActionForm of which it has a FormFile. Prepopulation is
not needed for this ActionForm. Configuring this ActionForm is similar
to any other forms and here is the exception. I get this exception
when I startup/shutdown Tomcat.
ActionForm:
public class UploadForm extends ActionForm {
i have
input type=text
name=header(revenue%28Debt+Consol.-Net+Lead+Revenue%29) ...
this is backed by a bean which has
setHeader(String key, String value) { ... }
in general this is fine, but for the above line, the '.' in the key
causes problems. looks like struts treats this as a nested
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
hi,
I have a div on autoscroll that contains multibox. Here's the code
div id=motUrlLst class=motLst
logic:iterate id=mot name=PandoraForm property=motTreeMap
nbsp;
html:multibox property=motSelectLst style=width: 10px;height:
10px onclick=autoPostBack('motSelectLst;' +
On 11/10/05, Nishant Deshpande [EMAIL PROTECTED] wrote:
i have
input type=text
name=header(revenue%28Debt+Consol.-Net+Lead+Revenue%29) ...
this is backed by a bean which has
setHeader(String key, String value) { ... }
in general this is fine, but for the above line, the '.' in the key
Eric Plante wrote:
hi,
I have a div on autoscroll that contains multibox. Here's the code
div id=motUrlLst class=motLst
logic:iterate id=mot name=PandoraForm property=motTreeMap
nbsp;
html:multibox property=motSelectLst style=width: 10px;height:
10px
Considering current Party policy proclaiming Struts is not a single
product, but is a community I would rephrase Laurie's reply as
follows:
layout:collection is part of the Struts Layout project, which is a
separate project from Struts Classic, Struts Core, Struts
Distribution, Struts Shale ,
[EMAIL PROTECTED] wrote:
It seems so simple by I am brain dead today.
Would I create a bean that is just a collection and then populate that collection with the List I want the user to choose from? How would I put the list in the jsp?
You'll have to describe what you're trying to do in
Thanks, it worked.
Sorry of the out of topic post.
Eric Plante wrote:
hi,
I have a div on autoscroll that contains multibox. Here's the code
div id=motUrlLst class=motLst
logic:iterate id=mot name=PandoraForm property=motTreeMap
nbsp;
html:multibox
Laurie, I've added a note on the bug, with a link to your messages.
Niall
- Original Message -
From: Laurie Harper [EMAIL PROTECTED]
Sent: Thursday, November 10, 2005 10:13 PM
I just tried it, and prototype+validator works fine for me. It's
possible my test just didn't use the
On 11/9/05, Danny Lee [EMAIL PROTECTED] wrote:
Hi Michael,
Persistance is no issue, becouse I have implemented managers, which can
be simply used anywhere. Something like:
On update PersistanceManager.UpdateProductCount(prodID, newCount)
Well the question was about multi row update. It
While adding the validator configuration to your struts-config, u must be
missing some tag. check for it
On 11/11/05, eve [EMAIL PROTECTED] wrote:
I have tiles working in my application. As i try to use the validator
i get the following error
which may it be the cause?
Joe Germuska wrote:
At 4:43 PM +0100 11/8/05, Nicolas De Loof wrote:
I'm using DWR on my webapp for navigation in a table, using a Page 1
2 3 ... footer.
DWR makes it realy simple based on a List put into user session.
Browser can get requested elements from list and DWR comes with utils
to
Laurie Harper wrote:
Joe Germuska wrote:
[...]
I would recommend against using Prototype[3] or JSON[4] with Struts,
as they use a JavaScript strategy which is incompatible with
commons-validator and the html:javascript tag (see Bug #37134[5]).
[...]
[5]
Mark Benussi wrote:
I havent heard of one. Its only Javascript at the end of the day!
Yeah, right!
--
Martin Cooper
Here
are some methods I have in an ajax.js and some example code to invoke
the code.
ajax.js
/**
* Returns an XMLHttpRequest object based on the client platform
*/
Hi all
I've just been through the demos below and the Java Studio looks a lot like
NetBeans.
I'm now assuming that this is just two products from the same cloth, Sun Java
Studio
Enterprise 8 == NetBeans 5, is this correct?
The Studio Creator product looks neat but from the screen shots I
netsql wrote:
Just to be diferent, there are alternatives to Ajax:
http://msdn.microsoft.com/smartclient/understanding/definition/default.aspx
Ooh! Isomorphic is not going to like that. They've had an Ajax toolkit
product named SmartClient for quite a few years now.
Specifically exceptions in execute().
Shouldnt these result in a stack trace printout in
Tomcat 5. Or are they printed out to the logs.
__
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
Hello,
I have to set the value in the Struts Resource Bundle .Can anyone help
me out to know how to set the value for particular key in Resource Bundle
either using java.util.*(Resource Bundle) or Struts Util API?There is no method
to set the value for a key in both of these API's?
Hi,
You want to set it in runtime?
Regards
Deepak Kumar
--- Shailesh Barde [EMAIL PROTECTED] wrote:
Hello,
I have to set the value in the Struts
Resource Bundle .Can anyone help me out to know how
to set the value for particular key in Resource
Bundle either using
I've now downloaded Studio Creator, installed and started it.
I managed to register my DataSource with MySQL (not listed by default).
I also managed to shutdown the Sun App Server which had automatically started.
I also managed to shutdown the pointbase database server, also started
81 matches
Mail list logo