RE: [OT] - Request against Session

2004-02-11 Thread Janarthan Sathiamurthy
Hi, Even i had this simillar problem. The solution explained below is the way out. Thanks, Janarthan S Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] > Using session/hidden variables-what would be the best way to > carry the array of selected checkb

An off-road Question --- How to configure Eclipse for this feature.

2004-02-11 Thread ssrinivasrao
hi guys, When you usually move the mouse pointer with ctrl key pressed, over a class name (B), the class name would turn as a hyperlink (blue color), and on click of the word (B), it will open the class in question. Example -- class A extends B{...} However, I am able to achieve this

Re: Question on iterate

2004-02-11 Thread Manish Singla
bean:write cannot support index as bean:write just writes as plain text. See if html:text with configuration of attributes works for you HTH Manish Singla Patrick Cheng wrote: > Hi all, > > I guess it should be an easy question about logic:iterate. > > I can do this: > > indexId="ctr"> > > >

RE: Question on iterate

2004-02-11 Thread Mohan Radhakrishnan
Hi The following should work. The hidden variable is needed if you want to send it back to the proper indexed property when you submit. Mohan -Original Message- From: Patrick Cheng [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 11:57 AM To: Struts Users Mailing Li

aMapping.getInputForward() giving me grief!

2004-02-11 Thread Ben Fowler
Hi all, I'm stubbing out a fairly large Struts application for my boss. I've done all this before, but I seem to have had a massive attack of the stupids, because for some reason, I've encountered a configuration issue I can't solve. Now I've hit a slight roadblock. I've written an action, (

Question on iterate

2004-02-11 Thread Patrick Cheng
Hi all, I guess it should be an easy question about logic:iterate. I can do this: Question is. HOW can I just display the value, instead of setting it in the hidden field? I mean, essentially I'm trying to do a bean write: But the beanwrite doesn't support indexed. So, what's the right

RE: Need help on making Custom Validator work

2004-02-11 Thread Navjot Singh
if it shows you just blank page then something is *null* somewhere >-Original Message- >From: Pingili, Madhupal [mailto:[EMAIL PROTECTED] >Sent: Thursday, February 12, 2004 12:49 AM >To: '[EMAIL PROTECTED]' >Subject: Need help on making Custom Validator work > > >Hi All, >I have developed

RE: forwarding all request to the one JSP

2004-02-11 Thread Navjot Singh
jsp is servlet but servlet is not jsp. hope this point clears the point here. you should look into using jsp error page directive if you wish to redirect errors from jsp page. >-Original Message- >From: Bubeník Miroslav [mailto:[EMAIL PROTECTED] >Sent: Wednesday, February 11, 2004 10:10 P

RE: [OT] - Request against Session

2004-02-11 Thread Navjot Singh
first some clear thoughts. 1. In html everything is string. it doesn't understand anything else. 2. Session is created the first time the user has sent in a request unless you have overridden this behavior. 3. If user disables cookies (rare case now a days), storing objects in session is futile exe

RE: 2 PROBLEMs-Please Help

2004-02-11 Thread Navjot Singh
1. did you check the same property name in your messages.properties file. 2. ActionMapping is not deprecated. Reads the docs again. It saya "would have been deprecated". in fact, this class has 2 more subclasses. >-Original Message- >From: f f [mailto:[EMAIL PROTECTED] >Sent: Thursday, F

RE: Config issue

2004-02-11 Thread Navjot Singh
this can happen only when you have gannett (first )as context name AND gannett (second one) as module name. >-Original Message- >From: news [mailto:[EMAIL PROTECTED] Behalf Of Sam >Sent: Thursday, February 12, 2004 9:34 AM >To: [EMAIL PROTECTED] >Subject: Config issue > > >Greetings, > >I

Re: Config issue

2004-02-11 Thread James Mitchell
It is possible that this application is NOT the default (or in Tomcat terms 'ROOT' application). In that case, it is correct... > (servlet context) (your path mapping) ^^ If this application was the default,

Re: 2 PROBLEMs-Please Help

2004-02-11 Thread hgosper
Looks like you don't have the error string correct (ie you may have a misspelling) "errors.cartIsEmtpy" Check your properties file. However, usually you'll get an error saying "cannot find bean error in any scope" if that was the case... did you have any more console output? this somet

problem moving a form page into tiles

2004-02-11 Thread Vic Cekvenich
I have a page with a form that works on it's own, I can submit and will take me to the next page corrctly. However, I am trying to forward to a tile definition now and my submit will cause a null pointer exception and doesn't seem to find my bean in session. can anyone tell me what i'm doing

Config issue

2004-02-11 Thread Sam
Greetings, I'm a STRUTS newbie and am having a problem I can't seem to solve, searched everywhere I can think of and haven't found an answer. I have STRUTS 1.1 running with Tomcat 5.0.18 and am having a URI context issue. All of my html form actions are coming out with the wrong URI -- should

Re: Beginner question: form bean executing but action class not

2004-02-11 Thread f f
you don't supply the controller I hope this helps, Fredrich - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online

2 PROBLEMs-Please Help

2004-02-11 Thread f f
Hi gurus, I have 2 problems(or may be 2 bug reports) : 1. The point is IT CAN'T SAVE ERRORS ! Here is some relevant codes(some of them are simplified) === from TrySubmitOrderAction.java(on execute method) : // if object under the name

RE: Yellow background color in text fields?

2004-02-11 Thread Michael McGrady
You would not believe the machinations I went through to solve this. Lord, what a deal! Smoak, you smoke! At 02:05 PM 2/11/2004, Wendy Smoak wrote: > From: Michael McGrady [mailto:[EMAIL PROTECTED] > With the following code the text field background for email > is yellow, even though the backg

RE: Yellow background color in text fields?

2004-02-11 Thread Michael McGrady
Thank you Wendy. That's it. At 02:05 PM 2/11/2004, Wendy Smoak wrote: > From: Michael McGrady [mailto:[EMAIL PROTECTED] > With the following code the text field background for email > is yellow, even though the background for password is white. Any chance you have the Google toolbar installed? T

RE: [OT] - Request against Session

2004-02-11 Thread Wendy Smoak
> From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] > Using session/hidden variables-what would be the best way to > carry the array of selected checkboxes to the next page. (Please trim your posts.) I assume there's a String[] in your form bean. You can iterate over it and write out several t

RE: [OT] - Request against Session

2004-02-11 Thread Samyukta Akunuru
Using session/hidden variables-what would be the best way to carry the array of selected checkboxes to the next page. Sample appreciated. ~Thanks. -Original Message- From: Robert Nocera [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 4:13 PM To: 'Struts Users Mailing List' S

RE: [OT] - Request against Session

2004-02-11 Thread Robert Nocera
Using the session is certainly a possibility, I for the most part, take the opposite approach. Generally the only objects I store in the session are objects that are going to be accessed throughout the entirety of the user's access to the site, stuff like authentication information and role inform

Re: [OT] Sending email from struts

2004-02-11 Thread Sachin Pandey
Hi, Have a look at Velocity (Jakarta), templating engine. You can use that to substitute the user details and form the mail message. The template could just be a resourse file with velocity tags. Cheers Sachin - Original Message - From: "Matt Bathje" <[EMAIL PROTECTED]> To: "stru

RE: [OT] - Request against Session

2004-02-11 Thread Barnett, Brian W.
When a browser first requests a page from a web server, the session is created, so as Wendy said, "it's always there". The creation of the session has nothing to do with whether the user is authenticated/logged in or not. This is the way I understand it. If you are set on using hidden variables he

Re: Yellow background color in text fields?

2004-02-11 Thread Andrew Shirk
Your google toolbar? At 04:00 PM 2/11/2004, you wrote: With the following code the text field background for email is yellow, even though the background for password is white. I have nothing in my css that should trigger this. If I change the designation "email" to "password" the yellow backg

RE: Yellow background color in text fields?

2004-02-11 Thread Wendy Smoak
> From: Michael McGrady [mailto:[EMAIL PROTECTED] > With the following code the text field background for email > is yellow, even though the background for password is white. Any chance you have the Google toolbar installed? That's how it tells you that it can remember the value for certain fie

RE: Yellow background color in text fields?

2004-02-11 Thread Kevin Peters
Do you have a entry in your css file setting "text" to yellow? -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 5:00 PM To: [EMAIL PROTECTED] Subject: Yellow background color in text fields? With the following code the text field backg

Yellow background color in text fields?

2004-02-11 Thread Michael McGrady
With the following code the text field background for email is yellow, even though the background for password is white. I have nothing in my css that should trigger this. If I change the designation "email" to "password" the yellow background goes away. Anyone have any clue about what is cau

Struts and Denied Party Lists

2004-02-11 Thread john scizano
I was wondering if anyone has any experience with using the US Department Of Commerce's Denied party list within their struts applications? Are people using a service? Are there libraries that handle this?? If so, do any of them "work" better within a structs application? Thanks. ___

Re: [OT] - Request against Session

2004-02-11 Thread Mark Lowe
There was an interesting posting the other day on this, I tend to stick stuff in the session because I cant be arsed messing around. After things are working I then see whether i can move things out. There seems to be a lot on not storing stuff in the session i imagine because things can ge

Re: Dynamic generation of forms out of a config table in a database

2004-02-11 Thread Adam Hardy
Hi Tom, I saw a long thread last year on this mailing list discussing this subject. I can't remember the details but I do remember the person declared their success at the end. If you have a good search in the mail list archives on DynaActionForms and similar words, you are bound to find it.

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
yeah.. I read that too never seen it working though (made a nice article, ). You can specify indexed list property in validation.xml to do this, but didn't work when i tried so had to validate myself (albeit using commons validator). Perhaps works in 1.2.. I'd be interested if you (or anyon

RE: [OT] - Request against Session

2004-02-11 Thread Pani R
Thanks for the advice Wendy. I may end up storing all the values in the Session. But, on the other side, how would I store it in the hidden form variable. I think if I store it in my hidden variable, then its available to me in the action class via getParameter() which will return me a String o

AW: [OT] - Request against Session

2004-02-11 Thread Oliver Thiel
Hi Pani, I store the registration values in a DTO/VTO and put them in session scope. For the registration process the session is (called: REGISTER:), when the registration process is completed I invalid this session and create a new session (called: USER), which is necessary to see the other p

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Nathan Maves
Nice... This only thing that scares me is that you are creating an empty DAF. Can you then validate the first DAF's indexed properties using the validator? I have read that you can do this. Nathan Maves Sun Microsystems On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote: In a referring action.

RE: [OT] - Request against Session

2004-02-11 Thread Wendy Smoak
> From: Pani R [mailto:[EMAIL PROTECTED] > Now, when the un-logged user tries to register, where am I > suppose to store the Registration Values, Session or Request? > Which one will be the better approach and why? I'm not entirely sure when the session officially gets created, I just expect it

Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-11 Thread Adam Hardy
Since no-one has said anything about an error in the struts-examples app here, then I assume it's something in your setup that you or your colleagues have done. Did you do anything during install apart from set JAVA_HOME, CATALINA_HOME, PATH? Do you have anything in JAVA_OPTS or JAVA_OPTIONS? D

[OT] - Request against Session

2004-02-11 Thread Pani R
Hi: I have a very basic question which is related to a User Registration Process. Lets assume the user registration process spans across 4 pages. User is obviously not logged in to the system and apparently viewing all the content belonging to the public. Now, when the un-logged user tries to

Re: forwarding all request to the one JSP

2004-02-11 Thread snpe
You need error-page in web.xml see http://java.sun.com/developer/EJTechTips/2003/tt0114.html regards Haris Peco On Wednesday 11 February 2004 04:39 pm, Bubeník Miroslav wrote: > I know that JSP is servlet. > But: > part from web.xml: > > error > /2.jsp--- this should be class n

Again: ArrayList not getting values assigned from the JSP form on add or submit

2004-02-11 Thread Scott Ottesen
Hello- MY APOLOGIES! First post did not work; all example code didn't send right and was strung together I've searched high & low and did my homework to no avail on this problem... I have a Struts web app that includes a wizard input (multiple JSP pages and form-properties to one form-be

Need help on making Custom Validator work

2004-02-11 Thread Pingili, Madhupal
Hi All, I have developed a validator for a special validation. I have debug statements in this class and I enabled the validator and struts.action classes logging level to DEBUG. When I type an invalid field in my form and click on "search" button, the action gets invoked and I see all the message

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
In a referring action. DyanActionForm theForm = (DynaActionForm) form; //could use dynabean also DynaActionForm nestedForm = new DynaActionForm(); ArrayList nestedFormList = new ArrayList(); nestedFormList.add( nestedForm ); theForm.set("nestedForms", nestedFormList); On 11 Feb 2004, at 18:41,

ArrayList not getting values assigned from the JSP form on add or submit within the Action class

2004-02-11 Thread Scott Ottesen
Hello- I've searched high & low and did my homework to no avail on this problem... I have a Struts web app that includes a wizard input (multiple JSP pages and form-properties to one form-bean). Page 2 (JSP) of the wizard includes a table where the user will input information to be stored int

RE: forwarding all request to the one JSP

2004-02-11 Thread Bubeník Miroslav
I know that JSP is servlet. But: part from web.xml: error /2.jsp--- this should be class name, not jsp. Or I'm wrong? error * -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 5:36

Validation Error messages.

2004-02-11 Thread Vijay . Kukreja
Hello All, I am using validation framework for the validations on the page. When i click on submit button, it shows me the validations(required messages) which are required, That's what it is suppose to do. But unfortunately after clicking on the ok button on the javascript popup window. The c

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Nathan Maves
Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote: On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan

XDoclet for Struts - DispatchAction

2004-02-11 Thread Samyukta Akunuru
Hi, How do I generate xdoclet code for struts class- Dispatch actionThanks! Best Regards, Samyukta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Sending email from struts

2004-02-11 Thread Robert Taylor
Matt, we ended up storing our email templates in a configuration file and loading them into memory (using Digester) at application run time. The configuration templates can contain both plain text and HTML message versions. We leverage the java.text.MessageFormat API to replace place holders in the

RE: [OT] Sending email from struts

2004-02-11 Thread Robert Nocera
You might want to try something like velocity so you can store the text of the e-mail as a template and use velocity to insert the dynamic content. If there are really only a few simple fields, I would store the text in the database or an xml file and then use a simple string replace routine to re

Re: forwarding all request to the one JSP

2004-02-11 Thread Michael McGrady
This may be one time where it is worth reminding people that JSPs really are Servlets? At 08:31 AM 2/11/2004, Bubeník Miroslav wrote: Hi, is there any possibility in web.xml how can I forward all request for application XXX to one error JSP (without servlet)? Regards miro ---

RE: forwarding all request to the one JSP

2004-02-11 Thread Samyukta Akunuru
how about global-forward definition in struts-config.xml -Original Message- From: Bubeník Miroslav [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:32 AM To: [EMAIL PROTECTED] Subject: forwarding all request to the one JSP Hi, is there any possibility in web.xml how can I

forwarding all request to the one JSP

2004-02-11 Thread Bubeník Miroslav
Hi, is there any possibility in web.xml how can I forward all request for application XXX to one error JSP (without servlet)? Regards miro

RE: [OT] Sending email from struts

2004-02-11 Thread Nimmons, Buster
We also use the velocity template engine and it has worked like a charm. During initial development we simply sent a Hashmap of variable values to the Template helper class we created ( and created very rudimentary emails for testing) when the system was ready to go into production the end users si

RE: [OT] Sending email from struts

2004-02-11 Thread Michael McGrady
Sounds like you could use the MessageFormat class. At 08:04 AM 2/11/2004, Samyukta Akunuru wrote: Did you try using JavaMail API -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:03 AM To: strutslist Subject: [OT] Sending email from strut

RE: [OT] Sending email from struts

2004-02-11 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi Matt, The first thought that comes through my mind is this: consider your email as a burden plain text message (/stream). Then, look for a text parser or similars. Most surely, you will be able to find something related to XML / XSLT technologies. Hope this gives you some ideas. Regards, Fr

RE: [OT] Sending email from struts

2004-02-11 Thread Tim Kettering
For our project, what we're using is Velocity. I wrote up a simple velocity utility class that would take a velocity template, a hashmap of values, and return the formatted string, and then use that string for the mail body. Then you can keep your velocity files (.vm) in the classpath, and fetch

RE: Regarding Array List - Select

2004-02-11 Thread Nicolás de Amorrortu
You may define de following in the config file (XML). Then in your JSP you may use the collectio

RE: [OT] Sending email from struts

2004-02-11 Thread Samyukta Akunuru
Did you try using JavaMail API -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 10:03 AM To: strutslist Subject: [OT] Sending email from struts Hi all. This is kind of off topic as it is not really struts related, but somebody here would

[OT] Sending email from struts

2004-02-11 Thread Matt Bathje
Hi all. This is kind of off topic as it is not really struts related, but somebody here would probably have the answer. We have our application sending emails to users at some points and it is working fine. The problem is that we have the email message hardcoded into the Java, which we would like

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagi

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Nathan Maves
What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second

Re: java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an HttpSession

2004-02-11 Thread YErkan
> Yes From the request you get the session > Here is a good example of setting the session locale > http://www.jguru.com/faq/view.jsp?EID=1057614 > > I guess I dont understand why you would be accessing Session variables when > request.getSession(false) is in force. (you do not wish to create a

RE: Regarding Array List - Select

2004-02-11 Thread Samyukta Akunuru
Thanks. I read http://providers.sourceforge.net/examples.html please let me know name of the xml file we need to name it (to define providers in xml file)-is this compulsory... the following tags in jsp are not enough??? Finally please clarify metadata and e

RE: Regarding Array List - Select

2004-02-11 Thread Samyukta Akunuru
yes i did... here it is... public Driver getSupervisor() { return supervisor; } public void setSupervisor(Driver driver) { supervisor = driver; } Thanks! -Original Message- From: Lakshmanaperumal, Ganthan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 8

DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Nathan Maves
I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible? Nathan Maves Sun Microsystems - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

RE: Regarding Array List - Select

2004-02-11 Thread Lakshmanaperumal, Ganthan
pls check whether you define the set/get method for the property "supervisor" in your bean class. L. Ganthan > -Original Message- > From: Samyukta Akunuru [SMTP:[EMAIL PROTECTED] > Sent: 11, Feb, 2004 8:13 PM > To: Struts Users Mailing List > Subject: RE: Regarding Array List - Sel

RE: Regarding Array List - Select

2004-02-11 Thread Guillermo Meyer
Take a look at http://providers.sourceforge.net/ -Original Message- From: Samyukta Akunuru [mailto:[EMAIL PROTECTED] Sent: Miércoles, 11 de Febrero de 2004 11:43 a.m. To: Struts Users Mailing List Subject: RE: Regarding Array List - Select Qn again: In the following throws me this exc

RE: Regarding Array List - Select

2004-02-11 Thread Samyukta Akunuru
Qn again: In the following throws me this exception: javax.servlet.jsp.JspException: No getter method for property supervisor of bean employees -Original Message- From: Gandhi, Snehal Kishore (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 8:26 AM To: Struts Use

RE: multipart problem

2004-02-11 Thread Joe Germuska
At 2:57 PM +0100 2/11/04, Turner Benjamin wrote: well i have an action that compiles all the data necessary for a page (presents a newsletter being created), newsletter.do. i also have an action that attaches an image to the newsletter (image.do), which after putting the image in the db as a blo

RE: Regarding Array List - Select

2004-02-11 Thread Ramachandran
o.k i will try with struts tag later. But i give like this...whether it will work or not. <%for(int i = 0,j=0; i < allreqids.size()&&j < allreqidsonly.size(); i++,j++){%> <%=allreqids.get(i)%> <%}%> Here the value b/w opt

Re: Struts Decision making

2004-02-11 Thread Mark Lowe
Ohh. Make a wish :o) On 11 Feb 2004, at 15:18, Slattery, Tim - BLS wrote: Can anybody tell me how to make decision making in struts (IF-THEN-ELSE). I couldn't find proper tags in LOGIC. That's because they aren't there. Instead use the JSTL logic tags: this is the "if" part

RE: Regarding Array List - Select

2004-02-11 Thread Gandhi, Snehal Kishore (Cognizant)
')">     try this -- Snehal K. Gandhi | Email : [EMAIL PROTECTED] Financial Services Group | http://www.cognizant.co

Re: Link and Arrays

2004-02-11 Thread Nathan Maves
This should work it your array is in either your session or request scope. If you set it as part of your FormBean then I "think" that you need to you the full path to the form bean. I.E. .map.tokens[i]. I am still new to struts so I could be way off :) Nathan Maves Sun Microsystems On Feb 11

RE: Struts Decision making

2004-02-11 Thread Slattery, Tim - BLS
> Can anybody tell me how to make decision making in > struts (IF-THEN-ELSE). > I couldn't find proper tags in LOGIC. That's because they aren't there. Instead use the JSTL logic tags: this is the "if" part and this is the "else" part -- Tim Slattery [EMAIL PROTEC

Re: Struts Decision making

2004-02-11 Thread Mark Lowe
If you're new to this stuff then jstl might be preferable Stop sending HTML Emails they suck What the f**k is wrong with plain text then? Your email is neither rtf or html so i assume its plain t

RE: Regarding Array List - Select

2004-02-11 Thread Samyukta Akunuru
I have the same related problem... i want to use logic:iterate to loop through my bookID values and print it as a drop down using Here is what I am trying to do seems something wrong with thishow do i do this Thanks. -Original Message- From: Rama

RE: Regarding Array List - Select

2004-02-11 Thread Gandhi, Snehal Kishore (Cognizant)
hi u can use 2 different tag for 2 different arraylist and iterate using the id of the and get the values for the same --Snehal -- Snehal K. Gandhi | Email : [EMAIL PROTECTED] Financial Services Group | http://www.cognizant.com Cognizant Corporation|

Regarding Array List - Select

2004-02-11 Thread Ramachandran
Hi all, I am in the need of help regarding array list with select option. I am having two Array List. One is for displaying value in the select box. Other is for value in the option. How can i do that one.This is my code. If any body knows, please mail me. H

Re: multipart problem

2004-02-11 Thread Mark Lowe
You can do all the work in one action, just don't do the image stuff if there's not one present. int imageLength = image.getFileData().length; if(imageLength > 0) { //do the image stuff. } On 11 Feb 2004, at 14:57, Turner Benjamin wrote: hi, well i have an action that compiles all the

RE: Struts Decision making

2004-02-11 Thread Gandhi, Snehal Kishore (Cognizant)
Title: Struts Decision making &   & can be used for conditional statements.   --Snehal   -- Snehal K. Gandhi | Email : [EMAIL PROTECTED] Financial Services Group | http://www.cognizant.com Cognizant Corporation    | Ph:91-44-52096000 Mobile : +91 98400 57326 | Xtn:8118, Vnet:4812

RE: multipart problem

2004-02-11 Thread Turner Benjamin
hi, well i have an action that compiles all the data necessary for a page (presents a newsletter being created), newsletter.do. i also have an action that attaches an image to the newsletter (image.do), which after putting the image in the db as a blob forwards control back to newsletter.do to

Link and Arrays

2004-02-11 Thread [EMAIL PROTECTED]
Hello everyone.. I have a problem and I would like to know if anyone knows an answer to this problem .. I have a string array (String[] tokens) with some values and I want to use one of those values as a value for a paramater of a link I'm using... Here is what I tried to do: somewhere Thanks

Struts Decision making

2004-02-11 Thread Dixit, Shashank (Cognizant)
Title: Struts Decision making Hello All Can anybody tell me how to make decision making in struts (IF-THEN-ELSE). I couldn’t find proper tags in LOGIC. Thanks in adv. Shashank S. Dixit Cognizant Technology Solutions Pvt. Ltd. Hinjewadi, Pune Mobile : 98904 25400 An Obstacle is som

java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an HttpSession

2004-02-11 Thread YErkan
Hi all, I'm using Struts 1.0.2 and having a problem manifesting itself with the following exception (The full exception stack trace is at the end of my e-mail): java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an HttpSession at org.apache.jasper.runtime.PageContext

Re: multipart problem

2004-02-11 Thread Joe Germuska
At 9:34 AM +0100 2/11/04, Turner Benjamin wrote: hello, i have a problem with a multipart form and request parameters. one of my forms uses a file upload to attach an optional image. after processing the image i forward to a second action in my action-mapping. in the first action all of my requ

Re: Validation.xml

2004-02-11 Thread Joe Germuska
At 10:29 AM +0530 2/11/04, [EMAIL PROTECTED] wrote: Hi, O.k I'll try VaidatorActionForm. could you plz tell me whether the following line is correct! Validation.xml no, form properties are "field" elements within the "form" element. Have a look at http://jakarta.apache.org/struts/user

Re: question regarding dynamic Tile capability

2004-02-11 Thread Domingo A. Rodriguez S.
Hello, That could be handled in the controllerClass of the tile, retrieving the values from the session, evaluating them and proceeding depending on those values. Just check some past posts about "Dynamic Tiles" explaining the usage of the controllerClass attribute in the 'tile' tag. Regards Dom

RE: question regarding dynamic Tile capability

2004-02-11 Thread Turner Benjamin
if you use j2ee security something like this would work: Ben -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: 11 februari 2004 14:18 To: Struts Users Mailing List Subject: question regarding dynamic Tile capability We

question regarding dynamic Tile capability

2004-02-11 Thread Anderson, James H [IT]
We want to display different tiles, depending on the characterics of a logged-in user. In other words, some users would see one tile, others another. Is this possible? If so, could someone please send me a short code sample? Thanks very much, jim --

Re: Dynamic generation of forms out of a config table in a database

2004-02-11 Thread Oliver Thiel
Hi Tom I use a quite similar approach, beside that I don`t use DynaActionForms, cause I read about some drawbacks (e.g. performence). Never the less what I did is I added a validation table (id/regexp). In my config-table I connect every form item to a regular expression. I then use IBatis to bu

Struts Workflow Extension

2004-02-11 Thread Alvaro Martinez
I'm working with "The Struts Workflow Extension" and I think I've found a bug. In the example "test" I´ve changed a part in the "struts-comfig.xml" Before: Now: ... Well, when I execute the exa

RE: Struts check box validation question

2004-02-11 Thread Ben Anderson
right, so I'm assuming you're iterating over a list of all books somehow. This is how I did something similar. In your submitting jsp: .

Dynamic generation of forms out of a config table in a database

2004-02-11 Thread Stockhammer Thomas
Hi all, In my application i want to generate dynamic forms, that means the number of controls placed on the forms depends on the entries in a config-tabel of a database. That means I can add a textbox to a database by adding a record to the config-table. Additionally i can show different forms to

RE: Validation.xml

2004-02-11 Thread Marco Mistroni
Hi, Easiest thing is to handle this in the validate method of your action form, provided that You have a parameter in your Action form that can tells you if you are adding modifying or viewing.. Regards marco -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

Re: problem with DynaActionForms in conversion of values

2004-02-11 Thread Mark Lowe
I've always found that BeanUtils doesn't like BigDecimal and use type string then convert to BigDecimal before passing it up to the model . If you don't want to use string then perhaps Double or even its primitive (if you can get away with it) might work for you. On 11 Feb 2004, at 11:47, Ma

problem with DynaActionForms in conversion of values

2004-02-11 Thread Marco Mistroni
Hi all, In my app I am using a DynaActionForm to retrieve Input values. I have one problem: one field of the bean is of type BigDecimal.. in the Jsp I am setting the default initial value of zero, but this does not prevent the silly user from deleting the zero and leave the field blank. At

multipart problem

2004-02-11 Thread Turner Benjamin
hello, i have a problem with a multipart form and request parameters. one of my forms uses a file upload to attach an optional image. after processing the image i forward to a second action in my action-mapping. in the first action all of my request parameters are readily available. however in

Struts and cluster

2004-02-11 Thread Mohan Radhakrishnan
Hi We are planning to deploy our struts application as a cluster. public ActionForward add( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response