I have an example i used.
Its not the best but it worked for me
In the JSP page
.
Pri.
Adj.
...
in the action form
String[] primAdj = new String[listDevApprGrpList.size()+1];
for(int i=0;i wrote:
I forgot to mention that I am iterating
Even you ar settign all the values properly and getting the display
accurately. I do not think the changes you made to the Collection( in terms
of textboxes or checkboxes or Selections) will not reflect on the arrayList.
Atleast I failed in doing so. There are other ways liek using multiboxes,
ind
Gallagher, Jim (RBoS ITD&S Dublin) wrote:
Hi,
I'm having an issue with a formbean not containing the data I expect
when returned from a JSP. I suspect this is a common problem, but despite
searches I can't find a solution on the net. Any assistance will be
gratefully received.
M
Mano Chinthaka Dasanayaka wrote:
Hi All,
I have encountered an issue when uploading files through SSL. I'm Using
Struts 1.2, FormFiles.and it works on Fire fox.
Any Idea..?
Is there any IE 6.0 Settings to work this..?
Without knowing anything about what problems you're seeing, it's a bit
ha
'rapport' needs to be a property on your form bean, not a request
parameter/attribute. The 'property' attribute on the tag
tells Struts that the current selection is stored in that property. If
the value of any enclosed tag matches the value in that
property, the corresponding option will aut
Wendy Smoak wrote:
On 11/10/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Hmm, I'm surprised the report doesn't already distinguish deps marked
'optional' in the POM. Would it be sufficient to prefix the description
of each dependency with something like '[Optional: required when using
feature X
Youssef A. Mohammed wrote:
Hi all;
There is a requirement to display a message that are retrieved from the
backend system without the need to localize it tin the MessageResource
files.
That's the backend system will return a dynamic error message "ERROR 1 2 3"
and I just want to display t
Asthana, Rahul wrote:
Hi All,
Is JSTL and JSTL EL the library and expression language of choice in Struts 2?
I read about OGNL somewhere.What library does it use?
What are its advantages over JSTL?
JSTL is a standard, but only works in JSP files. It provides both an EL
and a set of custom tag
On 11/10/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Hmm, I'm surprised the report doesn't already distinguish deps marked
'optional' in the POM. Would it be sufficient to prefix the description
of each dependency with something like '[Optional: required when using
feature X]'?
We don't contr
Wendy Smoak wrote:
On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote:
Sure, it should look better, but it still wouldn't split out optional
and required dependencies. For example, it shows Rife Continuations
as required but it is very much optional.
My guess is that it would require some work
Levan Dvalishvili wrote:
There is small cavity regarding ajaxtags as a name :
, http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage
at the moment, good thing about it is that they use prototype,
Note however that there are issues with Prototype messing with intrinsic
Jav
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
Mark Menard wrote:
> Is there a way to dynamically parameterize a redirect result based on an
> http request parameter that you have used in the action your are redirecting
> from?
This isn't exactly struts-2 specific, if I'm reading this corre
I believe that any unknown result parameters are automatically used as
request parameters for the redirect. Then, use an ognl expression for
your param value and provide a getter on your action for the value.
Don
On 11/10/06, Mark Menard <[EMAIL PROTECTED]> wrote:
Is there a way to dynamically
Is there a way to dynamically parameterize a redirect result based on an
http request parameter that you have used in the action your are redirecting
from?
In other words I'm doing some work in an action that is based on an ID that
was passed into it from the HTML form. I need to do some work, the
Excelent reply. To simplify your code a bit, you might look at something
like:
int j=0;
String[] strings = new String[list.size()];
Iterator i = list.iterator();
while(i.hasNext()) {
strings[j++] = String.valueOf(i.next());
}
String.valueOf() will automatically convert everything (including St
Thanks a lot, appreciate the clarification.
Needed it pretty bad.
- R
Levan Dvalishvili wrote:
There is small cavity regarding ajaxtags as a name :
, http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage
at the moment, good thing about it is that they use prototype,
script.a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Miro,
1. Please use your real name in your email address when posting to the
list. "temp temp" is a poor moniker.
2. While some of us will be happy to answer "purely" Java questions,
please mark such posts as [OT] (for "off-topic") and apologiz
There is small cavity regarding ajaxtags as a name :
, http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage
at the moment, good thing about it is that they use prototype,
script.acu.los, which in my opinion is lot faster and better that overweight
Dojo,
But this http://struts
Great going folks.
Thanks a lot.
robin
Wendy Smoak wrote:
On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote:
What's the best way to search through Struts user mailing list archives
...for already known issues . Just Google or do we have some search
functionality on the site that I didnt notic
On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote:
What's the best way to search through Struts user mailing list archives
...for already known issues . Just Google or do we have some search
functionality on the site that I didnt notice during a quick glance
Nabble is my favorite archive: ht
Robin,
I use http://marc.theaimsgroup.com/?l=struts-user for my mailing list
archive searching. Drop back to their main page, and you will see
there is a vast number of tech mailing lists archived there.
Google can also prove fruitful too, there are probably other places
that archive the mailing
Or actually you can just get it from your project structure, depending
upon your jsp and tld location.
Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]]
and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user
practice}
Then you can access the .tld as
<%@ taglib uri="/WEB-INF/
Hi Guys,
What's the best way to search through Struts user mailing list archives
...for already known issues . Just Google or do we have some search
functionality on the site that I didnt notice during a quick glance
thanks,
robin
--
The taglib URI should be the the http:// address, not the /META-INF
location. If you are unsure what the address is, open up the TLD files
and see.
-- Paul
Bruno Melloni wrote:
I have a strange problem, with Struts 1.3.5 in Eclipse 3.2.
- struts-taglib-1.3.5.jar is in the classpath.
- Insi
Hi Bruno,
The problem seems to be incorrect http://struts.apache.org/tags-logic"; prefix="logic" %>
here's what I have.
I know they changed it from Struts 1.1 to 1.2. << Unless they changed it
from 1.2 to 1.3.x as well, it should work for you.>>
You can give a shot with this. Or else just wait fo
Hi Bruno,
The problem seems to be incorrect http://struts.apache.org/tags-logic"; prefix="logic" %>
here's what I have.
I know they changed it from Struts 1.1 to 1.2. Unless they changed it f
You can give a shot with this. Or else just wait for some Struts 1.3.x
user to respond.
regards,
robin
Oh ok, sorry I was a little lost yesterday while trying all this.
I just read your responses carefully again and
gave it a shot. Its working now. :-)
I will keep the jsps under web-inf\jsp and the other resources under
webRoot itself.
thanks a lot to all who replied to this thread,
have a nice we
On Fri, 2006-11-10 at 16:32 -0500, Monkeyden wrote:
> That wasn't very pedantic of you to mispell it. :)
"Misspell?" Or was that irony? ;)
Ever-pedantic Chris
--
Christopher D. Goldman
[EMAIL PROTECTED]
-
To unsubscribe, e
Struts currently uses the session to store the explicit selected locale.
It will fallback to the request otherwise.
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Paul Benedict wrote:
In Struts 1.3.6, I hope to be providing a locale solution for Struts
which i
I have a strange problem, with Struts 1.3.5 in Eclipse 3.2.
- struts-taglib-1.3.5.jar is in the classpath.
- Inside the jar, in /META-INF/tld are the struts tld files.
- I have the following in index.jsp:
<%@ taglib uri="/META-INF/tld/struts-logic.tld" prefix="logic"
%>
- Ecli
That wasn't very pedantic of you to mispell it. :)
On 11/10/06, Ed Griebel <[EMAIL PROTECTED]> wrote:
On 11/10/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> I dont know 'pendantic' so I would suggest System.arrayCopy as in
>
> (Sorry for being pedantic...)
LOL, TGI Friday! :-)
-
We have a similar situation. I use a the contextInitialized event of a
javax.servlet.ServletContextListener to initialize our logging environment
before Struts gets hold of it.
(*Chris*)
On 11/10/06, Ping Yu <[EMAIL PROTECTED]> wrote:
Hi, people in the list,
I still got problems in log4j w
On 11/10/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
I dont know 'pendantic' so I would suggest System.arrayCopy as in
(Sorry for being pedantic...)
LOL, TGI Friday! :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
I dont know 'pendantic' so I would suggest System.arrayCopy as in
assuming
Object aobject[];
//you can use arrayCopy as in
System.arrayCopy(list,0,aobject,0,list.size();
//later on cast as Object
String str = (String)aobject[0];
(Sorry for being pedantic...)
M-
This e-mail communication and an
Good choices :)
One word of caution: I don't think we ever updated that cookbook example
for the latest version of APT... the latest version was a pretty
significant change, so I wouldn't expect it to work with the example
as-is... we did try and make the migration path as easy as possible, so
whi
Try using . indexId should
be replaced with 0, 1, 2, ... as it iterates and the underlying
BeanUtils will extract the n-th element from the collection. I don't
think this will if you are using an unsorted collection (set, map)
because they don't support get(int)
On 11/10/06, Van Nguyen <[EMAIL P
Here is an example of a Multi box that you can use.
the property "selectedAssets" is a string array property of the form bean.
In your action class you should get the list of "appvr_grp_id" 's that are
selected.
Hope that helps
regards,
Uday Karrothi
On 11/10/06, Van Nguyen <[EMAIL PROTECTED]> wrote:
I have two ArrayList that I need to iterate through:
// write info contained in collection2
// something like this… but not working??
collection1 and collection2 will always have the same number of re
I am with Christopher on this Daniel. You should appreciate the fact someone
actually took time to answer your problem.
I feel embarrassed if somebody actually said that to me, but not angry. I
would put a better question next time.
Keep the questions coming Daniel, give everybody a chance to le
Hi Frank,
Thanks a lot for your reply on this issue.
I did give it a quick shot to Java Web Parts. Very well done !
a) I liked and will use the following in my current webApp.
1) 2nd JWP cookbook example - AJAX style populating the drop-down
selections.
2) SessionInactivityFilter
b) I wi
Hi,
I have two ArrayList that I need to iterate through:
//
write info contained in collection2
//
something like this… but not working??
collection1 and collection2 will always have the same
number of records…
Any ideas?
Hi, people in the list,
I still got problems in log4j warnings.
I didn't use digester in my application. I have my own log.jave file
and I would like to initialize my log.java file before Tomcat/struts
initializes the Digester logger.
Right now, the log4j warning occurs immedia
Maybe I'm just being pendantic, but this isn't really related to Struts at all.
java.util.Arrays and java.util.Collections provide a lot of methods to
transform between arrays and collections. You will find your answer
after some reading and some experimentation.
On 11/10/06, temp temp <[EMAIL P
Hi there,
I would catch a control's (radionButton etc) event to fire the form's submit
method to call its action etc.
- You can catch the onclick event of the radio button and submit the form
and hence call its action.
onclick="document.forms[form-name-from-struts-config.xml].submit();" />
I want contents of java.util.list as string array
Object aObject[]= list.toArray();
How can I cast this to string []?
Thanks & Regards
Miro
-
Everyone is raving about the all-new Yahoo! Mail beta.
Five reasons to migrate
1. Your S1 application is ready for its own version 2.
2. Your S1 application is still under development or in the planning stages.
3. You inherited a S1 application that needs work, and you don't
understand how it works.
4. You would like to integrate a few JSF compone
On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote:
Sure, it should look better, but it still wouldn't split out optional
and required dependencies. For example, it shows Rife Continuations
as required but it is very much optional.
My guess is that it would require some work in whichever Maven
On Fri, 2006-11-10 at 07:21 -0600, Daniel Chacón Sánchez wrote:
> Jajajajaajaja a coffee?, What you need is little of humility, I also had
> helped people answering their questions, the difference is that I´m not a
> prepotent person like you, this post was made by one partner because I was
> in a
Sure, it should look better, but it still wouldn't split out optional
and required dependencies. For example, it shows Rife Continuations
as required but it is very much optional.
Don
On 11/10/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote:
> Hmm...
On 11/10/06, Don Brown <[EMAIL PROTECTED]> wrote:
Hmm...that list is very deceptive as it doesn't break down which
dependencies are optional and which are required. Only a couple are
actually required, while the rest are either fully optional or only
required if a certain plugin is used. Any wa
You can use Dojo with any web framework. In Struts 2, we provide some
tags that wrap Dojo components, making it a bit easier to integrate
Dojo, but by no means is Struts 2 required to use Dojo in a Struts
app.
Don
On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote:
Hi All,
Thanks a lot for Str
Hmm...that list is very deceptive as it doesn't break down which
dependencies are optional and which are required. Only a couple are
actually required, while the rest are either fully optional or only
required if a certain plugin is used. Any way we could clean that up?
Don
On 11/10/06, Wendy
I'm trying to create a web page using JSP,Struts and Javascript...
the page has a form where there are two radio buttons and a menu box.
now the idea is when one clicks on a radio button the menu will show the
items related to this categoryfor this I've to use java script on click
function
Hi All,
Thanks a lot for Struts community's help so far regarding all my questions.
I developing a webApp using Struts 1.2.x
I have been searching around for good jsp taglib for tab controls.
And specifically that allows sub-tabs in those tabs. I have been hearing
about dojo on this forum in Stru
On 11/9/06, Dion Gillard <[EMAIL PROTECTED]> wrote:
Is there doco somewhere on the minimum requirements for S2?
Does this help?
http://struts.apache.org/2.x/struts2-core/dependencies.html
--
Wendy
-
To unsubscribe, e-mail:
That worked a treat... thanks for the quick response.
I did a quick check with and and the *hack*
seems to work there too.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: 10 November 2006 17:08
To: Struts Users Mailing List
Subject: Re: without writing a in the r
Also, if WorkflowException is your own, you might want consider
exception chaining. Sun included pretty good support for it since JDK
1.4.2
(http://java.sun.com/j2se/1.4.2/docs/guide/lang/chained-exceptions.html)
.
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sen
On 11/10/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
1. Can I use struts tags (eg ) without wrapping them in an
(I'm pretty sure the answer is no).
2. Can I wrap my tags in but somehow not output to the
resultant HTML.
I was hoping for a render="false" or similar. eg:
Hi, I'm wanting to use the struts tags to render my inputs. The only problem is
that my JSP page only draws a small section of the form (perhaps a single
) and is called via AJAX. So, I have 2 questions:
1. Can I use struts tags (eg ) without wrapping them in an
(I'm pretty sure the answer is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Miro,
temp temp wrote:
> For good exceptional handling should I create all my methods in
> try catch block and throw exception in the catch block with
> e.printstacktrace()
I would recommend simply doing this:
> }catch(Exception e) {
>
Hi Mike.
That's what I hoped.
There is a request.GetParameter("rapport"), but that does not do
anything to the html:select
Soren
-Oprindelig meddelelse-
Fra: Mike Baroukh [mailto:[EMAIL PROTECTED]
Sendt: 10. november 2006 17:33
Til: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Emne:
Hi.
I think that you don't have so specify "selected" : struts will
automatically add it if the value of the option is equals to the value
of the property ...
Mike
Søren Blidorf a écrit :
How can I convert the following to Struts:
one
two
tree
This does not work:
one
two
tree
It is
How can I convert the following to Struts:
one
two
tree
This does not work:
one
two
tree
It is very important for me to specify which is "selected"
BR.
Soren, DK
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
For good exceptional handling should I create all my methods in try
catch block and throw exception in the catch block with e.printstacktrace()
Exammple
public void processQueryResults(Map metaInfo, Map
entityInfo) throws WorkflowException {
Hi,
I'm having an issue with a formbean not containing the data I expect
when returned from a JSP. I suspect this is a common problem, but despite
searches I can't find a solution on the net. Any assistance will be
gratefully received.
My form consists of general data about a spec
On 11/9/06 2:18 PM, "Levan Dvalishvili" <[EMAIL PROTECTED]> wrote:
>
> Hi All! I have been recently trying to come up with at least top 5
> justifieable reasons , why one should consider migrating from struts 1.3 (or
> even 1.2.X) to struts 2,bascially , what are the gaining points that justify
>
Jajajajaajaja a coffee?, What you need is little of humility, I also had
helped people answering their questions, the difference is that I´m not a
prepotent person like you, this post was made by one partner because I was
in a hurry and can´t answer her in the moment, but thank you for your 2
minu
Hi everybody,
is what my code is good?
and How to recover the value of a "radio"?
Regards,
Nab.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
68 matches
Mail list logo