Re: JSTL versus Struts tags

2007-04-18 Thread Caroline Jen
In comparison of the two; namely, JSTL and Struts2 tags, which one is better? In between JSTL and Struts1 tags, I prefer JSTL. When using JSTL, I feel that I am programming. I would like to gather some opinions. Thank you. --- Dave Newton [EMAIL PROTECTED] wrote: --- Heidy Gutiérrez Guzmán

Re: Struts 2 and Other Open Source Products Integration

2007-02-05 Thread Caroline Jen
Can we use JUnit to test Struts 2 Action without having the server launched? Thanks for advice and guidance. --- Caroline Jen [EMAIL PROTECTED] wrote: Does the Struts2 integrate with other open source products; such as DWR, JMOCK/Junit testing

Struts 2 and Other Open Source Products Integration

2007-02-02 Thread Caroline Jen
Does the Struts2 integrate with other open source products; such as DWR, JMOCK/Junit testing? Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.

[OT] Have You Used OFBiz? or Something Similar?

2007-01-05 Thread Caroline Jen
I am working on an application that uses the Struts framework at the web tier. The application has many function like: place purchasing orders and take inventories functions. We do not have the ability to bring in SAP. What are the alternatives? Has anybody used the Apache's OFBiz? Is it

Re: Ideal solution to pagination (long lists)?

2007-01-04 Thread Caroline Jen
Hi Andrew, I ran into similar problems. Anoter developer on the team wrote a tag. It extracts the paging information and goes to the database table to find out the total number of records. The tag retrieves and displays only the first set of records in accordance with the paging

RE: [OT]Does Exadel Studio Support IBM RAD?

2006-12-21 Thread Caroline Jen
with tool versions. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 9:33 AM To: user@struts.apache.org Subject: [OT]Does Exadel Studio Support IBM RAD? I used the Exadel as Struts development tool before and liked

[OT]Does Exadel Studio Support IBM RAD?

2006-12-20 Thread Caroline Jen
I used the Exadel as Struts development tool before and liked it. At that time, my IDE was Eclipse. Now, I have to use IBM RAD as IDE. Does the Exadel support RAD? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Are There Struts 2 Books?

2006-11-30 Thread Caroline Jen
Are there books available on Struts 2? or any newer versions of Struts? Thanks for the information in advance. Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com

Is the Struts Project Still Going On?

2006-11-27 Thread Caroline Jen
Hi, can we still expect newer versions of Struts in the future? Or the Struts is no longer an onging project and JSF is the replacement? Could anybody provide some information about it? Thank you. Do you

Re: AW: Is the Struts Project Still Going On?

