-Original Message-
From: Filippov, Andrey
Sent: Wednesday, November 07, 2007 6:17 PM
To: Struts Users Mailing List
Subject: RE: struts2 + jaas on jboss...
Hi Martin!
Thanx for Your answer!
Here is my SessionLogin.java file:
-
I did what you suggested and i saw the setInterval() function; which works!
Thanks for pointing me to the right direction and the learning experience!
Jeromy Evans - Blue Sky Minds wrote:
>
> Grish wrote:
>> So I ended up with the following code:
>>
>> var myDiv = dojo.widget.byId("myDivId");
-- Raghuveer Rawat wrote --
>Amit,
>looks like problem is with your struts.xml. You have set Tiles Result but
>your result is jsp page. I think you need to change it to tile definition.
Hi,
Thanks for the response. Thats not my problem. I do not need
TilesDecorationFilter for tha
On Nov 8, 2007 12:29 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Gary Affonso <[EMAIL PROTECTED]> wrote:
> > > Look at the "Dynamic Method Invocation" section,
> > > 1/2-2/3 of the way down.
> > Well, that explains it. The wildcard feature seems
> > to come from s1 (which I never used) and
Dave Newton wrote:
--- Gary Affonso <[EMAIL PROTECTED]> wrote:
> Look at the "Dynamic Method Invocation" section,
> 1/2-2/3 of the way down.
Well, that explains it. The wildcard feature seems
to come from s1 (which I never used) and the
"dynamic method invocation" feature wasn't
very well d
TANG Xigen wrote:
>
> Thank you very much for you reply!
>
> but i try remove from , s2 still do not
> bind my beans.
>
>
> also, i have no idea about the concept of defaultStack,could you
> explain to me more or where i can get some help pages about it?
For interceptor docs, this is a good
You can preserve errors and messages from one action to another, across
a redirect, with the MessageStoreInterceptor. See here:
http://struts.apache.org/2.x/docs/message-store-interceptor.html
This lets you avoid chaining which, of course, is usually evil. :-)
- Gary
jjgould wrote:
Ted, e
Grish wrote:
So I ended up with the following code:
var myDiv = dojo.widget.byId("myDivId");
myDiv.timer.interval = newInterval;
Great!
Also you need to restart the timer by stopping it and starting again for the
new interval to take effect. Would there be some kind of function I can use
t
ipting and Ajax Projects"
(2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
You could try exposing ActionSupport's
actionMessages/fieldErrors/etc by putting getters in
your first action; I'm not quite sure how the chain
interceptor decides how to copy properties though.
d.
--- jjgould <[EMAIL PROTECTED]> wrote:
>
> Ted, et. al.,
>
> I am also interested in accessing t
Thanks for the reply!
Sorry about the example, the references were indeed wrong in my example but
the code was using the right references. My problem was when I would refer
to myDiv.updateFreq it would be undefined. But when I used your simple
script I was able to get the div widget and access th
Is there a simple of way globally setting the date format for conversions.
For example is there somewhere I can use set property
Date.format="dd/mm/"
Z.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Ted, et. al.,
I am also interested in accessing the previous action from the target action
of a "chain" result. But, the reason I want to get to that action is not
because of any bean properties, but because I need the action errors, action
messages, and field errors that may have been placed th
hi actually i tried using that tutorial and got a pdf with no data in it only
page and column titles.
i dont know why..
Stacktrace of my sun application server, it has no problem. i dont know why
the report is not filled with the data. here is my code:
public class EIS_HR_004_JASPER extends eis
Thank you very much for you reply!
but i try remove from , s2 still do not bind my
beans.
also, i have no idea about the concept of defaultStack,could you explain to me
more or where i can get some help pages about it?
Thanks !
-Original Message-
From: Dave Newton [mailto:[EMAI
You are bypassing the S2 defaultStack interceptors by
specifying a single in your action
configuration, no?
d.
--- TANG Xigen <[EMAIL PROTECTED]>
wrote:
> Hi all,
> my new work is about transfer my web layer to
> struts2, and when
> i write my first struts code, i find strut2 action
> poj
--- Gary Affonso <[EMAIL PROTECTED]> wrote:
> > Look at the "Dynamic Method Invocation" section,
> > 1/2-2/3 of the way down.
> Well, that explains it. The wildcard feature seems
> to come from s1 (which I never used) and the
> "dynamic method invocation" feature wasn't
> very well documented
Hi all,
my new work is about transfer my web layer to struts2, and when
i write my first struts code, i find strut2 action pojo can not bind
it's beans when a web page post a form
my detail configuration below
=
Dave Newton wrote:
Curiously, action!input is not a part of the
framework I'm familiarwith. Can you point me
to some docs that describe it?
>
> http://struts.apache.org/2.x/docs/action-configuration.html
>
> Look at the "Dynamic Method Invocation" section,
> 1/2-2/3 of the way down.
Well, that
--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:
> Dave, does that mean you don't favour one approach
> over the other? ie. happy with multiple methods per
action?
I have no clear preference right now. I tend not to
have a lot of methods in my actions anyway, but I'll
group stuff together when it seems
Gunnar Hillert wrote:
Thanks for your helpful post!
You bet.
Interestingly, this also works with redirect
actions. Since I have not seen any examples anywhere out there, I thought I
also post an example for them:
mySuccess?fooId=${fooId}${bartId ? "&barId=" + bar
Gary Affonso wrote:
Your redirect needs to look something like...
myAction.action${foo ? '?foo=' + foo : ''}
Note that I'm pretty sure your OGNL lookups are not going to get
url-escaped.
I looked at the code for the result object. I was wrong. The url
*will* be escaped after t
Dave Newton wrote:
Again, not one *method*. That'd be crazy!
That's what's being discussed, I'm pretty sure, but
with an eye towards a different "prepare" cycle: the
whole Preparable lifecycle makes more sense if there
are multiple (request-handling) methods in an Action
class. If there's
Hi,
I am validating a condition : Input should not contain any of these
characters &,",<,>,%,(,)
And to achieve this my RegEx is : ^[^(\&|"|<|>|%|\(|\))]+$
Also here is my code snippet from validation.xml:
noSpecialCharacters
--- Gary Affonso <[EMAIL PROTECTED]> wrote:
> Ted Husted wrote:
>> Meanwhile, in Struts 1 there is a "DispatchAction"
>> that does much the same thing. From other
>> discussions, I gather that "multiple actions per
>> controller" is considered a Good Thing on platforms
>> like Ruby on Rails.
It's
Most (all?) of the built-in result types parse OGNL in
the "location" param, although you can turn off that
functionality via the "parse" param.
d.
--- Gunnar Hillert <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks for your helpful post! Interestingly, this
> also works with redirect
> actions.
Ted Husted wrote:
On Nov 6, 2007 8:10 PM, Gary Affonso <[EMAIL PROTECTED]> wrote:
For some reason folks new to s2 seem to get it backwards and want to
stuff a bunch of Action methods into a single Action class.
It's probably because the standard S2/WW validation workflow implies
that an Action
Hi,
Thanks for your helpful post! Interestingly, this also works with redirect
actions. Since I have not seen any examples anywhere out there, I thought I
also post an example for them:
mySuccess?fooId=${fooId}${bartId ? "&barId=" + barId :
""}
Cheers,
Antonio Petrelli on 05/11/07 08:14, wrote:
2007/11/4, Adam Hardy <[EMAIL PROTECTED]>:
Antonio Petrelli on 04/11/07 16:17, wrote:
2007/11/4, Adam Hardy <[EMAIL PROTECTED]>:
I want to concatenate 2 vars into a string in EL but since one is a
Long, EL
can't do it, and throws a NumberFormatExcep
--- Justin Frost <[EMAIL PROTECTED]> wrote:
> private String value;
>
> public String getValue() {
>return value;
> }
> I want to use the tag on "value".
What? Do you mean you want to iterate over the rows in
the report? "value" is a string; nothing to iterate
b Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__ NOD32 2644 (2
I am having a difficult time figuring out a solution to my problem.
I think I will start out with my class structure first. I only put in this
message what I thought was valuable.
public class Report implements java.io.Serializable {
private java.lang.String title = "";
Lalchandra Rampersaud wrote:
> I would like to integrate ajax within a struts app, but I have no
idea how
> to go about doing that.
Is there a question in there somewhere?
Ah, never mind, I was going to leave you with just the wise-a** answer,
but I'll be nice :)
AJAX isn't something you "
Why not redirect to the struts 2 action you want?
This is the jsp I use for error pages in tomcat:
<%response.sendRedirect("error.do");%>
where error.do points to a struts 2 action
Josh
On Nov 7, 2007 5:15 PM, matihost <[EMAIL PROTECTED]> wrote:
> > This error page is defined in my web.xml:
>
> This error page is defined in my web.xml:
>
>
>404
>/pages/errors/page404.jsp
>
You are using Tomcat web container. There is one issue regarding
element, but i assume there are the same reason for any url
used in web.xml.
https://issues.apache.org/struts/browse/WW-2025
In other w
I would like to integrate ajax within a struts app, but I have no idea how
to go about doing that.
__
Participe en Universidad 2008.
11 al 15 de febrero del 2008.
Palacio de las Convenciones, Ciudad de la Habana, Cuba
http://www.universidad2008.cu
ahh, sorry, you're right Steve. I just searched through all my code and
I've used href="actionUrl" for every ajax submit button that isn't using
the form's default action.
I've only used action="actionAlias" for non-ajax submit buttons.
I think the work-around you've found is the way forward.
Hi,
What's the optimal way to pass in extra parameters to customize report
generation. For ex : i want to show a paginated view of a report and need to
set JRExporterParameter.PAGE_INDEX ; can this be done without modifying the
actual source?
Thanks,
Joseph
http://struts.apache.org/2.x/docs/jasperreports-tutorial.html ; I was able to
use this as-is and get a report fine.
-Joseph
carmi_cd wrote:
>
>
> I need a tutorial that uses ArrayList of Object as datasource
> for JasperReports..do you know any?
>
--
View this message in context:
h
I modified the quickstart demo application by adding person.dateOfBirth
and person.age to do some tests with the validators.
I added a an intrange validator on the age and a daterangevalidator
and a regex validator on the date of birth plus
additional required validators on the new fields
We have a web jsp project that we are upgrading to Tomcat 6.0.
We have run into a few technical errors, and so I'm wondering whether or not
there are any issues in moving a struts 1.1 project to Tomcat 6.0.
Does anyone know if there is anything that I'll have to rework to move to
tomcat 6.0?
--
On Nov 6, 2007 8:10 PM, Gary Affonso <[EMAIL PROTECTED]> wrote:
> For some reason folks new to s2 seem to get it backwards and want to
> stuff a bunch of Action methods into a single Action class.
It's probably because the standard S2/WW validation workflow implies
that an Action class will have m
Amit,
looks like problem is with your struts.xml. You have set Tiles Result but
your result is jsp page. I think you need to change it to tile definition.
Try below...
struts.xml
To be honest, I don't think I fully understood the request the first
time I read it. In re-reading the original post, I wonder if you are
looking for functionality similar to the sourceforge download page...
Are you hoping to start the user's browser downloading, but rather
than waiting for the do
Hi Martin!
Thanx for Your answer!
Here is my SessionLogin.java file:
package com.fil.struts.login;
import java.io.ByteArrayInputStream;
import java.rmi.RemoteException;
import java.util.*;
import javax.ejb.CreateExcept
Hi,
Martin Gainty wrote:
Encapsulate the long running resource in run() method of a Thread here is a
good example
http://java.sun.com/developer/technicalArticles/Threads/applet/
M--
I think the Java Servlet specification discourages such misbehavior
(creating threads explicitly):
Copied f
Hello,
I have a js function that publish a topic to refresh a s:div.
With Firfox it works fine.
But with IE 6, the first time that I use this function I have a JS error
:
Line : 4872
Car : 1
Error : [object Error]
Code : 0
The second time it works...
Here is my publishing of the topic :
dojo.ev
Andrey-
Cursory look saysthat the result was either not defined and or the exepected
result was not returned for SessionLogin Class
Can we see the code for SessionLogin.java ?
also show us how the result is configured for SessionLogin in struts.xml
e.g.
/date.jsp
Ma
Encapsulate the long running resource in run() method of a Thread here is a
good example
http://java.sun.com/developer/technicalArticles/Threads/applet/
M--
- Original Message -
From: "rbtechno" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, November 07, 2007 9:12 AM
Subject: how to create back
If this is struts2, take a look at the executeandwait interceptor -
http://struts.apache.org/2.0.11/docs/execute-and-wait-interceptor.html
-W
On 11/7/07, rbtechno <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
>I need to implement file download functionality in struts application.
> when user submit
Andrey
Please DON'T HIJACK OTHER'S POSTS!
Create a new thread!
Antonio
2007/11/7, Filippov, Andrey <[EMAIL PROTECTED]>:
>
>
>
> Hi everybody!
>
> I have this problem - I could not manage to configure it to work together.
> Does someone happen to know how to do it? I appriciate any kind of
> infor
hi,
Just couple of ideas :)
If it is a lightweight object then you could serialize it and encode it
into the URL i.e. GET you can then use the attribute
and S2 will keep reposting the same serialized
value parameter over and over as part of the request.
Probably a cleaner solution IMHO wou
Thanks for your repsonse, I've double checked and I have included the tag. Including a default Action in the form is probably a
good idea, but doesn't seem to be impacting my AJAX buttons.
I'm still not getting the previous code to work, I have a work around using
the href attribute as below
Opps sorry :) besides these are rather hacks than a clean way to go ..
apologies :)
regards,
Giovanni
Antonio Petrelli wrote:
2007/11/7, Giovanni Azua <[EMAIL PROTECTED]>:
If it is a lightweight object then you could serialize it and encode it
into the URL i.e. GET you can then use the att
Hi everybody!
I have this problem - I could not manage to configure it to work together. Does
someone happen to know how to do it? I appriciate any kind of information!!
Initially I used the following source:
http://www.javaworld.com/javaforums/showthreaded.php?Cat=2&Number=2500&page=0
And I
Hi,
I need to implement file download functionality in struts application.
when user submits a filedownload request, FileProcessAction should delegate
the download process to another thread which runs as background process and
return to some other page without waiting for file downl
Hi all!
I'm looking for a convenience way to keep an Object over a single
request. I know that i could put it into the session and remove it
afterwards, but is there another way to handle this, without needing to
remove it explicitely?
For those who know Symfony (php framework) there is a se
dojo onchange function is inlined
in other words as soon as it is declared a function is assigned to
accomplish the event e.g.
"onchange", function (e) {
if ($("toggleSelection").checked) {
dojo.html.disableSelection($("enabletest"));
} else {
dojo.html.enableSelection($("enabletest"));
}
}
Hi everybody!
I have this problem - I could not manage to configure it to work together. Does
someone happen to know how to do it? I appriciate any kind of information!!
Initially I used the following source:
http://www.javaworld.com/javaforums/showthreaded.php?Cat=2&Number=2500&page=0
And I
2007/11/7, Giovanni Azua <[EMAIL PROTECTED]>:
>
> If it is a lightweight object then you could serialize it and encode it
> into the URL i.e. GET you can then use the attribute
> and S2 will keep reposting the same serialized
> value parameter over and over as part of the request.
Ahem Giovanni,
2007/11/7, Markus Demetz <[EMAIL PROTECTED]>:
>
> Hi all!
>
> I'm looking for a convenience way to keep an Object over a single
> request. I know that i could put it into the session and remove it
> afterwards, but is there another way to handle this, without needing to
> remove it explicitely?
>
>
Break in different classes is not the idea, in that way we need a class for
each method or action. The solution is:
{1}.jsp
In that way the method has the same name of the jsp, and the input is
variable!! Works fine!
Manuel Correa.
-Original Message-
From: Gary Affonso [mailto:[EMA
Your code references "quoteDetails" but the div you provided is
"myDivId". Other than that I don't see anything wrong with it.
updateFreq should be writeable using your approach although I haven't
tried it.
Try a simple script:
var myWidget = dojo.widget.byId("myDivId");
myWidget.updateFreq
Yes it possible and your attempt at specifying a different action for
each submit button is correct.
However:
Did you include ? If not, it's just doing a normal
submit, not XHR and that may explain the problem.
I think you should give your form a default action even though you won't
use it.
As part of my STRUTS 2 application i'm trying to use the AJAX theme to give
me 2 submit buttons within a Form that I can use to submit data to either
different Actions or different Methods in the same Action. Initially i
tried the following -
but th
Hi.
Im developing a web application at work using Struts2, Hibernate and Spring.
I have two classes with a parent/child (PCB - BrgpInfo) relation and i make
one JSP page to insert data to populate this 2 classes. The problem is that
i can read all the information but i cant insert data to the Set
>I suppose that it is a Tiles issue.
>I must admit that the code inside the TilesDecorationFilter does not
>convince me... Amit, can you repost this question to the Tiles Users Mailing
>list? I think that it is a Tiles bug.
>http://tiles.apache.org/mail.html
>Thanks
>Antonio
Hi,
Thanks, I have po
67 matches
Mail list logo