Hi All,
I'm already familiar with the basic process of using DynaForm with
String properties (to capture the HTTP request params) and then copying
the DynaForm values to a business object.
Now I want to use indexed properties (eg multi-row edit screen). So my
DynaForm looks something
maybe you can wrap your anchor in a Form and use the onclick event
handler to set the value and submit the form by "post" method, using
hidden attributes.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 October 2006 4:49 PM
To: user@struts.apache.or
Hi All
Some news from the JAVAWUG, UK.
Max Antoni's presentation on Object Oriented JavaScript and AJAX is
available now
http://video.google.com/videoplay?docid=379277225413483138&hl=en
More details here and here
http://jroller.com/page/javawug?entry=bof_21_report
http://jroller.com/page/javaw
So you know when exactly 30 mins elapses? right.?
immedietly after this you can invalidate the session right?
Regards
PH
On 10/3/06, sowjanya chimmani <[EMAIL PROTECTED]> wrote:
Hi All,
In our webapplication (struts based) we are using Ajax code
(as part of header in all jsp)whi
Hello,
Forgive me for bringing up what seems to be a topic that's been discussed
here a lot: Issues with the back button.
I am using the token mechanism to prevent multiple form submits.
My jsp is invoked with a ForwardAction where I set the token.
The jsp submits to an action that checks if t
It is not clear what you are asking. Is the problem that
- the session is not being maintained even when setting the timeout to
30 minutes
- even after 1/2 hour the session does not timeout
An observation, "pinging" the server every 10 seconds will create a
lot of unnecessary work on the server.
Hi All,
In my application in each request jsessionid is passed both in cookie as
well as in url. I have enabled the cookie then why it is appearing in the
URL also.
Regards,
Sunil
On 9/7/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
sunil virmani ha scritto:
> But Is there any way to hide
Hi All,
In my application in each request jsessionid is passed both in cookie as
well as in url. I have enabled the cookie then why it is appearing in the
URL also.
Regards,
Sunil
I'm just starting to learn struts.. have been doing JSP/servelts/tomcat
for about three years.. downloaded and am running successfully example
5 from this pg..
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html
am using tomcat 5.5/jvm 1.4
this struts example (and all other weba
Hi thre,
I am trying to give you an example. Multibox basically fills in using a
string array. i am sure you are aware of that.
in the code " toBeAddedList" is the string array in the form bean that has
the userID's of the selected users. So, when the check boxes are
http://www.junlu.com/msg/287317.html
As stated in above response to (your) similar question, the first
request that is returned will have jsessionid= appended. To get rid of
it you can try having the first page of the application be a "dummy"
page that merely redirects to the real page.
The reas
I have a filter and I'm trying to check a session value is set for security.
I'm putting my filter to the /admin/* url mapping.
My filter is getting hit but then if I try to do a redirect to a
struts action it seems like I get some kind of infinite filter loop
and is choking, I'm kind of new is t
Sounds like you have the situation under control - you are probably
forwarding to an /admin/ action. As for the redirect, from a servlet
filter, a plain redirect is the best approach.
Don
On 10/4/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
I have a filter and I'm trying to check a session valu
Hi All,
I have included printable.jsp page in the
layout-tiles file. I have some jsp
variables (such as href, onchange etc see below in
file) in printable.jsp, which i want to
use inside tiles such as top.jsp, bottom.jsp but i
cannot use those variables as they are not
available. I get some
How about basing the value of the tag on some computed value involving the
data in question (like adding up all the hashcodes and using that as the
token value). Then if the data changes, it's a different token?
(*Chris*)
On 10/4/06, pantichd <[EMAIL PROTECTED]> wrote:
Hello,
Forgive me for
If the user has a workflow that involves cycling back, give them a link
or button to cycle back with. If the users need to use the back button
as a regular part of their use of the application the application is
poorly designed.
Chris Pratt wrote:
How about basing the value of the tag on some
Normally, with filters you chain when you're finished, not redirect. The
only time you would redirect would be if the user wasn't logged in and you
wanted to redirect to your login page and then a plain ol' redirect should
work fine as long as you don't redirect to a page that's also under the
pr
That's because it's a JSP include, not a tile. JSP knows nothing about the
tile scope and since the inclusion gets done by the JSP processor, not the
tiles plugin, the tile variables aren't available. Make that a tile instead
and you shouldn't have a problem.
(*Chris*)
On 10/4/06, Vinod Kumar
I don't know if I agree with your last statement. I often prefer to use the
back button rather than buttons that are on the screen right in front of my
face, so it's often much less about site design and more about user
preference. But not accounting for someone using the back button, that
would
Chris Pratt wrote:
>
> How about basing the value of the tag on some computed value involving the
> data in question (like adding up all the hashcodes and using that as the
> token value). Then if the data changes, it's a different token?
> (*Chris*)
>
Interesting! Hadn't thought of that.
Sorry, I haven't, it just seemed to make sense.
(*Chris*)
On 10/4/06, pantichd <[EMAIL PROTECTED]> wrote:
Chris Pratt wrote:
>
> How about basing the value of the tag on some computed value involving
the
> data in question (like adding up all the hashcodes and using that as the
> token valu
Using the token does account for the user hitting the back button.
Having been building web apps for almost 10 years now, I'm very much of
the back button is evil school. If there's an element on the page that
allows going to the beginning of the workflow and token is used to
prevent acciden
True, I definitely wouldn't use my suggested token trick in an eCommerce app
to allow resubmitting an order, unless you could back out the old order and
put this one in it's place (but even that would be risky). It might be
useful to determine if you should show the user a page asking if they wou
Hi Chris,
I made the printable.jsp page as a tile and
included it in the layout-tiles.jsp page. But still I
can't access the variables declared in tile
"printable" in another tile.
I try to access the href variable like
= "contact.jsp">This is link
but I get Undefined variable: href
out.pri
If they are tile scope variables, you either need to put
at the top of the page to put them in page scope or
use the tiles tags to insert the values (like )
(*Chris*)
On 10/4/06, Vinod Kumar <[EMAIL PROTECTED]> wrote:
Hi Chris,
I made the printable.jsp page as a tile and
included it in th
Hi Chris,
Thanks for your quick response. I could not make it
to work. sorry, I am new to this stuff. In which tile
should I include ? I want to
import all the variables available in tile
"printable.jsp" and put them in request scope, so that
I can use them in all of the tiles.
Thanks
Vinod
---
Hello... trying to use Commons Validator 1.3.0 with Struts 1.2.9, seeing
the following error... anyone have any ideas? Everything seems fine until
the first check... config files follow trace. Thanks!
20061004-17:29:17,766 DEBUG [Servlet.Engine.Transports : 0]
(ModuleUtils.java:167) Get module
uts 1.2.9, seeing
> the following error... anyone have any ideas? Everything seems fine until
> the first check... config files follow trace. Thanks!
>
>
> 20061004-17:29:17,766 DEBUG [Servlet.Engine.Transports : 0]
> (ModuleUtils.java:167) Get module name for path
> /testVi
On 10/4/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
Hello... trying to use Commons Validator 1.3.0 with Struts 1.2.9, seeing
the following error... anyone have any ideas? Everything seems fine until
the first check... config files follow trace. Thanks!
In the config files you posted, th
Not surprising, given where these config files came from :) Actually, we
upgraded Struts a while back and I doubt anyone looked at the config
files, but I'll do that tomorrow, thanks for pointing it out :)
(And yes, I fixed the validator problem... had to change the parameter
list in validator-ru
Hello,
Sorry for what is surely a FAQ from a struts newbie...
I'm trying to make a complex object available to my JSP so that
code in the JSP can access subobjects within the original object (it's
an Amazon Item object generated with XMLBeans). What is the right way
to make such an object ava
Then you should be able to go to the outermost tile and use
after you've imported the tiles
taglib and all the tile variables to be available to the jsp and jstl tags.
(*Chris*)
On 10/4/06, Vinod Kumar <[EMAIL PROTECTED]> wrote:
Hi Chris,
Thanks for your quick response. I could not make it
to
Is it possible to define an ArrayList of DynaValidatorForm for working
with indexed properties?
Or can I construct a DynaForm class in my action class to add it to the
Parent DynaForm array?
**
This message is intended for th
Maybe rather than having a dynaForm with a single array I should be
changing my form properties from String to String[]. If I do that am I
still moving into the area of indexedPropoerties? I thought I had read
about problems with validator and simple arrays? Any suggestions would
be helpful
Than
I have a Struts action which extracts field values from the request object
and then uses these values to set the name of a file which the application
reads from. The code responsible for forming the file name currently
resides in the action. Is this the best place to put it? This code cannot
be
That doesn't sound too egregiously wrong to me... generally speaking,
the code in a Struts Action should basically fall in one of two
categories (or both): flow control and/or data marshalling. Some also
say validation should go in the Actions, but I'm going to put that
debate aside for the sa
how about use of MappingDispatchAction ?
On 10/3/06, Don Brown <[EMAIL PROTECTED]> wrote:
If you want to call a different method on an action, use the "method"
attribute:
Don
On 10/3/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
> I'm trying to calldefferent methods in action on button press.
If you don't need session management, use the JSP page directive to turn
off sessions -- at least until the user logs in, if you have that kind
of website. The jsessionid is only for a stateful application, so if you
don't need sessions, get rid of them. That will solve your problem.
Paul
Ed
Hi All,
(Struts 1.2.4, Validator 1.1.3)
I have a DispatchAction which forwards to 3 possible Jsps (populated by
a single DynaForm)
Next, I added validations for each of the 3 JSP pages but now each
validation is different, it seems I need to clone the forms ???
But, also it doesn't
On 10/5/06, Rohit Dadhwal <[EMAIL PROTECTED]> wrote:
Have you ever come across something like this?
-- ---
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If you have then your mails sho
Hi Frnds,
I m developing one application using struts, in that I want to set the
access level.
Like Admin shd hv access to all the links, some A group should hv access
to certain link, group B should hv access to ceratin link...Though I hv
done that using setting "if" conditions in my JSP.
43 matches
Mail list logo