2006-11-27 Thread Caroline Jen
... If your question is whether to go on with the old style or switch to JSF, I think this decision will be up to you. I think that both approach will live side by side for the foreseeable future. Martin -Ursprüngliche Nachricht- Von: Caroline Jen [mailto:[EMAIL PROTECTED

ATTN: How to Contact the Owner of the Struts Forum?

2006-11-16 Thread Caroline Jen
It so happened that I have to do something for some of my postings that have been archived. Can somebody show me to way to proceed? I may have to contact the owner of the forum to take care of the matter. Thanks in advance. -Caroline

Re: Setting Access Level

2006-10-05 Thread Caroline Jen
You may consider to use the Business Rules Engine -CJen --- Aftab Vhora [EMAIL PROTECTED] wrote: 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,

Re: [JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-24 Thread Caroline Jen
Context ctx = new InitialContect(); DataSource ds = (DataSource)ctx.lookup(java:com/env/jdbc/DBName); Connection con = ds.getConnection(); --- Scott Van Wart [EMAIL PROTECTED] wrote: temp temp wrote: My java standalone application wants connection to database with lookup to datasource name

clear vs. reset

2006-08-10 Thread Caroline Jen
When a session ends, all data submitted have to be cleared. My form bean is in a session. I want to re-use the submitted data during the session. It seems that if I have the 'reset' method in my form bean, the submitted data are lost when I want to re-use the data. What are the differences

Re: two form one jsp

2006-08-01 Thread Caroline Jen
1. Each element in a document must have a unique id. This element is then accessed in script using document.getElementById(). e.g. p id=myP.../p -- document.getElementById(myP) If more than one element has the same id and you try to use that id with document.getElementById(), the method

Conditional Validation

2006-07-29 Thread Caroline Jen
I am using the Struts validation.xml to check if clients leave any of the required text fields in the form blank. I prepared two action mappings for this web page. The 'validate'attribute is set to false for the first action mapping because when I have the web page displayed in the browserat the

Pagination and Memorizing Marked Checkboxes

2006-07-28 Thread Caroline Jen
I display a List of objects. Because the List can be very long, I use a pagination tag library to display my long list 10 at a time. This taglib is not a front-end one. The taglib makes a trip to the back end to retrieve the next 10 records from the database when the next pagination link is

Validate Properties in a List of an Object

2006-07-27 Thread Caroline Jen
I use the Struts validation.xml to make sure that users do not leave any of the text fields in the web page blank. The complications come. All text fields are properties of an object. The form that is associated with the action mapping has only the getter and setter of that object

How to Pass a Textfield Value as a c:param to a Link using c:url?

2006-07-19 Thread Caroline Jen
I must have done someting wrong. I tried to pass the value entered in a textfield: html-el:text property=searchFirstName / to a link this way: c:url value=/admin/sortUsers.do var=ascFirstName c:param name=searchFirstName value=${searchFirstName} / /c:url and in my action class, I have

Re: How to Pass a Textfield Value as a c:param to a Link using c:url?

2006-07-19 Thread Caroline Jen
, Caroline Jen [EMAIL PROTECTED] wrote: I must have done someting wrong. I tried to pass the value entered in a textfield: html-el:text property=searchFirstName / to a link this way: c:url value=/admin/sortUsers.do var=ascFirstName c:param name=searchFirstName value

Re: How to Pass a Textfield Value as a c:param to a Link using c:url?

2006-07-19 Thread Caroline Jen
inside an HTML form. Make sure you have proper taglib directives on top of your JSP page, for example, for html-el tags. Get an HTTP sniffer and see what is sent from browser when you submit a form. If you use Firefox, get Live HTTP Header extension. On 7/19/06, Caroline Jen [EMAIL PROTECTED

RE: How to Pass a Textfield Value as a c:param to a Link using c:url?

2006-07-19 Thread Caroline Jen
Caroline Jen, I thought people only used the html-el taglib because their JSP container didn't natively support EL? That would mean your c:url and c:param tags won't get the expressions ${searchFirstName} or ${ascFirstName} parsed because your JSP container doesn't do that. If your

Re: How to Pass a Textfield Value as a c:param to a Link using c:url?

2006-07-19 Thread Caroline Jen
submit button rendered as a link (use CSS for that) and submit the form with GET method. On 7/19/06, Caroline Jen [EMAIL PROTECTED] wrote: But, it does not work even I changed html-el to html. In my link, I did pass some fixed values. They are picked up. Let me explain: c:url value

RE: How to disable the submit button after first click

2006-07-14 Thread Caroline Jen
I hope this link http://www.learntechnology.net/struts-token.do could be of some help. --CJen --- priyadarsh kankipati [EMAIL PROTECTED] wrote: Thanks Krishna for your suggestion. Can you please elaborate on your suggestion? Thanks Robert for your suggestion. But I think this will

[SOLVED]Re: How to Retrieve Parameters Passed Along with c:url in a Struts Action Class?

2006-07-06 Thread Caroline Jen
Hi Laurie, Thanks for your continuing support. The code that I showed was correct. It turned out that the problem stems from somewhere else. I apologize for wasting your time. -Caroline --- Laurie Harper [EMAIL PROTECTED] wrote: Caroline Jen wrote: In my JSP, I passed

How to Retrieve Parameters Passed Along with c:url in a Struts Action Class?

2006-07-05 Thread Caroline Jen
In my JSP, I passed a number of parameters inside the JSTL core c:url tag. This is the way I coded: c:url value=/myAction.do var=theUrl c:param name=param1 value=${user.fullName}/ c:param name=param2 value=${user.hashID}/ /c:url a href='c:out value=${theUrl}/'Click/a How do I retrieve the

html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
My html-el:checkbox worked fine. But if the html-el:form ... /html-el:form come before the html-el:checkbox ... , I got the runtime JSP error: cannot find bean: org.apache.struts.taglib.html.BEAN in any scope. The complaint points specifically to the html-el:checkbox

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
followed by /html:form HTH, -ed On 6/29/06, Caroline Jen [EMAIL PROTECTED] wrote: My html-el:checkbox worked fine. But if the html-el:form ... /html-el:form come before the html-el:checkbox ... , I got the runtime JSP error: cannot find bean

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
refer to a form bean in the selectUsers action mapping. On 6/29/06, Caroline Jen [EMAIL PROTECTED] wrote: Ed, your suggestion makes sense. I have created a second form on the page by adding html:form action=/admin/selectUsers.do before the c:forEach and change the html:link

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Jouravlev [EMAIL PROTECTED] wrote: Would be nice to see your form-beans and action definitions. On 6/29/06, Caroline Jen [EMAIL PROTECTED] wrote: Yes, the second form is defined inside the form-beans and also refered in the action mapping. But, the new runtime JSP error is: cannot

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Thanks for your attention to my problem. If there is a bug, what is the get around of my problem? --- Michael Jouravlev [EMAIL PROTECTED] wrote: This is a helpful advice, I always use name explicitly. But in this case this is not it. According to FormTag.java source code: === cut here

How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Caroline Jen
I am working on a JSP written in JSTL and html-el tags. The JSP is displayed fine. This JSP has a table. Each row of the table has a checkbox. Clients may select any number of the checkboxes and click on a link to invoke a Struts action. I would like to pass the checkbox and every column of

Re: How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Caroline Jen
to collect form data. 2) Use regular submit button, use CSS to display it as a link. On 6/27/06, Caroline Jen [EMAIL PROTECTED] wrote: I am working on a JSP written in JSTL and html-el tags. The JSP is displayed fine. This JSP has a table. Each row of the table has a checkbox. Clients may

[Issue Solved]Re: Unable to Load html-el Tags

2006-06-26 Thread Caroline Jen
Wendy, Thank you very much for your help. Things are working OKay now. --Caroline --- Wendy Smoak [EMAIL PROTECTED] wrote: On 6/25/06, Caroline Jen [EMAIL PROTECTED] wrote: I think that I should find the JAR for loading the html-el tags, and put the JAR in the WEB_INF\lib

One JSP with an Action Link and a Form

2006-06-26 Thread Caroline Jen
I have a JSP and there are a link (it invokes an action) and a form (the form has a submit button). My struts-config.xml looks like: [code] action path=/admin/findUsers type=...admin.action.FindUsersAction name=FindUsersForm

Unable to Load html-el Tags

2006-06-25 Thread Caroline Jen
Hello, I downloaded the struts-html-el-1.2.8.tld and dropped it in my Elipse workspace under the WebContent/WEB-INF/tld directory where other struts-html.tld, struts-logic.tld, etc. are. In my JSP, I have %@ taglib uri=http://struts.apache.org/tags-html-el; prefix=html-el% where

Mixing Use of Struts Tags and JSTL Tags

2006-06-23 Thread Caroline Jen
Are there JSTL equivalents to 1. html-el:form ... or html:form ... 2. html-el:checkbox ... or html:checkbox ... 3. html-el:hidden ... or html:hidden I am able to display a table using all JSTL tags. Now, I have add additional features to the table. I am unaware of the JSTL equivalents of the

Why My JSTL Tag Cannot Do What Struts Tag Does?

2006-06-21 Thread Caroline Jen
I am able to display a List of object returned from the database using the Struts tags: [code] . %@ page import=.common.pojo.user.User % % List user = (List)request.getAttribute(Users); pageContext.setAttribute(Users, user); % . . logic:iterate id=users

BeanUtils, Form Bean and POJO Bean

2006-06-17 Thread Caroline Jen
The Java types of the properties in my form bean sometimes are not the same as those of the data fields in my database. The request.getParameter(); always return a String. I can use the copyProperties() method of the BeanUtils to convert all the String(s) read from the web page to proper Java

Re: Email validation doesn't work

2006-06-02 Thread Caroline Jen
The Struts has built-in e-mail validation, which can be found in the commons-validator.jar. --- Bart Busschots [EMAIL PROTECTED] wrote: Hi, Your regular expression on the mask would seem to be problem. I presume you want it to match words that contain no = rather than what you have at

What is the URI I Should Use to Provide a Link to Go Back to a Previous Web Page

2006-05-10 Thread Caroline Jen
I am using the Struts. I am prepaing URIs so that previous web pages that users have navigated though can be re-constructed and displayed to users. For example, one of the web pages has the below showing in the address bar:

Please Guide Suggest - Handling User Clicks on the Browser Back Button

2006-05-08 Thread Caroline Jen
I posted the question earlier and thanks for many respondents took time to answer my question. While double submission is one of my problems, my focus has been on this particular one if users click on the browser Back button: WebPage A1 -- WebPage A2 -- WebPage C WebPage B1 -- WebPage B2 --

Handling User Clicks on the Browser Back Button

2006-05-05 Thread Caroline Jen
I posted the question earlier and thanks for many respondents took time to answer my question. While double submission is one of my problems, my focus has been on this particular one: WebPage A1 -- WebPage A2 -- WebPage C WebPage B1 -- WebPage B2 -- WebPage C There is no problem to close the

What To Do If Users Use the Browser Back Button?

2006-05-04 Thread Caroline Jen
There is a J2EE application I am working on. The application uses the Struts framework. Things are working fine. If users use the Close button that is provided by us (developers), the current web page closes and the previous web page is displayed orderly and properly. But, we are getting in

Is Action Chaining Strongly Discouraged?

2006-04-29 Thread Caroline Jen
I have seen some discussions on this forum regarding action chaining. Primarily, the advices are to think through the business logic before making decision on chaining actions. What are the disadvantages of action chaining? Why action chaining is not a good practice?

jsp:include or tile

2006-04-11 Thread Caroline Jen
Both the jsp:include tag and the Struts tiles can incorporate dynamic resources into the current JSP. Is there rule of thumb that one is preferable over another? Thanks for guidance. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

Breadcrumb Trails

2006-03-23 Thread Caroline Jen
I have found taglibs to do breadcrumb trails for servlet and JSP technology. Is there breadcrumb trails code available for the Struts technology? I mean that I plan to create a list of links that has a horizontal orientation on a web page. It shows users where they are in the hierarchy of a

[OT]FIELDSET and Screen Size

2006-03-16 Thread Caroline Jen
I put a FIELDSET (i.e., the fieldset ) around a 'table'. I (as a developer) am viewing a 1280*1024 screen. Everything looks fine. The FIELDSET (a thin line box) is drawn along the right and left edges of the screen. Because most of the users have a screen size of 1024*768. When I adjust the

[Problem Solved]Re: [OT]FIELDSET and Screen Size

2006-03-16 Thread Caroline Jen
I am very sorry, Dave, for taking up your time. I have found the problem. The problem is not the FIELDSET. The problem is caused by something else in that web page. My apology. --- Dave Newton [EMAIL PROTECTED] wrote: Caroline Jen wrote: Instead a horizontal scrollbar is automatically

[OT]Load the Default Page Everytime the Web Page is Reloaded

2006-03-14 Thread Caroline Jen
I have a web page with many toggling (on/off) links. Every time the page is reloaded, I would like to show the default page with the toggle at the 'off' state. How do I do it? I am very thankful for ideas. __ Do You Yahoo!? Tired of spam? Yahoo!

Need Ideas: An Overall Clickable Button/Link to Control All Links

2006-03-13 Thread Caroline Jen
Hello, thanks to all for the help given. My web page has many nodes. Each of them represents a treeview expand (i.e., + ) and collapsed (i.e., -). Therefore, a Collection can be either collapsed or in collapsing state if that Collection is not empty. If users want to collpase a Collection, the

Need Ideas: A Clickable Button/Link to Control All Links

2006-03-13 Thread Caroline Jen
Hello, thanks to all for the help given. My web page has many nodes. Each of them represents a treeview expand (i.e., + ) and collapsed (i.e., -). Therefore, a Collection can be either collapsed or in collapsing state if that Collection is not empty. If users want to collpase a Collection, the

(Problem Solved) Re: Display the Counts of a Collection that is in a Form

2006-03-09 Thread Caroline Jen
or session scope first, something like: bean:define id=activityForm name=ActivityForm/ %=activityForm.getBusinessCollection().size() % On 3/9/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 3/8/06, Caroline Jen [EMAIL PROTECTED] wrote: bean:size id=size name=ActivityForm

[OT]How Come My Image File is Surrounded by a Box?

2006-03-09 Thread Caroline Jen
I am trying to display an image. The image is displayed successfully; however, there is a box (I do not have a clue where the box comes from) surrounding the image. I cannot get rid of the box. The image is a link; therefore, it leads me to think that the box may be the 'underline' of the link

Problem Solved !!!RE: [OT]How Come My Image File is Surrounded by a Box?

2006-03-09 Thread Caroline Jen
Thanks a lot, Daniel. border=0 works!!! --- Kalcevich, Daniel [EMAIL PROTECTED] wrote: Try specifying border=0 on the image tag. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 2:02 PM To: user@struts.apache.org Subject: [OT]How

Display the Counts of a Collection that is in a Form

2006-03-08 Thread Caroline Jen
I am trying to display 'counts' in a Collection. And I use JSP scriptlet to do it: %=businessCollection.size()% The compiler cannot recognize the Collection 'businessCollection'. It is because businessCollection is defined in the ActivityForm.java. When I tested whether businessCollection is

Re: Display the Counts of a Collection that is in a Form

2006-03-08 Thread Caroline Jen
PROTECTED] wrote: Two options Using your scriptlet example %= ActivityForm.getBusinessCollection().size() % Or there is a struts tag to retrieve size bean:size id=size name=ActivityForm property=businessCollection/ On 3/9/06, Caroline Jen [EMAIL PROTECTED] wrote: I am

How To Use Existing Tags to Test and Write Out the Value of the Size of a Collection?

2006-03-06 Thread Caroline Jen
I have a Collection called 'remarks'. I can use the logic:notEmpty or logic:empty tags to test out if the Collection has some elements in it or not. 1. Is there any tag I can use to test the size value of that Collection to be zero or greater than zero? Or I have to use the Java code in my JSP

How To Get Rid of Underlining When Using html:link

2006-03-03 Thread Caroline Jen
When using HTML, I can get rid of underlining by A:link {text-decoration:none} When using html:link in Struts, how do I get rid of the underlining of the link? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: How To Get Rid of Underlining When Using html:link

2006-03-03 Thread Caroline Jen
=/Home.dospan class=handHome Page/span/html:link Regards, Ganesh! On 3/3/06, Michael Jouravlev [EMAIL PROTECTED] wrote: On 3/3/06, Caroline Jen [EMAIL PROTECTED] wrote: When using HTML, I can get rid of underlining by A:link {text-decoration:none} When using html:link in Struts

What Is the URL to Join the Discussion of JSF?

2005-08-29 Thread Caroline Jen
I start using the JSF. But, I cannot find the place where I can join the discussion of JSF at the jakarta.apache.org. What is the exact URL? Please help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

[OT] How To Hard Code Data in JSF h:dataTable ...?

2005-08-29 Thread Caroline Jen
I am trying to arbitrarily type in some values for a datatable that is coded using JSF. I am new to the JSF and please help me. 1. Do I set it correctly (see the code below)? 2. I have to hard code some data in the h:dataTable .. that I create. How do I do it (i.e. how do I modify the code shown

(JSF question) Checkbox for Each Record in a List and Scroll Bars

2005-08-26 Thread Caroline Jen
I have a list of records to render to a web page. I provide a checkbox to each record in that list for users to make multiple selections. My list of records can be very long. And each record can contain many columns. Therefore, the list will be displayed in a kind of pane with a vertical scroll

Problem With NOT EMPTY Using the c:when ... Tag

2005-08-24 Thread Caroline Jen
I use the NOT EMPTY to do the testing. I have %@ taglib uri=/WEB-INF/tld/c.tld prefix=c % at the top of my JSP file. But, I got an Internal Server Error 500 problem (The log is shown after my code snippet.) I am unable to see the problem with my c:when tag. c:set var=logRows

Is It Possible to Code Using Struts and JSF at the Same Time?

2005-03-30 Thread Caroline Jen
I am working on a big J2EE project. The project is at its initial stage. The leaders of the project have not quite made up their mind on whether we are going to use the Struts framework or JSF. But, all members of the team think that we should start coding. Is it possible to use the Struts

[OT]Pop-Up Window and getParameter()

2005-03-14 Thread Caroline Jen
I have used the getParameter() to retrieve data from web page text fields. No problem so far. Now, I have a web page that has a number of text fields. In addition, the JavaScript is used in this web page to pop-up another window for users to enter more data in some text fields and a textarea.

Is There a Tool for JSF?

2005-03-09 Thread Caroline Jen
There are many tools that help developing the Struts; for example, EasyStruts, StrutsConsole, StrutsBox. We also have the NitroX, Lomboz, etc. that help debugging. Is there any tool available for JSF? __ Celebrate Yahoo!'s 10th

Re: Help Me!!!!

2005-03-08 Thread Caroline Jen
What are the changes that you made to the web.xml file? What kind of the struts-config.xml you created? Show us those files so that we are able to help. --- K Rajesh [EMAIL PROTECTED] wrote: I am new to struts.i bought struts complete reference book. i tried one MiniHR Application. but is not

Re: [OT] Gmail Invites

2005-02-18 Thread Caroline Jen
Jack, I would like to have it. Thanks. e-mail: [EMAIL PROTECTED] -Caroline --- Dakota Jack [EMAIL PROTECTED] wrote: I have 50 gmail invites, if anyone wants one. Jack -- You can lead a horse to water but you cannot make it float on its back. Heaven has changed. The Sky

[OT]Struts Application + Eclipse + NitroX

2005-02-18 Thread Caroline Jen
I am building a Struts application using the Eclipse. The NitroX, which can be found at http://www.m7.com looks like a neat JSP debugging tool. I have downloaded the NitroX JSP Editor (free) and the NitroX for Struts IDE (trial for 15 days). How do I set up the NitroX in the Eclipse to work with

Re: [OT]Hashtable Vs Hashmap, Vector Vs ArrayList

2005-01-11 Thread Caroline Jen
A Map is a class that stores key-value pairs and provides a way to locate a value based on the key. The Hashtable class is a synchronized implementation of the Map interface. The HashMap is better in terms performance because the hashing algorithm it uses. The Hashtable is synchronized so

ValidatorForm, DynaValidatorForm, and DynaValidatorActionForm

2004-12-22 Thread Caroline Jen
What are the differences among ValidatorForm, DynaValidatorForm, and DynaValidatorActionForm? And when to use each of them? __ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com

Exception creating bean of class org.dhsinfo.content.AddFileForm: {1}'

2004-10-27 Thread Caroline Jen
What could lead to a run-time error such as: [ServletException in:/frame/content/content.jsp] Exception creating bean of class org.dhsinfo.content.AddFileForm: {1}' The strange thing is that the application worked without any problem before. I did not touch anything. I re-ran the application a

Need Ideas for This Puzzle

2004-10-22 Thread Caroline Jen
The puzzle relates to displaying check boxes (checkbox or multibox). What I have are members who belong to professional groups and sub-groups. E.g., Group A with sub-groups A-1, A-2, A-3, A-4. Group B with sub-groups B-1, B-2, B-3 Group C with sub-groups C-1, C-2, C-3, C-4, C-5, C-6 etc. web

RE: Need Ideas for This Puzzle

2004-10-22 Thread Caroline Jen
the checkboxes, the jsp will read the bean and display only the checkboxes that have a corresponding true value. In the action that saves the data from this page, process only those checkboxes that were displayed. Wiebe -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED

Where Is a Proper Place To Store TEMPORARY Files?

2004-10-18 Thread Caroline Jen
Now, I have this situation: While the web application is running, I need a place to store an uploaded file temporarily and then write this file out. Where is the proper place to create a directory to store a temporary file? Is any place in the application OKay?

Re: Still cannot get it thru with Tiles

2004-10-15 Thread Caroline Jen
Do you have the statement below toward the very end of the struts-config.xml file? plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=definitions-debug value=1 /

The Type of a Form Property is of org.apache.struts.upload.FormFile

2004-10-15 Thread Caroline Jen
A property in my form, 'theFile',is of the org.apache.struts.upload.FormFile type. In my struts-config.xml file, do I still give a java.lang.String type: form-property name=theFile type=java.lang.String /form-property and then use the

ActionForm Does Not Pick Up the Value of Check Boxes

2004-10-14 Thread Caroline Jen
I have a web page that displays check boxes for user to make multiple selection: [code] html-el:form action=/message/SelectAndMail .. .. td html-el:checkbox property=recipients[${status.index}].selected / /td td html-el:hidden property=recipients[${status.index}].emailAddress / c:out

form and html-el:form Problem

2004-10-14 Thread Caroline Jen
I have a form with a drop-down menu in it. The drop-down menu is created using the html-el:... tag. Everything displays well this way: html-el:form action=/content/AddFiles html-el:select property=document html-el:option value=-Select-/html-el:option html-el:options

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
? --- Wendy Smoak [EMAIL PROTECTED] wrote: From: Caroline Jen [EMAIL PROTECTED] I am using the Struts to build a web application. I am going to store some files (the files can be .doc, .txt, .pdf, .jpg, whatever) on the server; e.g. somewhere in my web application. Where is the proper

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
Wendy said that If you're talking about run-time file creation or uploads... keep in mind that a webapp can run unexploded from a .war file... in that case you can't write to a directory within your webapp, because it doesn't exist. I do upload files from clients' PC and store those files. Do

Re: how to send batch emails

2004-10-13 Thread Caroline Jen
I have been using the same utility class (JavaMail API) to send e-mails. The code works OKay. Now, instead of the String toAddress I have String[] toAddress = selectRecipientsForm.getSelectedEmailAddresses(); will the same code works for sending batch e-mails? --- Duncan Mills [EMAIL

The get() Method in the ActionForm

2004-10-13 Thread Caroline Jen
I have selectRecipientsForm that extends ActionForm. After the form is populated, I have this: String[] to = SelectRecipientsForm.getSelectedEmailAddresses(); I thought that it was the right way to get something in the populated form; but, the compiler says that the non-static method

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
in the database as BLOBs so all your data lives at a single location. The decision depends on what use is given to those files (are they likely to be modified? ready only? etc) -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:30 AM

Write Own Validation Instead of Using validation.xml

2004-10-12 Thread Caroline Jen
I am submitteing a form. This form provides check boxes for multiple selections. I am not using the validation.xml to validate if none is selected. Instead, I am going to use the validate(). 1. Do I write this validate() in the form class that extends the ActionForm? 2. how do I write this

Re: How To Display Check Boxes in Struts?

2004-10-08 Thread Caroline Jen
is to display a check-box for every client, and present/collect the correct setting for the check-box. |-+ | | Caroline Jen | | | [EMAIL PROTECTED]| | | .com

Array? ArrayList? or .....?

2004-10-05 Thread Caroline Jen
I am creating check boxes in a JSP. I am showing the HTML code to make it simple to illustrate my question. code: H2Check As Many As You Wish/H2 INPUT TYPE=checkbox NAME=emailAddress VALUE=[EMAIL PROTECTED]John Doe/INPUT INPUT TYPE=checkbox

Re: Validation in Struts for Required fields

2004-10-05 Thread Caroline Jen
To add to the list: 5. the validator-rules.xml and validation.xml must be in the AppName/WEB-INF directory. 6. Make sure that there is a proper version of the commons-validator.jar file. 7. there is font color=”red”html:errors//font in the .jsp to turn on the validation and to show warning

How To Display Check Boxes in Struts?

2004-10-05 Thread Caroline Jen
I am able to create check boxes using HTML. But, I do not know how to display check boxes in Struts. Here is what I plan to do: I have a JavaBean, which gets its properties populated through database table query. For example, this JavaBean has three properties; lastName, title, emailAddress.

How To Display Checkboxes in a Table with an Additional Select All Box?

2004-10-04 Thread Caroline Jen
I can create tables and I can also create check boxes. Now, I have to do a combination of check boxes and tables: I am reading membership data from a database table. I am going to display the information of each member in a table. The table has five columns. Four of those five columns are

RE: How To Display Checkboxes in a Table with an Additional Select All Box?

2004-10-04 Thread Caroline Jen
on the right state. Hope that helps, Freddy. -Mensaje original- De: Caroline Jen [mailto:[EMAIL PROTECTED] Enviado el: lunes, 04 de octubre de 2004 16:56 Para: [EMAIL PROTECTED] Asunto: How To Display Checkboxes in a Table with an Additional Select All Box? I can create tables and I

How To Upload Files from Clients' Machine?

2004-10-04 Thread Caroline Jen
In my JSP I have this: code: --- input type=file name=filename --- for visitors of the web page to browse their PCs' directories to select a file to upload (when the Submit button is

Re: Error Message for Struts Validation

2004-10-01 Thread Caroline Jen
, it will print as Page is required. For me at least, this is a lot more handy than using msg, because you can use the same label to print out the prompt and the error message. Hopefully I explained this well enough... Matt Caroline Jen wrote: I use the validation.xml to validate

Re: The Original Web Page Cannot Be Found (HTTP 404) After Validation is Turned On

2004-09-30 Thread Caroline Jen
I have tried /ContentMgmt.do I got the same HTTP 404 file not found error. --- Gabriel França Campolina [EMAIL PROTECTED] wrote: Try put the /ContentMgmt.do On Wed, 29 Sep 2004 12:00:31 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: I have action mapping in the struts

Error Message for Struts Validation

2004-09-30 Thread Caroline Jen
I use the validation.xml to validate the properties in my form bean. The validation works; but, the error messages do not work as I expected. While I have customized error messages prepared, the error message displayed in the browser window for my intentional violation are like: . null is

The Value of a Property in a Drop-Down Menu

2004-09-29 Thread Caroline Jen
My Collection, PageBeans (plural), generates a drop-down list like this: html-el:select property=document html-el:option value=-Select-/html-el:option html-el:options collection=PageBeans property=name labelProperty=name/ /html-el:select Each individual bean, PageBean (singular), in the

The Original Web Page Cannot Be Found (HTTP 404) After Validation is Turned On

2004-09-29 Thread Caroline Jen
I have action mapping in the struts-config.xml like this: action path=/ContentMgmt // the path for a link type=org.dhsinfo.content.SelectPage scope=request validate=false forward name=success path=.frame.Content/ /action

html:link .... and a href= ....

2004-09-28 Thread Caroline Jen
I am working on one of my Struts JSPs. I am trying to put a link (not a link to invoke an action); something equivalent to: a href=http://www.google.com;Google/a I want user to be at the Google's web site when they click on 'Google' in my JSP. The above HTML tag gives me a problem. I tried to

Drop-Down Menu Has A Hidden Property To Be Forwarded Once a Selection is Made

2004-09-28 Thread Caroline Jen
I have a drop-down menu like this: html-el:select property=document html-el:option value=-Select-/html-el:option html-el:options collection=PageBeans property=name labelProperty=name/ /html-el:select Once a user makes a selection in the menu and click on the Submit button, the

  1   2   >