Dear All,
I'm using struts 1.0.2.
I have a requirement where i need to show a column consisting of dropdown
lists. Every row of the table for the column shows a dropdown with the same
list of options.
I've used String[] getCategory() and setCategory(String[]) getter/setter in
thr ActionForm. On
el"/>
>
>
> Where the collection myOptions is a List of beans. Those beans have two
> fields value and label
>
> Hope that helps!
>
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 12:46 PM
> T
11:30 AM
Subject: RE: A column consisting of html:select widgets
> Atta,
>
> Can you post the relevant code both JSP and Java objects for us to look at
> and point you in the right direction?
>
> Thanks,
> Amit
>
> -Original Message-
> From: atta-ur rehman [ma
Action for the submittal.The ViewAction could populate the data from
> the DB and set multiple selected values depending on the values in the DB.
>
> Vijay
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 11:27 AM
&g
taSource field
> in the form.
> Put the form in the request space like this in the Action:
>
> aRequest.setAttribute(anActionMapping.getName(), myActionForm)
>
> then forward it to the JSP page.
> Do not do any funky javascript stuff (onLoad etc etc)
>
> It should work
set in the Action class or the values after submission of
the form.
I'd really appericiate any clues on this one!
Regards,
ATTA
> - Original Message -
> From: "atta-ur rehman" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL P
hello charlene,
for ascii code of character you could simple use java cast operation:
char c = 'A'
byte b = (byte) c;
now b should be set to 65. the ascii value of capital 'a'.
for converting a number to hex you can use Integer.toHexString(int) static
method. at the same time you can use Integer
Dear All,
I've been trying to for last three days to do this. Basically I've an HTML
table one of its column gives user to select Block Type. Block Type is a
list of reference values that are shown in an html:select element. Now to
handle this situation I've created String[] getter/setter for bloc
Sure, I can. And thanks for replying!
I've attached the JSP and Form class.
And yes, i thought that i might need indexed properties and did add the
index property getter/setter to the Form. but i cannot seem to submit the
form with indexed property getter/setter.
and by the way, we're using stru
yes, that's a good question. i guess the same way struts passes all the
correct selections to the Form object on submission ;)
while we are on the subject, could you please refer me some further readings
on Indexed Properties and how it could help me in this case?
Thanks for your time.
ATTA
---
so far i've found these two link related:
http://www.husted.com/struts/tips/006.html
http://jakarta.apache.org/struts/faqs/indexedprops.html
and i'm still lost!
i'm kind of confused on this. i would see this as a very frequent occuring
'problem' in data-driven web apps and by the response of my m
Dear all,
We have using Struts 1.0.2 for about last couple of years.
Now that Struts 1.1 is out. Are there any reasons for us to start thinking
moving to 1.1?
Any help or pointer to help will be greatly appreicated.
Regards,
ATTA
-
e: Reasons to move to Struts 1.1
> Struts 1.1 has tons of new features including validator, tiles, dynabeans,
> and map backed forms.
>
> David
>
>
> --- atta-ur rehman <[EMAIL PROTECTED]> wrote:
> > Dear all,
> >
> > We have using Struts 1.0.2 for about la
Dea all,
I've been reading an indexed properties article at:
http://jakarta.apache.org/struts/faqs/indexedprops.html
Whereas this article shows how to read indexed properties in the JSP page it
doesn't show how to submission of a JSP page will work with the indexed
properties. I tried to submit
Thanks. It was helpful.
But it still leaves me thinking if Indexed Properties are meant ONLY for
DynaActionForm type of forms?
I'm still unable to use them by using an array in my conventional
ActionForm.
ATTA
- Original Message -
From: "Paananen, Tero" <[EMAIL PROTECTED]>
To: "'Strut
Thanks very much Nick! It was indeed helpful. I was missing getter/setter
for individual list items!
now my form has following methods:
private String[] fruit = {"Apple", "Orange", "Banana"};
public List getFruits() {
return Arrays.asList(this.fruit);
}
public void setFruits(List l) {
this.fr
property "fruit" is not a
> property of the "oneF" bean. That the oneF object is not a bean with
> properties will give you problems. Depending on your goal, you need to do
> something different. What are you trying to do?
>
> I'
of blockTypes is part of your form,
> but it could be a collection that was in request/session/application
> scope. You would create form entries for the collection like you
> implemented in our previous emails.
>
> I have almost this exact code in a few places and it works well.
MAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 2:57 AM
Subject: Re: Indexed Properties
>
>
>
>
>
> Atta,
>
> It sounds to me like you have it. As long as your names match up, it
> should work fine. Ajay has given a full code example that looks good.
>
&
Thanks.
you see my problem is i don't know how to get the updated values when the
form is submitted? my beans collection is updated, my indexed getter/setter
are not called? so where are the new values or even the same values when i
submit without changing anything at all on the form?
this is my
so you are saying that ideally the the beans collection in my ActionForm
should be updated on form submission?
- Original Message -
From: "Paananen, Tero" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 10:30 AM
Subject: RE: Indexed
Okay.
my form-bean definition looks like:
while the action is:
my form class extends ActionForm.
any ideas?
ATTA
- Original Message -
From: "Paananen, Tero" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 10:43
d properties are named correctly. You should see block[0].id,
> block[0].name, block[0].category.
>
> If none of this helps, I'm not sure where else to look. It sounds like
> everything else is lining up...
>
> Nick
>
>
>
>
>
> &q
Hello Mona,
is ABC is bean that has six properties that you need to show? and then you
have a collection of ABC objects in a List or Vector? if so, you can use the
indexed properties to capture all the changes done on the page.
and yes, usually one submit button is enough for six hundred values!!
hello sridhar,
if you've been able to display the page with all your IpAddress bean in the
collection, you're quite colse. Now on your form add a "IpAddress
getIpAddress(int index)" this method should retun the appropraite IpAddress
object at the given index of the your collection. that's it! now
hi all,
excuse me if this sounds off topic!
can somebody please point to some references on how to incorporate a
dynamically built tree-like structure in a struts app? can struts-menu be
used for this purpose? any other suggestions?
thanks.
ATTA
-
t/index.jsp
>
> Aaron Bates, the Tree-Man has a wonderful site which
> explains how to build a nice tree using nested tags.
>
> Thanks a lot Aaron. you have saved my life more than
> once.
>
> regards
> Ashok
>
> --- atta-ur rehman <[EMAIL PROTECTED]> wrote:
>
hi james,
could you please explain, for a struts newbie, what do you mean by
I'm using DispatchAction with 2 abstract base actions between my actions and
the dispatch action. The first one has helper methods for functionality not
requiring authentication, and the second one (which extends the f
ings
> Did you look at the attached text file?
>
>
> --
> James Mitchell
> Software Engineer / Struts Evangelist
> http://www.struts-atlanta.org
> 770.822.3359
> AIM:jmitchtx
>
>
>
> - Original Message -
> From: "atta-ur rehman" <
Okay. its not a struts questions and probably should be sent to a JavaScript
forum. but i spirit of Struts; here is what i would call a very crude method
of doing it. i hope it would give you a starting point.
function doIt() {
var today = new Date();
var fridays = new Array();
for (i = 1;
Nick,
It is a consice article on message resource usage. Thanks.
In our scenario, for the sake of maintainablity given the number of entries
in the resource files, we have separate resource files for Labels and
Messages. Sometimes you have to show a message like:
"First Name is required."
where
hi,
what do you mean by "when i try to dispay it"? are you using
tag or some other mechanism?
in your JSP page have you tried:
ATTA
- Original Message -
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 10:32 AM
Subject: 2 message reso
in Action class problem
> Hi
> yes if i do that it works fine, but my problem is the
> following
> some error messages come from maps.properties file,
> which is default and some come from
> approval.properties file, so is there a way to make a
> single tag work for both
sure, it will!
- Original Message -
From: "jeff" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2003 1:37 PM
Subject: struts and filters
> will struts work with filters ?
> i am using filters now, and want to start using struts.
>
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2003 1:59 PM
Subject: RE: How to Turn off Struts logging?
> Can someone point me to the archives?
>
> Thanks
>
>
Hello Shahfazal,
As i understand from the 'applicantId' getter, you want to use these
checkboxes as a selecting indicator. If so, create a String[]
getter/setter in your ActionForm, let say:
setSelectedApplicants(String[] ids)
String[] getSelectedApplicants()
now in your jsp you can write:
Well, I think your resource file is missing header and footer properties.
try to add
errors.header=
errors.footer=
at the top of your resource file.
hope it helps.
ATTA
- Original Message -
From: "Ali Khan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 2:18
hello Antoine,
what it is that you want to 'detect'?
Regards,
ATTA
- Original Message -
From: "Gilbert, Antoine" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 10:39 AM
Subject: aliases
Hiya
I have a little database question a
with jdbc-idb crash..
> for example, not using "AS" with jdbc-odbc crash
>
> so sometime i have to use "AS" keyword in SQL and sometime not..
>
> -Message d'origine-
> De : atta ur rehman [mailto:[EMAIL PROTECTED]]
> Envoyé : 10 février, 2003 14:05
d tell you what words are reserved.
>
> -Dave
>
> > -Original Message-
> > From: atta ur rehman [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 1:12 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] aliases [SQL SELECT column ali
programming, but if it is a solution which works...
>
> Thomas
>
> At 20:15 10/02/2003, you wrote:
> >well some bd must have the "AS" to work properly...
> >
> >I would like to dynamicly detect it..
> >
> >Event with DatabaseMeta
For your "orderDetail" textbox you could have setOrderDetail(String[]) and
String[] getOrderDetail() getter/setter in your ActionForm class.
Hope this helps.
ATTA
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 3:45 PM
Subject: post
Dear all,
Struts 1.0.2.
Are form properties updated before the validate() method is called?
Regards,
ATTA
Dear all,
One of our JSP has html:file tag in it. Whenever validate method of the associated
ActionFrom returns any errors, the JSP container throws ClassCastException.
java.lang.ClassCastException
at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:171)
Any comments, anybody?
- Original Message -
From: "atta ur rehman" <[EMAIL PROTECTED]>
To: "struts users mailing list" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 9:33 AM
Subject: html:file tag and exception in validate method
Dear all,
One of
- Original Message -
From: "atta ur rehman" <[EMAIL PROTECTED]>
To: "struts users mailing list" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 9:33 AM
Subject: html:file tag and exception in validate method
Dear all,
One of our JSP has html:file tag
A hidden field, maybe as a form proerty, that your javascript would set to
appropriate value before the submit() call.
ATTA
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 3:11 PM
Subject: [Q] any ways to know which control was ch
Dear all,
This may seems a stupid question but I've been banging my head for last two hours to
no avail!
My Action class has a servlet.log() method call to write out a log message. Everything
runs fine but I can't see the log message anywhere. As a matter of fact, I don't know
which file it w
+1
ATTA
- Original Message -
From: "Christian Bollmeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 26, 2004 11:53 AM
Subject: Re: [OT] RE: Memory usage
> On Thursday 26 February 2004 20:12, Dhaliwal, Pritpal (HQP) wrote:
>
> Now.
+1
ATTA
On Mar 1, 2004, at 8:19 PM, Vic Cekvenich wrote:
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
4. I had the same frustrations that you have. I made the decision
that the
best way to restore the balance of good in the universe, was to try to
become the ki
Hello Jan,
One way I see it could be done is to move the hidden element out of both of
the links and in parameterize your JavaScript:sendFormNeuanlage() method
for 'bestaetigen' and 'aktualisieren' and let this javascript method set the
value of the hidden field.
function sendFormNeuanlage(what)
Hello Kazim,
A quick test on my JSP page with Strtus 1.1 in place just works fine:
<%
String[] names = {"joe", "cindy"};
session.setAttribute("names", names);
%>
what's the error message you're getting?
ATTA
- Original Message -
From: "Syed Kazim Hussain" <[EMAIL PROTECTE
Well, Kazim, with this description you can hardly expect to get any help at
all!
What's logoff process? What's it doing? What's the exception? Is the
underlying code for logoff process a state secret?
ATTA
- Original Message -
From: "Syed Kazim Hussain" <[EMAIL PROTECTED]>
To: <[EMAIL P
ont know how the user logs off, there is no log off process, no session
> invalidation being done anywhere.
>
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 13, 2004 3:33 AM
> To: Struts Users Mailing List
> Subject: R
You might want to try tag instead.
ATTA
- Original Message -
From: "Joao Batistella" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 12:59 PM
Subject: Testing a GLOBAL_ERROR
> I'm trying to test if I got an Global Error with th
hi there,
only way i know for achieving this is to extend struts' tags and either
override the getStyleClass() method or add a new property
getErrorStyleClass().
if you search archives on this list,
http://www.mail-archive.com/[EMAIL PROTECTED]/msg96068.html
Niall suggested a few days back about
How about:
jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
- Original Message -
From: "Bill Siggelkow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 10:13 AM
Subject: Re: Documentation Struts-config
> I think you will find that the struts-config_1_1.dtd
Dear all,
I've been struggling with this problem for about two days now; I hope
somebody here would be able to help me. In one of my actions I've
implemented Struts token functionality to keep user from using browser
Refresh button. Every thing works as promised except for when invalid token
messa
Any takers?
ATTA
- Original Message -
From: "atta-ur rehman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 10:17 AM
Subject: redirect="true" and Tiles; does it work?
> Dear all,
&
]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 2:13 PM
Subject: Re: redirect="true" and Tiles; does it work?
>
> --- atta-ur rehman <[EMAIL PROTECTED]> wrote:
> > Any takers?
> >
>
> I'll gi
L PROTECTED]>
Sent: Wednesday, March 24, 2004 3:07 PM
Subject: Re: redirect="true" and Tiles; does it work?
>
> --- atta-ur rehman <[EMAIL PROTECTED]> wrote:
> > TestProcessAction just forwards to "success" forward. But before it does
> > that it check
ar,
> the user clicks on refresh and causes TestProcessAction to execute again?
TRUE in Mozilla FireBird 0.7!!! And that's my default browser. In between
these messages I thought I should give IE try and on IE 6.0.2800 the action
is not called neither do I see the confrimation message of posting
TRUE in Mozilla FireBird 0.7. In IE 6.0 I still see /processTest.do!
- Original Message -
From: "atta-ur rehman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 4:11 PM
Subject: Re: redirect="true" and
I can confirm the stated behavior for both Mozilla FireFox 0.8 and Netscape
7.1 too.
- Original Message -
From: "atta-ur rehman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 4:15 PM
Subject: Re: re
t; browser to request "/showInvalidTokenMessage.do" and in fact that's what's
on
> the address bar. If my interpretation is incorrect, somebody please let
me
> know. If this is a browser bug, maybe it's time to upgrade to Firefox
0.8.
>
> ,
> Hubert
>
> ---
Dear all,
To show a drop down list I'm using tag and storing a collection object
in the session to fill this list up. Everything works fine. My only question is that
when would this list would be removed from the session? Would Struts framework remove
it or it would be there forever until ses
Dear all,
When does STRUTS framework removes ActionForm object from the session, if at all?
Any help or pointers to help on this topic is appreciated.
Regards,
ATTA
en the user saves a form I remove the collection.
In
> general, I try to keep common collections in the ServletContext.
>
> David
>
>
>
>
>
>
> >From: "atta ur-rehman" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EM
Hi,
How do I include multiple parameters in the tag? currently I got it
working for one parameter like:
now, what if I want to add another parameter to this list?
thanks.
ATTA
---
> From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> Sent: Thursday, October 17, 2002 3:37 PM
> To: Struts Users Mailing List
> Subject: Re: Session Cleanup
>
>
>
> On Thu, 17 Oct 2002, atta ur-rehman wrote:
>
> > Date: Thu, 17 Oct 2002 13:36:41 -0700
> >
aig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 17, 2002 1:36 PM
Subject: Re: Session Cleanup
>
>
> On Thu, 17 Oct 2002, atta ur-rehman wrote:
>
> > Date: Thu, 17 Oct 2002 13:36:41 -0700
> &g
ibute("someName", myCollection);
>
> The jsp you forward to can get the myCollection object by saying:
>
> in JSTL: ${requestScope.someName}
>
> in jsp expression <%= request.getAttribute("someName") %>
>
> Does that help?
>
> Dave
>
>
&g
om/j2ee/sdk_1.3/techdocs/api/
>
> Look at HttpServletRequest and HttpSession
>
> David
>
>
>
> >From: "atta ur-rehman" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Ma
When does struts framework remove ActionFrom objects from the session, if at all. I'm
worried if I'd be making my session object too large. Moreover, what are the best
practices for storing collections in the session? How and when to remove
these collections from the session?
Regards,
ATTA
Dear all,
While conditionally forwarding to another jsp page my Struts/Tiles page throws this
exception:
java.lang.IllegalStateException: reset() failed - data has already been sent to client
I don't understand what's going on. Any help would be greatly appreciated.
Regards,
ATTA
Dear all,
It seems that "errorPage" page directive doesn't work if we have struts and tiles. Is
it so? If yes, how do a get equivalent functionality. I always get an
InvlaidStateException that says that server can't take me to error page 'cas some data
has already been sent to client.
TIA,
AT
Error Page and Struts+Tiles
> 2002. november 14. 03:12 dátummal atta ur-rehman ezt írtad:
> > Dear all,
> >
> > It seems that "errorPage" page directive doesn't work if we have struts
and
> > tiles. Is it so? If yes, how do a get equivalent functionality. I
Dear all,
Here is my "layout.jsp" file:
<%@ page errorPage="ErrorPage.jsp" %>
The "menu" tile is a JSP page that could throw an exception. Now whenever an exception
is thrown on the "menu" tile I want to goto JSP Error Page. What I get instead is this
exception:
[Exception
consistent
> Through out the entire application. Plus, exception handler can be reused
> in different
> Web application with the entire enterprise.
>
> Hope this would help,
>
> -danny
>
> -Original Message-
> From: atta ur-rehman [mailto:
it, so that the perform method will catch this exception and
route
> it to the
> Targeted VIEW.
>
> Hope this would help,
>
> --danny
>
> -Original Message-
> From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 18, 2002 10:57 AM
> To: Struts Use
hError.do, which map it to a
> Action that
> You extended from your abstract action class. This action would do all
the
> necessary
> Stuff with your Exception if there is one or create a new exception and
> throw it.
>
> --danny
>
> -Original Message-
> Fro
t; <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 1:05 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
> I thinks so ...
>
> Good luck...:)
>
> --danny
>
> -Original Message--
s-config.xml,
> Web.xml and Wala... You have it up runing.
>
> Let me know if anything else I can help you with ... :)
>
> --danny
>
> Ps. Don't know how advance this technique is, but I do hope that Chuck
> Struts book, and Ted/Credic/..'s
> Struts book mention
Howto handle this behavior in Struts+Tiles
> You got it ... :)
>
> --danny
>
> -Original Message-
> From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 18, 2002 2:30 PM
> To: Struts Users Mailing List
> Subject: Re: Howto handle this behavior in Str
lt;[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 2:37 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
> No problem... I've learn from others the same way...
>
> --danny
>
> -Original Message-
> From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
>
id for other in your
Struts
> apps.
>
> --danny
>
> -Original Message-
> From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 18, 2002 4:02 PM
> To: Struts Users Mailing List
> Subject: Re: Howto handle this behavior in Struts+Tiles
>
>
>
And there can
> only
> Be one of this page within the entire apps Create this page and have
it
> Forward to the right action mapping that handle error...:)
>
> Sorry all these are coming out of my head as I can remember it correctly
or
> not...:)
>
> danny
>
> -O
sage -
From: "Trieu, Danny" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 5:54 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
> Let me know the result :)
>
> -Origin
88 matches
Mail list logo