Hi,
I'v just started to implement a portlet application using
struts2-portlet-plugin
and struts2-spring plugin. To manage my objects I'm planning to use spring 2.5.
My
problem starts when using the scopes "session" and "request" on my spring
managed beans.
I get the following error despite con
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 a
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
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.
So the action that uses this would have a list of objects and a listKey
field that contains a strin
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
>
--- 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?
Da
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 repre
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
> Date: Thu, 21 Aug 2008
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 tomca
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 u
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 th
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 H
--- 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
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 pr
Please post the error (stack trace?).
I suppose that if you want to "show" the image, you need some
tag in your html page result. tag doesn't generate
tags for you AFAIK.
2008/8/21, Alessio Bandini <[EMAIL PROTECTED]>:
>
> Hello,
>
> I have a web application that must get image from blob field
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.
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 wi
--- On Thu, 8/21/08, Milan Milanovic wrote:
> Tell me is this syntax good now for representing action
> class attribute called someObject?:
>
>
>
>
>
>
>
>
*sigh*
Yes, "someObject" will access an action property named "someObject".
If all you're trying to do is set mess
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:
>
>
> ...
>
>
>
> notifyTopics="/delete" targets="fruits">
Hi,
I have this code in my jsp:
...
Delete
...
This "remove.action" is mapped into remove() method in my action class, and
"prop" is a double property with get/set methods in my action class.
What happens now, when user enter, e.g. 1234.0 for "prop", it is well
represented here, e.g.
Tell me is this syntax good now for representing action class attribute
called someObject ?:
--
Milan
newton.dave wrote:
>
> --- On Thu, 8/21/08, Milan Milanovic wrote:
>> I removed # from my expression and I still get: (500
>> Internal Server
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 Language(S
--- 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 mo
--- 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 leas
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, 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
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,
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
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, 20
> 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 e
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 turn
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 d
Hi,
do I need to have this "p" (String type) parameter in my action class ?
--
Thx, Milan
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 src="/Dashboard/DisplayChart.action?p=<%=request.has
--- On Thu, 8/21/08, Milan Milanovic wrote:
> I tried to adopt your solution, like this:
>
>
>
>
>
>
>
>
>
> but I get: Error loading 'myApp/showFruits.action'
> (500 Internal Server Error),
> and there is nothing in log.
I'd say something is wrong either in the action c
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 d
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 representa
--- 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
Hi Stephan,
I tried to adopt your solution, like this:
but I get: Error loading 'myApp/showFruits.action' (500 Internal Server
Error),
and there is nothing in log.
?
--
Regards, Milan
"Stephan Schröder" wrote:
>
> this code here works f
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 tag specified for this
action.
2008-08-21 10:50:18,640 ERROR org.apache.
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")%>"
> /
>
>
>
>
>
> struts2
> /*
> REQUEST
> FORWARD
> INCLUDE
> ERROR
>
this result in an xml-error: The content of element type "filter-mapping" must
match "(filter-name,(url-pattern|servlet-name))".
> In my web.xml I have:
>
>
> index.jsp
>
>
Hi,
I guess you can do that by specifying the following in web.xml:
/actionnamespace/welcome.action
And also by adding the following filter mapping attributes in struts filter
dispatcher in order to be loaded which ever the type of dispatch by the web
container
struts2
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
---
struts.xml
--
image/jpeg
img
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
Manch
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.
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
--- 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: [EMA
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 comm
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 ser
> 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 w
> 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
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
nod
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, an
> 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 whe
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 sing
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 />
(Notice: this is freema
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,
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 = in
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
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:
use
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 2
61 matches
Mail list logo