Hi
> We are using Struts 1.2.9 and writing the JSP page as below:
>
>
>
>
>
>
>
As I remember, Struts 1 don't support such evaluation, you can use
Nested Tags [1] , example are here [2]
[1] http://struts.apache.org/1.2.9/userGuide/struts-nested.html
[2] http://www.mail-
Hi,
I have the below scenario:
I have a java bean as below:
public class Address
{
private String city;
private String state;
and public getters/setters for the above attributes;
}
and I have the ActionForm as below:
import Address;
public class EmpForm extends ActionForm
yorlick kilroy wrote:
I'm sorry but I only just read about javassist now, as I had no idea what it
is nor does. How do I include it? do I just drop it in my lib folder like I
do with other Struts plugins? How do I use it? and what exactly does it do?
Yes, just drop the .jar into your WEB-INF/li
Are you using Java 6?
I tried your example and it works for me with Java 5 but not with Java
6.
I ran it through the debugger and the problem is in the struts class
SimpleAdapterDocument. The getXmlStandalone method always throws the
operationNotSupported exception.
public boolean getXm
It sounds like what you really want to do is get the OutputStream from
the response and stream the XML to it, then return null from your
action.
(*Chris*)
On Wed, Jul 2, 2008 at 12:31 PM, Eric Hamacher
<[EMAIL PROTECTED]> wrote:
> I have an org.w3c.dom.Document which needs to be streamed as XML.
If you don't have a stylesheet, what were you expecting the XSL result to do?
(*Chris*)
On Wed, Jul 2, 2008 at 10:46 AM, Eric Hamacher
<[EMAIL PROTECTED]> wrote:
> I took your last attachment, altered it (we don't use JDOM only the
> org.w3c.dom stuff . . . but it looks like it should work for
>
I said :
"The ideal solution would be to have a custom result which somehow
receives from the action some type of object which contains Files in a
tree hierarchy."
I did just that. I invented an object "Directory" which holds files and
other "directories". My action assembled this object. My
On Wednesday 02 July 2008 23:44:16 Eric Hamacher wrote:
> Followed my instincts, problem is solved. No need to reply!
>
So what did your instinct tell you?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Followed my instincts, problem is solved. No need to reply!
-Original Message-
From: Eric Hamacher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2008 1:10 PM
To: Struts Users Mailing List
Subject: zipping files for download
Hello:
I started writing a Struts 2 action which zips
Thanks for the response. Yes, it's there. I am starting to doubt
whether XSLTResult will in fact transform my Document. I am looking at:
http://cse-mjmcl.cse.bris.ac.uk/blog/2007/09/10/1189430125294.html
as a reference for using XSLTResult without stylesheets. I was hoping
that somebody else
No, you do not. Those defaults are to make your job easier in most cases, you
can return any string as long as it matches the "name" attributes.
- Original Message
From: Milan Milanovic <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Wednesday, July 2, 2008 3:21:33 PM
Subject: Re:
Thanks heaps Jeromy, I'll grab the 2.1.3 snapshot and try again.
A vanilla sample app would be great (others would probably find it useful too).
Cheers
Mike
2008/7/3 Jeromy Evans <[EMAIL PROTECTED]>:
> Mike Watson wrote:
>>
>> Hi Jeromy,
>>
>> I've finally found time to try to resolve this but
Do you have a public getDoc() method on your action?
John
> -Original Message-
> From: Eric Hamacher [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2008 3:31 PM
> To: Struts Users Mailing List
> Subject: XSLTResult problem
>
> Struts 2.0.11
>
>
>
> Hello:
>
>
>
>
>
>
I have an org.w3c.dom.Document which needs to be streamed as XML. I
originally got the idea of using XSLTResult to achieve this from a blog:
http://cse-mjmcl.cse.bris.ac.uk/blog/2007/09/10/1189430125294.html
which claims that it could done with no stylesheet. In a way, this
doesn't surprise me
Hi All,
I took a look at using MessageStoreInterceptor to preserve messages across a
redirect and didn't like what I saw, it's too hard to configure. So I wrote an
Interceptor RedirectMessageInterceptor (included below) that will automatically
preserve messages across a redirect or redirectAc
Oh, thank you Lukasz. So, I just return string, I don't need to use
predefiend Action.SUCCESS, etc.
--
Thx, Milan
Lukasz Lenart wrote:
>
>> No, I haven't. But, how do I choose "result1" or "result2" from
>> InputActions'
>> "save" method ?
>
> Base on the result from execute()
>
> public Str
STRUTS SL. Mailing List wrote:
The Struts-config.xml is as follows:
.
.
.
and the catalina.out I get this error.
WARN No puedo serializar atributo de sesi?n FormCircuitos para sesi?n
772D050829571AEA6C6E7135C8BE60DA
That's not an error, it's a w
You don't have a stylesheet? What are you expecting the XSLTResult to
do, if you don't have any XSLT to process?
L.
Eric Hamacher wrote:
I took your last attachment, altered it (we don't use JDOM only the
org.w3c.dom stuff . . . but it looks like it should work for
org.w3c.dom.Document). Now
Milan Milanovic wrote:
I have an SessionAware-based action class, where I put some variables into
session when user came to the page which is backed up with that action
class. I'm wondering what is validity of that session object, because I'm
not sure if I have possibility to clear user session ?
Gabriel Belingueres wrote:
Hi,
Is there any value in adding the serialVersionUID to all our actions?
My idea is just to add a @SupressWarning("serial") to each action.
AFAIK, the actions are newly created in each request and are never put
into session or application scope (by Struts itself at l
I am struggling with the whole "extending theme" functionality in
struts2. Either I'm doing something incredibly stupid or there's an
issue with extending themes in struts2 (2.1.2 to be more clear). From
what I've gathered from the Struts 2.x documentation is that I should
be able to just simply
> No, I haven't. But, how do I choose "result1" or "result2" from InputActions'
> "save" method ?
Base on the result from execute()
public String execute() {
if (something) {
return "result1";
} else {
return "result2";
}
}
Regards
--
Lukasz
http://www.lenart.org.pl/
---
No, I haven't. But, how do I choose "result1" or "result2" from InputActions'
"save" method ?
--
Thx, Milan
Struts Two wrote:
>
> Have you tried:
>
>
> // First result
> /pages/Finish.jsp
> // Second result
>
> second
> /second
Hello:
I started writing a Struts 2 action which zips up the contents of a
directory on the filesystem and downloads it. Everything was fine until
I discovered that java.util.zip.ZipOutputStream requires an OutputStream
in its constructor. It doesn't seem like a good idea to get a reference
t
I took your last attachment, altered it (we don't use JDOM only the
org.w3c.dom stuff . . . but it looks like it should work for
org.w3c.dom.Document). Now when I use it within an as a result
. . .
?
Does ? need to be the location of a stylesheet? I don't have one,
so can I just say:
Have you tried:
// First result
/pages/Finish.jsp
// Second result
second
/secondparam>
true
${id}
__
Connect wit
Dear Lukasz,
no I need to have someting like this:
// First result
/pages/Finish.jsp
// Second result
second
/secondparam>
true
${id}
And to choose it from my action class. How ?
> So, that's it ? But, what in the case if my page should be supported with
> another action class (in another namespace) ?
You can use instead full file path, not just fille name
Regards
--
Lukasz
http://www.lenart.org.pl/
-
Thanks Lukasz.
So, that's it ? But, what in the case if my page should be supported with
another action class (in another namespace) ?
--
Thx, Milan
Lukasz Lenart wrote:
>
> Use params in result
>
>
>/pages/${pageName}
>
>
> and in InputAction define getPageName()
>
>
> Rega
Use params in result
/pages/${pageName}
and in InputAction define getPageName()
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
The mail list software must have scraped it off. I'll send it to you offline.
(*Chris*)
On Wed, Jul 2, 2008 at 5:28 AM, Eric Hamacher <[EMAIL PROTECTED]> wrote:
> Thanks Dave and Chris. Chris, there was no attachment on your email.
> Could you send it again? Thanks again.
>
> -Original Me
Hi,
I need to choose sometimes one page to show, but someting another, from the
same action.
For example, when user click on "save" link in .jsp, I want to go to
Finish.jsp, but sometimes I want to go to some other page, that is handled
by another action class (so, it is not in current namespace)
I'm sorry but I only just read about javassist now, as I had no idea what it
is nor does. How do I include it? do I just drop it in my lib folder like I
do with other Struts plugins? How do I use it? and what exactly does it do?
On Tue, Jul 1, 2008 at 1:22 AM, DNewfield <[EMAIL PROTECTED]> wrote:
Hi Jeromy,
I've just wrote the generic ExtendedActionMapper ;)
Which is the best way to share stuff like this?
V
On Wed, Jul 2, 2008 at 3:33 PM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> Vanja Petreski wrote:
>
>> Hello,
>>
>> Is it possible to solve the following problem in some other way th
O.K. Lukasz, this works now! Thanks.
--
Milan
Lukasz Lenart wrote:
>
>>
>>
>>
>>showChanges
>>/second
>>
>>
>
> Add staticParamIntreceptor [1] or use paramsPrepareParamsStack [2] and
> define result like
I'm sorry to have made you spent time. I think I just found what the problem
is. It seems Firefox was waiting for an answer to remember the password for
the logon screen. Unfortunately there was no indication whatsoever. I
reloaded the page several times and I've noticed it.
Thanks anyway for the
Do your logs show that the action is getting triggered? Can you provide the
code for the JSP that is not getting rendered?
jk
On Wed, Jul 2, 2008 at 10:10 AM, Pierrot52 <[EMAIL PROTECTED]> wrote:
>
> I have an action that normally brings a signon form but for some reasons
> Firefox hangs. The U
I have an action that normally brings a signon form but for some reasons
Firefox hangs. The URL to load the form is
http://my_host:8080/cobbCalculator2/signonForm.action
As I said it works fine with Firefox 2 but not with Firefox 3.
The Struts2 application is running on a Glassfish server.
I'm
Hi all,
I wish to prevent a user to input a date in my datetimepicker. For this, I'm
using the command:
disabled ="true"
Unfortunately, the user is able to input the date.
does anyone know what is the problem?
--
View this message in context:
http://www.nabble.com/s2%3A-howto-disable-the-use
We would need a lot more details than this. What should it be doing; what
parts don't work? What code of yours appears to be causing problems?
On Wed, Jul 2, 2008 at 9:50 AM, Pierrot52 <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have developed a Struts2 application that works well under Firefox 2,
Hello,
I have developed a Struts2 application that works well under Firefox 2, IE
6, IE 7, Safari, and Opera.
Unfortunately it doesn't work under Firefox 3.
Has anybody made this observation and found a solution to this problem?
Regards.
--
View this message in context:
http://www.nabble.com/Str
Vanja Petreski wrote:
Hello,
Is it possible to solve the following problem in some other way then
implementing the custom ActionMapper (Struts 2.0.11.1):
1) struts.action.extension=html
2) I am using the rome rss s2 plugin and have the special namespace for
feeds: /feeds
3) I am accessing fee
The Struts-config.xml is as follows:
.
.
.
and the catalina.out I get this error.
WARN No puedo serializar atributo de sesi?n FormCircuitos para sesi?n
772D050829571AEA6C6E7135C8BE60DA
And the question is how the serialization DynaActionF
Mike Watson wrote:
Hi Jeromy,
I've finally found time to try to resolve this but haven't had much luck.
Just to recap, I'm looking to be able to do something similar to the following:
/book -> returns a list of books
/book/123 -> returns book with id 123
/book/123/chapter/1 -> return chapter wi
Thanks Dave and Chris. Chris, there was no attachment on your email.
Could you send it again? Thanks again.
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2008 11:40 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: XSLTResult probl
Hello,
Is it possible to solve the following problem in some other way then
implementing the custom ActionMapper (Struts 2.0.11.1):
1) struts.action.extension=html
2) I am using the rome rss s2 plugin and have the special namespace for
feeds: /feeds
3) I am accessing feed f1 (for example) via .
Dear Lukasz,
yes, that's exactly because I'm wondering why id is not passed in my example
?
--
Thx, Milan
Lukasz Lenart wrote:
>
> Hi,
>
>> does paramsPrepareParamsStack by default exist ?
>
> Upsss once again, paramsPrepareParamsStack exist and already
> contain staticParams intercepto
Hello, I did a sample s2 page with multilanguage.
I did sample.properties for action for [default,en,ru,es,de]
I have default language=ru for server.
Then I change "accept-language" to [az|en] in FF browser.
When i enter the page with it shows "П
Hi,
I am trying to use ajax div and file control in same form. But div is not
loading properly instead it shows [object HTMLDocument] on firefox and
[object] on IE. But if I try to use them separately then both are working
fine. Anyone has has any idea what is happening ??? Here is the code
/*
> I am developing a web application using the struts 2 framework. In one
> of the actions, I need to create a file at the run-time at a particular
> location relative to the path where my web-application is deployed. How
> can I retrieve the path at which my Web-app is deployed at run-time in
> my
Hi,
for example:
filterConfig.getServletContext().getRealPath("")
in FilterDispatcher.init(...) method.
Best greetings,
Paweł Wilegus.
On 02/07/2008, Aggarwal, Rajat <[EMAIL PROTECTED]> wrote:
> Hi All,
>
>
>
> I am developing a web application using the struts 2 framework. In one
> of the acti
Hi All,
I am developing a web application using the struts 2 framework. In one
of the actions, I need to create a file at the run-time at a particular
location relative to the path where my web-application is deployed. How
can I retrieve the path at which my Web-app is deployed at run-time in
m
Adam Hardy wrote:
Dimitris Mouchritsas on 01/07/08 16:50, wrote:
Yes, for Struts 1.3.8, sorry I forgot to mention. Actually what I did
(but
it's more or less specific for the action) is to just forward, not
redirect.
But I've got another question now? Is there a way I can pass a
parameter in
53 matches
Mail list logo