Hi Lance,
Just curious, I implemented multipart request handler using Struts 1.2,
ActionForm and Actoin class ( not using Fileter...) .
like:
protected ActionForward executeAction(
ActionMapping mapping ,
ActionForm form ,
HttpServletRequest request ,
As mentioned, this is not possible in a container independant manner.
I would recommend that you consider refactoring your code so it uses
Map objects instead, as xwork/struts 2 does.
Nils-H
On 3/26/07, tom tom <[EMAIL PROTECTED]> wrote:
Hi,
We got lot of allready written code with method
sig
Hi,
I have used struts 1.2 in my app. Now, I want to upgrade to struts 1.3.8 and I
get the error "cannot find symbol Globals.DATA_SOURCE_KEY".
I don't find information in the struts javadoc, what I have to use instead. Can
someone help me?
kind regards,
Frank
---
Hi Joey
Could you send me a testcase for the problem you are having, like a sample
action that will break the json generation? I thought about adding
parameters a while back, the problem is that the parameters work for the
action, but if you have an object returned by one of the getter methods in
Hi trad-ex,
In action code, the ActionServlet has already parsed the request for you
so request.getParameterMap() magically works. In a filter scenario, the
request has not yet been parsed. I have since abondened attempting to
filter multipart requests in my filter. Luckily most of our actions
I have such struts-config.xml:
http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>
...
File DeleteActionBean.java:
package ru.delete;
import javax.
Have you considered using Spring to inject DataSource bean into the context?
http://www.springframework.org/docs/reference/beans.html
M--
---
This e-mail message (including attachments, if any) is intended for the use of
the
Hi,
no, I have defined a data-source in my struts-config.xml:
If I write the attribute "key", I will get null in my Servlet:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Frank,
Otto, Frank wrote:
> I have used struts 1.2 in my app. Now, I want to upgrade to struts
> 1.3.8 and I get the error "cannot find symbol
> Globals.DATA_SOURCE_KEY".
As promised, Struts has removed the DataSource support from Struts 1.3:
http:/
Hmm, I guess my earlier reply got eaten.
--- "Otto, Frank" <[EMAIL PROTECTED]> wrote:
> no, I have defined a data-source in my
> struts-config.xml:
I thought data-source was removed in 1.3?
1.2:
http://struts.apache.org/1.3.8/struts-core/dtddoc/struts-config_1_2.dtd.html
1.3:
http://struts.apac
I am moving an app from S1 to S2 that has a
third-party grid component. In S1 it looked like
this:
public ActionForward perform(
ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse resp)
{
try
{
GetHandler myGetHandler = new
The test action:
public class ExampleSupport extends ActionSupport {
public String getName() {
//a string of chinese
return "测试";
}
}
This action should get a json like this : {"name":"测试"},
the name property's length is 4,but json.length is 2.
So the last 2 character is cutted,and I
ge
Hi all,
I am using struts 2.0.6 and encountered a submit problem.
I have a form with enctype="multipart/form-data" property. there're
other text fields beside . when I submit, at most time it
works fine, but I found that occasionally all fields are null. I have
replaced commons-fileupload, commo
What container are you using? If you're using Tomcat 5, or any
container that supports JSP 2.0, and you're using the Servlet 2.4 schema
in your web.xml, then EL expressions in your JSP will be natively
supported, without any additional jar files.
Also, if you're using a JSP 2.0 container, you sho
--- "Otto, Frank" <[EMAIL PROTECTED]> wrote:
> I have used struts 1.2 in my app. Now, I want to
> upgrade to struts 1.3.8 and I get the error "cannot
> find symbol Globals.DATA_SOURCE_KEY".
>
> I don't find information in the struts javadoc, what
> I have to use instead. Can someone help me?
I do
About adding parameters,I thought maybe it's easy to
specify the root object of the json result while you
use the action object as default.for example:
currentUser
currentUser is a ognl expression.
I could get more flexible json format than now,
and I thought it's very easy to do that.
I jus
you can just register a custom result which
implement com.opensymphony.xwork2.Result.
Find detail in struts2 document.
On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
I am moving an app from S1 to S2 that has a
third-party grid component. In S1 it looked like
this:
public ActionForwar
I have 2 forms in a jsp posting to different methods of the same action.
I have different validation that must be performed in the action
validate method for each of the two methods. How do I distinguish
between the two different methods when the validate method is called or
do I need to create 2 s
--- David Harland <[EMAIL PROTECTED]> wrote:
> I have 2 forms in a jsp posting to different methods
> of the same action. I have different validation that
> must be performed in the action validate method for
> each of the two methods. How do I distinguish
> between the two different methods when
This is validation I must do in the action validate method. Unless I can
reference session scope variables in the validation xml files.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 26 March 2007 15:31
To: Struts Users Mailing List
Subject: Re: wildcard validate me
--- David Harland <[EMAIL PROTECTED]> wrote:
> This is validation I must do in the action validate
> method. Unless I can reference session scope
> variables in the validation xml files.
Never mind then :/
I know prepare${methodName} works; I don't know if
that's made its way into the validatio
Hi, People
Glassfish v2 b39 - Struts 2.0.6 - jdk 1.5.0_10
How Can I disable the FileUploadInterceptor from action ?
It's very slow my page. I have two div my page.
I lost 5 seconds on FileUploadInterceptor and more 5 seconds in each div.
My page load in 20 seconds.
Any
Just found this. It's already been added.
http://struts.apache.org/2.x/docs/key-changes-from-webwork-2.html
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 26 March 2007 15:44
To: Struts Users Mailing List
Subject: RE: wildcard validate method problem
--- David Har
Hmm, when I have this class
public class PopulateGridAction extends ActionSupport
implements ParameterAware, Result
With this method:
public void execute(ActionInvocation invocation)
throws Exception
It never gets called. Do I have to do something
special in my struts.xml? My logfiles says:
Hi Everyone,
I'm having an interesting experience with the use of the iterator tag
(Struts 2.0.6).
I have an action with getter method signature which is the same as
the getter of an iterator item.
As such when I'm within an iterator loop, and I call the getter of
the Action value, I ac
Hi All!
I have a simple button. It may be or .
If user click this button it will redirect to page /add.jsp. So how
can i do this? At this time i know only one way..
1) Create Action
2) Create ActionBean
3) Write in struct-config.xml such thing:
Thanks . Work
The glassfish .ear created all .jar in my root_context.
I deleted them and run very well.
But My application is very slow !!! I have an action and delay 10 seconds to
load with 50 tuples.
Any idea to improve performace Struts 2.0.6 ?
-Mensagem original-
De: Piero Sart
Hi,
I am running Struts2 under Websphere 6.1, and getting a lot of warning
messages in the logs. This is only happening under WebSphere 6.1, but it
works fine under Tomcat. Also, it's happening both for the Showcase
application, as well as my own applications in Struts2.
The following is t
Hi Tapio,
I just noticed your post after I posted mine the same day (so I took my post
out). I got it working temporarily in my application by bringing in the
static resources that are not found into my project and manually including
the resources, but I am definitely looking forward to the fi
Hi Alex-
Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) so if
Servlet responds with a 200 then Servlet cannot send a second one with a 404
Give us a bit on your environment JSF or Struts2 and which version
There may be a latency issue here .. tough to say w/o looking at t
I am using Struts2 version 2.0.6, but not using JSF. This is happening on
the vanilla version of the Showcase application as well, so nothing specific
to my code. I tried to upgrade to the latest Websphere fixpack but that
didnt help as well. Let me know if you need any other info.
Thanks,
Has anyone noticed that the Struts logo will not display in the
mailreader demo. Only the alt text displays.
I have deployed the example war from the 2.0.6 release to Tomcat 5.5.20
- the image is present in the context root.
Does anyone else get this problem?
Thanks Peter Milne
---
--- Peter Milne <[EMAIL PROTECTED]> wrote:
> Does anyone else get this problem?
Yep; there's a ticket for it already.
d.
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime short
I've looked at all the postings I could find on this topic and none of them
seems to address the proper accessing of nested tiles.
Does anyone know how can I access and output onto my page the value of a
tile nested within another tile? All I get when I try to output the value of
the nested tile
I am facing a problem using JS control taglib
I have two perpopulated lists when the page is loaded I see the two
lists with all the values . Suppose user submits the form with out touching
the lists ie the page gets loded and user clicks submit with out making any
changes to the list
have you tried
Eric Rank wrote:
Hi Everyone,
I'm having an interesting experience with the use of the iterator tag
(Struts 2.0.6).
I have an action with getter method signature which is the same as the
getter of an iterator item.
As such when I'm within an iterator loop, and I call the g
Hi,
Without refactoring I can move forward with the
following in the portlet class, and pass the req
object to the existing methods.
RenderRequest req2 =
PortletActionContext.getRenderRequest();
HttpServletRequest req
=(HttpServletRequest) req2;
I cant find any issues y
Thanks Adam,
Unfortunately, that doesn't work. Are there other implicit objects in
the OGNL value stack that might give a more direect reference to the
action?
Eric.
On Mar 26, 2007, at 5:10 PM, Adam Ruggles wrote:
have you tried
Eric Rank wrote:
Hi Everyone,
I'm having an interestin
Is it possible to use a DispatchAction but that some of the submit buttons
display the same name, but they redirect to different methods.???
I have tried this:
Activate
Activate
It keeps rendering the value as the submit button´s displayed label.
So what am I doing wrong?? What
Ok, suppose i have my usual form "MyForm", an ArrayList "listofT",
with objects of type T, and a field "fieldT" of type T. Is possible to
pass an object (not a string fields) of "ListofT" in the fieldT
directly, using only struts tags an nothing more (Javascript/Ajax), or
this is only Science Fict
--- Eric Rank <[EMAIL PROTECTED]> wrote:
> Unfortunately, that doesn't work. Are there other
> implicit objects in the OGNL value stack that might
> give a more direect reference to the action?
This isn't that, but there is the direct stack
reference method, like [0].username, [1].username,
etc.
Would anyone be able to let me know the ETA for release 2.0.7?
Thanks,
Rohit
I just realized I got the syntax wrong. It should be value="top.user.username" /> without the pound sign, of course I'm sure
you tried that as well.
Eric Rank wrote:
Thanks Adam,
Unfortunately, that doesn't work. Are there other implicit objects in
the OGNL value stack that might give a more
Probably later this week, but there's no guarantee that it will be GA
or even beta.
--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/
On Mar 26, 2007, at 9:13 PM, Rohit Dewan wrote:
Would anyone be able to let me know the ETA for release 2.0.7?
Thanks,
Rohit
--
Hi Lance,
Sorry for my misunderstanding your issue.
What I understood is:
Your Filter class works fine except file parameter.
Is this correct ?
So, after I looked over your implementation, I found the line below:
parameterMap = multipartHandler.getTextElements();
So, parameterMap has
You should define your custom result in a separate class,and you must
register your result
in your struts.xml,like this:
and you can use it :
I really thought you should read the document and source of "result".
you can download it from struts2 website.
rega
Thanks Dave,
I was hoping that I wouldn't have to resort to specification of an
index in the array of the ValueStack, but it works for now '-]
Thanks for the tip,
Eric Rank
On Mar 26, 2007, at 7:05 PM, Dave Newton wrote:
--- Eric Rank <[EMAIL PROTECTED]> wrote:
Unfortunately, that doesn
Thanks Adam,
I hadn't tried getting the property without the pound sign. That
syntax does work to get the value of the current item in the
iteration. However, getting the current item in the iteration isn't a
problem. My problem is that I need to access the method on the action
when in an
Oh looks like I read it backwards I thought the iterator variable is
what you were after. Here is a link that might be useful. The very
bottom of the page specifically.
http://cwiki.apache.org/WW/ognl-basics.html
It looks like the [1].top is the recommended method (at least it was for
webw
Hi,
I solved this 'response already committed' problem in my application by
writing own FilterDispatcher. Here's instructions ->
https://issues.apache.org/struts/browse/WW-1526
What is still not solved is how to make AJAX work in Websphere 6.1. I have
created issue for this -> https://iss
I don't know if this is a bug or if I'm doing something wrong but the if tag
in Struts 2 always returns false for the first run and then if I hit refresh
it gets the correct value.
In my action class I have a method like this:
getStatement() {
return true;
}
And then in my jsp I do someth
I thought it may be like this:
Hello World or
Hello World
On 3/27/07, Darren Salomons <[EMAIL PROTECTED]> wrote:
I don't know if this is a bug or if I'm doing something wrong but the if
tag
in Struts 2 always returns false for the first run and then if I hit
refresh
it gets the correct value.
52 matches
Mail list logo