On Wed, 2008-08-20 at 22:51 -0700, ravi_eze wrote:
I would like to either make each launch of the jsp create a new exclusive
running instance of the action
: if i got u right but this is already happening. Each url call makes a
new actionclass instance.
In Struts 2, actions are
Hi Dave,
Thanks for your reply, i have downloaded 2.1 and trying to
migrate to the newer version from 2.0.11. i need to work on tree control and
as some of the issues with earlier version are fixed in 2.1.
i am using eclipse IDE, removed all 2.0.11 related jars and replaced them
with
I think you cann't expect Struts 2 to automatically remove an object just
because one of it's properties is set to null. Ok, in your case it's the
id-property but struts 2 (or better OGNL) doesn't know that.
So i don't think this is worth a feature request.
But here is the workaround i'd use:
Hi, Narayana,
Last version and nightlies are located in address:
http://people.apache.org/builds/struts
As to dojo plug-in, for example dojo plugin can be found inside the
struts-2.1.2-lib.zip archive which can be downloaded from the link above.
And you must put the struts2-dojo-plugin-2.1.2.jar
Hello,
I seem to have hit an issue with using ExecAndWaitInterceptor because of the
way it is designed. The background process is invoked in this fashion:
*public void run() {
try {
beforeInvocation();
result =
Hi,
Thanks for your reply, yes i missed it. foolish mistake :)
Thanks friend.
On Thu, Aug 21, 2008 at 1:42 PM, Okan Özeren [EMAIL PROTECTED] wrote:
Hi, Narayana,
Last version and nightlies are located in address:
http://people.apache.org/builds/struts
As to dojo plug-in, for
this code here works for me:
@s.set name=list1 value=%{{'apple','banana'}} /
@s.set name=list2 value=%{{'juice','cream'}} /
@s.iterator value=#list1 status=rowstatus
@s.property /
@s.push value=#list2[#rowstatus.index]
@s.property /
/@s.push
br
/@s.iterator
(Notice: this is
Thanks very much for your reply.
The problem with this type of work around is that it completely messes up my
fiendish master plan. If it wasn't for those pesky objects with null values! :-P
You see, I've probably been a bit too clever for my own good, and for the first
time I've created a
This is pretty much what I was looking to do, except that I was hoping
struts2 could automatically remove an object if *all* of it's properties were
null, not just one. Would your answer be the same given this minor
difference?
This is actually not a question whether struts2 can do but
Gawain Hammond wrote:
Thanks very much for your reply.
The problem with this type of work around is that it completely messes up
my fiendish master plan. If it wasn't for those pesky objects with null
values! :-P
You see, I've probably been a bit too clever for my own good, and for
Hi,
i was using struts 2.0.11 and we know tree control is having some
issues in that version, so i want to migrate to struts 2.1. for that i
removed struts 2.0.11 jars and replaced them with 2.1 version files, and
also copied struts-dojo-plugin-2.1.2.jar. still i couldn't trace the tree
Can you define an interface that is common across all the actions/model
objects. Then you can have the relevant Actions implement the interface
and
write an interceptor to check the value of the specified fields and set
them
to null if required after checking that the object is of the
some example i tried on struts-blank-2.1.2 it is working and recognizing
events and responding. am i missing any imp step in migration, is that
replacing jar files is not enough for migration?
many of the struts2-tags use the var-attribute instead of name and id,
now. I'm not sure whether id
Sorry if I'm missing something obvious, but can someone tell me if
there's a credit card validator in Struts 2?
There's one in Struts 1, and in Struts 2 I found creditCard.js, which
uses the Luhn algorithm, but I cant figure out a) how to use it or b) if
there is a corresponding annotation for
Sorry, I know that I've read about this here before, but I can't find the
thread. Can someone point me to how to configure an action as the welcome
file?
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
--- On Thu, 8/21/08, Gundersen, Richard wrote:
can someone tell me if there's a credit card validator in Struts 2?
Not that I know of; the creditCard.js you're referring to is part of Dojo.
Dave
-
To unsubscribe, e-mail:
Hi..
Did you try change in web.xml file? Change from index.jsp to
your_action.action!! i dont know if it work...
Felipe.
On Thu, Aug 21, 2008 at 7:24 AM, Roger [EMAIL PROTECTED] wrote:
Sorry, I know that I've read about this here before, but I can't find the
thread. Can someone point me to
Felipe Lorenz wrote:
Hi..
Did you try change in web.xml file? Change from index.jsp to
your_action.action!! i dont know if it work...
Felipe.
On Thu, Aug 21, 2008 at 7:24 AM, Roger [EMAIL PROTECTED] wrote:
Sorry, I know that I've read about this here before, but I can't find the
thread.
Cheers Dave
I'll dig around and see if theres a good open source alternative (or
failing that, write one myself).
I'll post back if I find anything good
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Hello,
I have a web application that must get image from blob field stored in
an Oracle DB, but I cannot find how to examples.
Here is my sources. Where is the error?
default.jsp
---
s:action name=pgetpicture executeResult=true
s:param name=id value=2950 /
/s:action
Hi,
I guess you can do that by specifying the following in web.xml:
welcome-file-list
welcome-file/actionnamespace/welcome.action/welcome-file
/welcome-file-list
And also by adding the following filter mapping attributes in struts filter
dispatcher in order to be loaded which ever
filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
dispatcherINCLUDE/dispatcher
dispatcherERROR/dispatcher
/filter-mapping
this result in an xml-error: The
I don't understand this solution, what is p parameter, and whait is
RANDOM ?
--
Regards, Milan
dynamicd wrote:
got it to work.. could not stop the caching so added a param to the src
img
src=/Dashboard/DisplayChart.action?p=%=request.getParameter(RANDOM)%
/
dynamicd wrote:
Using Struts 2.0.11.1.
I get this exception:
2008-08-21 10:50:17,859 ERROR org.apache.struts2.dispatcher.StreamResult:188 -
Can not find a java.io.InputStream with the name [inputStream] in the
invocation stack. Check the param name=inputName tag specified for this
action.
2008-08-21
Hi Stephan,
I tried to adopt your solution, like this:
s:iterator value=#list1 status=rowstatus
s:text name=names
s:push value=#someObject.list2[#rowstatus.index]
s:param name=value value=name/
/s:push
/s:text
/s:iterator
but I get: Error loading
--- On Thu, 8/21/08, Milan Milanovic wrote:
I don't understand this solution, what is p parameter, and
whait is RANDOM?
This is a common technique to throw off caching mechanisms.
The p parameter is a dummy parameter that gets a random value so that when
the submission is made, since the URL
What you are saying when you post user.group.id = '' is to set the
group object of the user id property to null. What you want to say is
set user.group to null.
To do that create a TypeConverter for Group rather than try to
maintain the id directly. This way when the id (String
its some parameter name (the name does not matter) and RANDOM is set in the
controller (Action)
or to make it easy
img src=/Dashboard/DisplayChart.action?p=%=request.hashCode()% /
instead of passing DisplayChart.action each time.
it is passed in as a different url everytime and so it will
--- On Thu, 8/21/08, Milan Milanovic wrote:
I tried to adopt your solution, like this:
s:iterator value=#list1 status=rowstatus
s:text name=names
s:push value=#someObject.list2[#rowstatus.index]
s:param name=value value=name/
/s:push
/s:text
/s:iterator
but I get:
which version Jfreechart are you implementing?
Thanks,
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 Sender
Dear Dave,
newton.dave wrote:
I'd say something is wrong either in the action configuration or code;
even if the OGNL didn't work (AFAIK it should) I don't think it would
cause a 500.
When I remove this push code I don't get this error.
newton.dave wrote:
Do you have devMode turned on
do I need to have this p (String type)
parameter in my action class ?
No, it's there to create a unique URL, so it won't be cached.
Dave
dynamicd wrote:
its some parameter name (the name does not matter) and
RANDOM is set in
the controller (Action)
or to make it easy
img
What is someObject? Have you created it as a named stack context variable?
Dave
--- On Thu, 8/21/08, Milan Milanovic [EMAIL PROTECTED] wrote:
From: Milan Milanovic [EMAIL PROTECTED]
Subject: Re: [S2] Iterate through two lists
To: user@struts.apache.org
Date: Thursday, August 21, 2008, 11:41
Hi Dave,
it is an object that contains list of Fruits, nothing else. Yes, it is
located in action class and have get/set methods.
--
Milan
newton.dave wrote:
What is someObject? Have you created it as a named stack context
variable?
Dave
--- On Thu, 8/21/08, Milan Milanovic [EMAIL
Guys,
I am running the site (mobchannel.com) which aggregates all the blogs in
www.
It does a clean update of all blogs on a per day basis and categorizes them
in so many ways
This is the one BIG site which can give you much more capabilities in the
near future.
If you find the site interesting,
--- On Thu, 8/21/08, Milan Milanovic wrote:
it is an object that contains list of Fruits, nothing else.
Yes, it is located in action class and have get/set methods.
newton.dave wrote:
What is someObject? Have you created it as
a named stack context variable?
The answer to my question is
Dear Dave,
I removed # from my expression and I still get: (500 Internal Server Error).
--
Milan
newton.dave wrote:
--- On Thu, 8/21/08, Milan Milanovic wrote:
it is an object that contains list of Fruits, nothing else.
Yes, it is located in action class and have get/set methods.
--- On Thu, 8/21/08, Arun wrote:
I am running the site (mobchannel.com) which aggregates
all the blogs in www.
I find that unlikely; I would have guessed there were more than ~31k blogs.
According to the Technorati they're tracking ~112m blogs [1], so you're still
missing a few.
At the least
--- On Thu, 8/21/08, Milan Milanovic wrote:
I removed # from my expression and I still get: (500
Internal Server Error).
Not sure what else to tell you since you don't post any of the related code. I
can't reproduce the issue, nor can Stephan. If you want more assistance you'll
have to be
Hello,
I'm having a difficult problem for which I hope someone here can help me..
The short story: the parameters interceptor is unable to set a parameter.
These are the classes involved:
package model;
public class Language extends org.apache.commons.lang.enums.Enum {
protected
Tell me is this syntax good now for representing action class attribute
called someObject ?:
s:iterator value=fruits1 status=rowstatus
s:text name=names
s:push value=someObject.fruits2[#rowstatus.index]
s:param name=value value=name/
/s:push
/s:text
Hi,
I have this code in my jsp:
s:iterator value=someObject status=rowstatus
...
s:url id=removeUrl action=remove
s:param name=prop value=prop /
/s:url
s:a id=a_%{prop} href=%{removeUrl} theme=ajax notifyTopics=/delete
targets=fruitsDelete/s:a
...
/s:iterator
This remove.action is mapped
I checked this with Firebug and in jsp, prop is O.K.:
...
# Delete
...
But, when user click on the link, in action class I get 12340.0 !!
--
Regards, Milan
Milan Milanovic wrote:
Hi,
I have this code in my jsp:
s:iterator value=someObject status=rowstatus
...
s:url id=removeUrl
Never mind getInputStream() was throwing an exception that I wasn't
seeing.
Works great now.
Greg Lindholm wrote:
Using Struts 2.0.11.1.
I get this exception:
2008-08-21 10:50:17,859 ERROR
org.apache.struts2.dispatcher.StreamResult:188 - Can not find a
java.io.InputStream with the
Hello
What is the best way to return simple text/html or an xml document from an
action? Do I have to forward to a servlet and open an output stream and write
the stream? Is there a simpler/better way? tia.
Please post the error (stack trace?).
I suppose that if you want to show the image, you need some img
tag in your html page result. s:action tag doesn't generate img
tags for you AFAIK.
2008/8/21, Alessio Bandini [EMAIL PROTECTED]:
Hello,
I have a web application that must get image from
cpanon wrote:
Hello
What is the best way to return simple text/html or an xml document from an
action? Do I have to forward to a servlet and open an output stream and write
the stream? Is there a simpler/better way? tia.
I'm not sure what your asking but just recently I have added a
--- On Thu, 8/21/08, cpanon wrote:
What is the best way to return simple text/html [...]
Isn't that what a JSP result returns in the first place?
[...] or an xml document from an action?
All you really need to do is set the response header. You can do it manually in
a JSP file, or do it in
If you use an action as the welcome file you normally would also have to
create a file named welcome.action. I usually just create an empty file with
the appropriate name if I want to use an action as the welcome page.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
From: Ramez
Hi Folks,
I'm using S2 Stream result type to allow users to download a CSV file that I
dynamically write from records selected from a database.
First pass on this I'm using a StringWriter to write out the CSV data (using
SuperCSV) that using the string to build a ByteArrayInputStream for the
Wonder if it tracks the Mobchannel are pants because they don't track
anything blogs?
Has someone booted this spammer from the list?
Al.
Dave Newton wrote:
--- On Thu, 8/21/08, Arun wrote:
I am running the site (mobchannel.com) which aggregates
all the blogs in www.
I find that
Hi,
My Susue linux/tomcat 6/struts 1.x always hang, when at hang, all the
link/application's screen output is just 'null', no matter how to
refresh/reload or click new link.
no any error messages in any of catalina.out, catalina.log, local.log ..
the only solution is to rebounce the
I would check on a Tomcat list since Struts 1.x is used in production in
literally millions of web apps and they work perfectly well.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
From: john lee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Hi Dave,
I have struts devMode on and logging works for Struts, i.e., I get all
messages from Apache Tomcat and Struts in console. What do you mean by
logging turned up ?
--
Milan
newton.dave wrote:
--- On Thu, 8/21/08, Milan Milanovic wrote:
Tell me is this syntax good now for
--- On Thu, 8/21/08, Milan Milanovic wrote:
I have struts devMode on and logging works for Struts,
i.e., I get all messages from Apache Tomcat and Struts
in console. What do you mean by logging turned up ?
Set log levels to DEBUG for S2, XWork, and OGNL.
Did my solution work for you?
Dave
Hello,,,
Can any one please reply to this mail
On Thu, Aug 21, 2008 at 7:05 PM, Stephan Schröder [EMAIL PROTECTED]wrote:
some example i tried on struts-blank-2.1.2 it is working and recognizing
events and responding. am i missing any imp step in migration, is that
Hi All,
I know EL Expression has been disabled from 2.0.10 on. Unfortunately I have
some jsp has uses EL.
I have this jsp files that renders a generic dropdown box that looks like
the following.
s:select name=%{fieldName}
list='list'
listKey='${listKey}'
Guys,
I am not a spammer
sorry I posted to the mailing list. I just clicked add all contacts and send
that.
Just ignore the message please
Thanks
Arun
On Fri, Aug 22, 2008 at 12:41 AM, Al Sutton [EMAIL PROTECTED] wrote:
Wonder if it tracks the Mobchannel are pants because they don't track
What do you think a spammer is if it's not someone who clicks add all
contacts and then sends a message?
Arun wrote:
Guys,
I am not a spammer
sorry I posted to the mailing list. I just clicked add all contacts and send
that.
Just ignore the message please
Thanks
Arun
On Fri, Aug 22, 2008 at
59 matches
Mail list logo