RE: simple question

2003-09-08 Thread Siggelkow, Bill
What you are doing should be fine (as long as your collection is not too terribly big). You use an ActionForm when you want to collect input from the user. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 9:45 AM To: [EMAIL PROTECTED]

RE: Combining struts and JSTL tags...

2003-09-05 Thread Siggelkow, Bill
Pady -- generally, there is very little overlap between JSTL and the Struts HTML tags. There are no JSTL tags that do the work that the Struts html tags do ... that being said, I encourage you to use the html-el library (basically the Struts html tags which support EL) so you have the full

RE: Combining struts and JSTL tags...

2003-09-05 Thread Siggelkow, Bill
Basically, any of the struts tags that are struts-aware were not eliminated from Struts-EL -- specifically, the bean:message tag was not eliminated because it specifically looks in the application resources as specified in struts-config. The fmt:message can be made to look into that bundle but

RE: Help me get my boss of my back

2003-09-04 Thread Siggelkow, Bill
It has nothing directly to do with Struts, but I have used Analog (http://www.analog.cx) with good success. -Original Message- From: Carl-Jakob [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 8:31 AM To: [EMAIL PROTECTED] Subject: Help me get my boss of my back Hi, We

RE: How to forward back to including page

2003-09-04 Thread Siggelkow, Bill
to including page I'm a little confused, but when you submit the form the target should be an action and couldnt you just do the processing within that action and if its successful forward back to the page that includes the form? - Original Message - From: Siggelkow, Bill [EMAIL PROTECTED

RE: How to forward back to including page

2003-09-04 Thread Siggelkow, Bill
from the dyna form StringBuffer redirectUrl = new StringBuffer(url); if (query != null !.equals(query)) redirectUrl.append('?').append(query); response.sendRedirect(redirectUrl); return null; } -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED] Sent: Thursday

How to forward back to including page

2003-09-03 Thread Siggelkow, Bill
I have an included page (included using c:import) that contains a form. If the form processes successfully I want to return back to the original including page. Is there a clean way of doing this? The problem I have is that my action for the included page does not know anything about the page

RE: [newbie] Connection Pooling

2003-02-13 Thread Siggelkow, Bill
Michael, You certainly can write a connection factory class that provides getConnection type methods -- I do this all the time to abstract the different ways of doing connection pooling -- sometimes I am using DataSources -- other times not. However, you should just use a regular class for

Incorrect assumption with logic:present role attribute

2003-02-12 Thread Siggelkow, Bill
I have an app where I have created my own RequestProcessor to override the processRoles functionality. Specifically, my roles take into account certain session information. This works as expected and properly handles the 'roles' attribute in my action mappings. However, I naievly (sp?) made

RE: [newbie] Connection Pooling

2003-02-12 Thread Siggelkow, Bill
Andre ... this is not connection pooling -- but rather keeping a connection open. Yes it can be done ... however, HTTP is not a reliable connection and there is a good chance that your connection will get left open. However, it is time consuming to always have to open/close connections -- hence,

RE: One way of writing BaseAction

2003-01-13 Thread Siggelkow, Bill
Isn't this similar to what the Dispatch action does? -Original Message- From: Chan, Charles [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:18 AM To: 'Struts Users Mailing List' Subject: One way of writing BaseAction Hi, I just want to share with you my base action class

RE: Precompiling JSPs

2003-01-13 Thread Siggelkow, Bill
Some containers support a container-specific flag for precompiling. As I recall you can do with this weblogic without having to declare all your JSPs in the web.xml. Of course, I would not do this in development mode as it will take a long time for server restarts! -Original Message-

RE: Validator Question

2003-01-10 Thread Siggelkow, Bill
Doesn't the 'required' validation rule do this? -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 12:37 AM To: [EMAIL PROTECTED] Subject: Validator Question Hi, I need to validate that the user does not enter only spaces in a

RE: Dynamic Forms Problem

2003-01-10 Thread Siggelkow, Bill
Use square brackets '[' instead of parenthesis when you build the 'name' like: % for (int i=0; i10; i++) { String name = value( + i + ); % html:text property=%=name%/br/ % } % -Original Message- From: ashokd [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:37 PM To: Struts

RE: Accessing .properties resources from within an action class.

2003-01-10 Thread Siggelkow, Bill
Can you give more details on what you are trying to do and why? Java classes can certainly read in property files during runtime. Read the JavaDocs on the java.util.Properties class for details on how to load properties. -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED]]

RE: turning form parameters into queries

2003-01-10 Thread Siggelkow, Bill
Heather, In my opinion, the approach you are taking is not separating out your logic appropriately. In fact, it sounds like your are binding your persistence layer (database columns) all the way up to the presentation layer (your action forms). A better approach is to separate the

RE: Checking for the existence of errors

2003-01-10 Thread Siggelkow, Bill
If you are Struts 1.1 you can use the logic:messagesPresent tag. -Original Message- From: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 9:37 AM To: Struts Users Mailing List Subject: Checking for the existence of errors Hi all, Is there an elegant way using

RE: Struts application on jboss/jetty

2003-01-10 Thread Siggelkow, Bill
It looks like JBoss has already loaded an old Digester or you have an old copy of Commons in your WEB-INF. -Original Message- From: Danilo Luiz Rheinheimer [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 10:26 AM To: Struts Users Mailing List Subject: Struts application on

RE: Getting the full path of the context from within an Action class

2003-01-10 Thread Siggelkow, Bill
Simon, You should load this resource using the Class object. Take a look at the following: http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String) -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003

RE: Getting the full path of the context from within an Action class

2003-01-10 Thread Siggelkow, Bill
: Siggelkow, Bill [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, January 10, 2003 4:29 PM Subject: RE: Getting the full path of the context from within an Action class Simon, You should load this resource using the Class object. Take a look at the following

RE: String Array

2003-01-09 Thread Siggelkow, Bill
Try using the indexed attribute of the html:text tag. html:text name=myForm indexed=true property=costcenter size=12/ -Original Message- From: Gus Delgado [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 10:13 AM To: Struts Users Mailing List Subject: String Array I'm

RE: value=bean:write../ question

2003-01-08 Thread Siggelkow, Bill
You cannot use a tag as a value of an attribute in a tag -- you need to use a Runtime Expression (or expression language if you are using JSTL) as in the following: html:hidden property=sectionName value=%=ac.getSection().getName()%/ -Original Message- From: Vijay Balakrishnan

RE: Call Struts Action from JS

2003-01-08 Thread Siggelkow, Bill
What type of object is formObject? That is, how are you calling this function (e.g. from onclick? or some other event handler). If 'formObject' is actually the 'document' then you would do something like ... formObject.forms[0].action=%=request.getContextPath()%/getAccounts.do;

RE: Call Struts Action from JS

2003-01-08 Thread Siggelkow, Bill
()%/getAccounts.do; formObject.submit(); -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:20 AM To: 'Struts Users Mailing List' Subject: RE: Call Struts Action from JS What type of object is formObject? That is, how are you calling

RE: Advanced JSP page help.

2003-01-08 Thread Siggelkow, Bill
V, When you replied Yes below you seemed to indicate HTML provided some sort of built-in ability for multi-row selection in a table (not in a select control) -- I do not believe that HTML provides such -- however, you can indicate of rows in a table using a variety of input controls

RE: Ask confirmation before to apply action

2003-01-08 Thread Siggelkow, Bill
This is not a Struts question ... however, if you want a modal dialog -- that is, one where the user has to respond before continuing -- you need to use JavaScript. I am not trying to be critical but it sounds like you need to spend a little time learning the capabilities of HTML and browsers

RE: Adding another servlet into the mix

2003-01-08 Thread Siggelkow, Bill
Should be no problem. Just make sure it is configured in your web.xml with a different name and mapping (if any). -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 1:06 PM To: struts Users Subject: Adding another servlet into the mix

RE: value=bean:write../ question

2003-01-08 Thread Siggelkow, Bill
=String/ ... value=%= myId% .. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 5:36 AM To: 'Struts Users Mailing List' Subject: RE: value=bean:write../ question You cannot use a tag as a value of an attribute in a tag -- you need

RE: value=bean:write../ question

2003-01-08 Thread Siggelkow, Bill
PROTECTED]] Sent: Wednesday, January 08, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: RE: value=bean:write../ question No, it will still be set. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Siggelkow, Bill [mailto

RE: How to pass control between two struts web apps deployed on the same app server.

2003-01-07 Thread Siggelkow, Bill
The servlet spec disallows forwarding between web applications. The second app does not have access to the session. If you need a shared session, you might want to consider using Struts modules to subdivide your web application. If you are looking to implement a single-sign-on -- they are ways

RE: Oracle JDeveloper 9i and Struts Tomcat deployment

2003-01-07 Thread Siggelkow, Bill
If I were you, I would use Ant to compile and deploy to my app server -- You get the best of both worlds if your IDE supports Ant :) -Original Message- From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 10:15 AM To: '[EMAIL PROTECTED]' Subject: Oracle

RE: Weblogic problem with Struts V1.1-b2 or 3

2003-01-07 Thread Siggelkow, Bill
I think I had the same problem ... what I did was download and reinstall WLS 6.1 sp4 -- it was a major pain but I was able to get things working ... honestly, WLS can be a frustrating product -- personally, I find JBoss easier to work -- (unfortunately my employer has a fear of things that are

RE: Struts equivalent of if...else (newbie)

2003-01-06 Thread Siggelkow, Bill
I believe that the logic tags will work with a local variable -- anyway, if you don't want to use scriptlet, how did you create the local variable in the first place? -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 8:59 AM To: [EMAIL

RE: Date Formats

2003-01-06 Thread Siggelkow, Bill
Struts does not convert Strings to dates -- you neecx to do this in your ActionForm -- for example, you can have Display methods such as getDateDisplay:String setDateDisplay(String d) that perform the conversion to the internal Date type. -Original Message- From: usha [mailto:[EMAIL

RE: Struts equivalent of if...else (newbie)

2003-01-06 Thread Siggelkow, Bill
with local variables, it worked. Thanks for that. And still, logic:equal offers only if..then; is there any way to simulate if..then..else? Thanks, Suresh -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 7:41 PM To: 'Struts Users Mailing List

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Siggelkow, Bill
Did you try taking the version off the URI? In other words, use: http://jakarta.apache.org/struts/tags-tiles; -Original Message- From: Daniel Grey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 5:21 PM To: [EMAIL PROTECTED] Subject:

RE: [OT] some log4j problems using RollingFileAppender not creating a backup file

2003-01-03 Thread Siggelkow, Bill
Rick, I have had this working with Log4j 1.2.6 on both solaris and windows. I saw your post on the struts-atlanta group about this and noting some possible windows file locking issue. Have you tried a different path to see if that makes any difference? Maybe use a relative file path?

RE: Re[2]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Siggelkow, Bill
Are you saying that when it reaches 2K it is creating a new backoffice.log but not creating the archive (backup) copy? -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 11:58 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject:

RE: tiles:insert page= question...

2003-01-03 Thread Siggelkow, Bill
It is my understanding that any page that you include cannot be outside of the current servlet context root. In fact, I am surprised that this worked for you on iPlanet -- it seems to me to be inviolation of the servlet spec. -Original Message- From: ajTreece [mailto:[EMAIL PROTECTED]]

RE: Re[4]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Siggelkow, Bill
Do you have a Windows Explorer window open on that folder? I have found that Windows explorer can hold locks this way. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 1:30 PM To: Struts Users Mailing List Subject: Re[4]: [OT] some log4j

RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Try something like ... logic:iterate indexId=index ... bean:define id=indexMod2 value='%= index % 2 %'/ logic:equal name=indexMod2 value=0 markup for even row here /logic:equal logic:notEqual name=indexMod2 value=0 markup for odd row here /logic:equal /logic:iterate

RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
once in a single page (which is what we would be doing in an iterate tag.) Unless I'm misinterpreting. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 2:49 PM To: 'Struts Users Mailing List' Subject: RE: Iterate Index Evaluation Try

RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
markup here /logic:notEqual /logic:iterate Give it a try! The expression is still a little wicked but not as evil as the scriptlet. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 3:43 PM To: 'Struts Users Mailing List' Subject: RE

RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: January 3, 2003 3:53 PM To: 'Struts Users Mailing List' Subject: RE: Iterate Index Evaluation Strike that ... reverse it! I was able to use

RE: defeating caching

2003-01-02 Thread Siggelkow, Bill
Add the following stanza to your struts-config.xml ... controller nocache=true/ -Original Message- From: Caoilte O'Connor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 01, 2003 10:36 PM To: [EMAIL PROTECTED] Subject: defeating caching Hi, Can anyone tell me exactly what

RE: Ye olde html:options tag?

2003-01-02 Thread Siggelkow, Bill
Try using the 'collection' attribute instead of 'name' ... otherwise, the tag interprets the name/property combination as identifying the collection. html:options collection=users property=email labelProperty=email/ \-Original Message- From: Michael P [mailto:[EMAIL PROTECTED]]

RE: Error loading struts-config

2002-12-23 Thread Siggelkow, Bill
The error sounds like the servlet cannot even find struts-config.xml. Check the war to make sure struts-config is really there and in the WEB-INF folder. You can open the war with WinZip. Also, make sure that the folder WEB-INF is in all caps. -Original Message- From: Howard Miller

RE: Access external file from web application

2002-12-23 Thread Siggelkow, Bill
I built an application on WLS 6.1 using Struts 1.0 that supported display of user-uploaded content. Several keys to this were: 1) I had to deploy the web app in exploded format 2) If WLS was run in Production Mode I had to call a little runtime script that deployed (refreshed) the new content

RE: no getter method for property phoneList

2002-12-23 Thread Siggelkow, Bill
Try using -- html:text property=adminRight[2]/ -Original Message- From: Jitendra Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:32 AM To: Struts Users Mailing List Subject: Re: no getter method for property phoneList I am trying as given on the apache server ... but

RE: How to set formbean properties without asking the user

2002-12-23 Thread Siggelkow, Bill
You could use a hidden field with the value equal to the value of the scripting variable .. html:hidden name=personalplanungEditForm property=someProperty value='%=theScriptingVariable%'/ -Original Message- From: Tobias Flohre [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002

RE: How to set formbean properties without asking the user

2002-12-23 Thread Siggelkow, Bill
Can you provide more details? When you are dealing with forms, the basic types are either String or booleans. Perhaps what you want to do is best handled in your Action that processes the form. It sounds like you need to make an object available in let's say the request scope and then have

RE: struts-config: action's input attribute purpose

2002-12-23 Thread Siggelkow, Bill
Following is taken verbatim from the struts-config.dtd input Module-relative path of the action or other resource to which control should be returned if a validation error is encountered. Valid only when name is specified. Required

RE: Cancel Submit Buttons

2002-12-20 Thread Siggelkow, Bill
You could do it in your action like; if (isCancelled(request)) return mapping.findForward(mainMenu); -Original Message- From: Bradley G Smith [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: Cancel Submit Buttons Can someone please

RE: reset doesn't work well

2002-12-20 Thread Siggelkow, Bill
The html:reset really has nothing to do with the reset method of your form ... instead this renders an input type=reset button that will reset the form fields to their default state as known by the browser. Therefore, in the case when you have returned to the form after a validation failure

RE: reset doesn't work well

2002-12-20 Thread Siggelkow, Bill
understanding, whenever user clicks reset button, it will call the reset method, therefore, all the fields should be cleared. Please correct me if I am wrong. Thanks Siggelkow, Bill [EMAIL PROTECTED] wrote:The really has nothing to do with the reset method of your form ... instead this renders

RE: Form Errors (Newbie)

2002-12-19 Thread Siggelkow, Bill
Yes -- you will see the fields filled if you specify the jsp page as the input attribute of the action mapping. Struts will forward the form and the errors back to the input page for rendering. -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: struts-el:submit question

2002-12-19 Thread Siggelkow, Bill
Are you missing the trailing quote of the el ${action} -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 9:11 PM To: Struts Users Mailing List Subject: struts-el:submit question Hi, I have this code snippet html-el:submit

RE: Struts Frames

2002-12-18 Thread Siggelkow, Bill
Yes ... that's it I have my login forward to an index.jsp which is the frameset -- the src of the frames in that frameset is dynamically generated based on some user profile info. -Original Message- From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]] Sent:

RE: mapping to domain objects

2002-12-18 Thread Siggelkow, Bill
One option is to have your form implement an a domain (business) object interface. For example, you would have Customer interface that would have the get/setFoo methods and the form would implement get/setFoo (for the business interface) and get/setFooString (for presentation) -- in this way

RE: Struts and session

2002-12-17 Thread Siggelkow, Bill
Doug, the servlet container is responsible for invalidating the session based on the configured timeout. If you want to take some action when that occurs you should register an HttpSessionListener to receive notification of session lifecycle events. For complete details you can read the

RE: Replacement values

2002-12-16 Thread Siggelkow, Bill
DId you try ... logic:iterate id=item name=myForm property=x bean:message key=somevalue arg0=%=item%/ /logic:iterate -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:19 AM To: Struts Users Mailing List Subject: RE: Replacement values

RE: Javascript/Taglib usage

2002-12-16 Thread Siggelkow, Bill
Can you be more specific? Do you mean using Validator? or just invoking event handlers (onclick, etc.)? or dynamically generating JavaScript? -Original Message- From: Louis Proyect [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:52 AM To: Struts Users Mailing List

RE: taglib question

2002-01-04 Thread Siggelkow, Bill
If you are using Weblogic, you would put the jar file containing foo.tld in the application server's classpath as opposed to the WEB-INF for each of the web apps. -Original Message- From: William Shulman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 8:11 AM To: [EMAIL

RE: How to use an expression in a logic tag?

2001-12-21 Thread Siggelkow, Bill
Add a property on your bean that returns the value of maxRecords + rowPosition then refer to that property in the tag. -Original Message- From: T. Wheeler [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 3:19 PM To: [EMAIL PROTECTED] Subject: How to use an expression in a logic

RE: Problem with bean:define?

2001-12-19 Thread Siggelkow, Bill
Mailing List Subject: RE: Problem with bean:define? are you saying your jsp is getting null pointer excp in setAttribute() in the bean:define tag? does this work? bean:write name=editRegForm property=postDate / Keith. (not much use I suspect - try my best!). --- Siggelkow, Bill [EMAIL

RE: Problem with bean:define? Issue with Date fields

2001-12-19 Thread Siggelkow, Bill
- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:56 AM To: 'Struts Users Mailing List' Subject: RE: Problem with bean:define? Yes that is what I am saying ... I am not sure if the bean:write works ... (Since I found the problem I was able to find a work

Help with understanding validation and reset

2001-12-19 Thread Siggelkow, Bill
Okay, I do not think I understand the contract of the ActionForm validate method. The problem I am having is that I appear to lose some a data value when I return to an input page after I return validation errors. Specifically, I have a Date property called 'postDate' ... the value of

RE: Problem with bean:define?

2001-12-19 Thread Siggelkow, Bill
this work? bean:write name=editRegForm property=postDate / Keith. (not much use I suspect - try my best!). --- Siggelkow, Bill [EMAIL PROTECTED] wrote: Specifically, I am trying to use the define tag to define a variable based on a property of the FormBean as follows: (the getLocalDate is my own

Problem with bean:define?

2001-12-18 Thread Siggelkow, Bill
I am using the bean:define tag to make a variable available ... he's the wierd part ... it works the first time I enter the form ... but if I return to the form because of a validation error ... it fails with a NullPointerException in the pageContext.setAttribute method ... it seems to me the

RE: Problem with bean:define?

2001-12-18 Thread Siggelkow, Bill
/ -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:33 AM To: '[EMAIL PROTECTED]' Subject: Problem with bean:define? I am using the bean:define tag to make a variable available ... he's the wierd part ... it works the first time I enter

RE: Problem with bean:define?

2001-12-18 Thread Siggelkow, Bill
type=com.mirant.extranet.forms.PendingRegistrationForm/ mir:getLocalDate date=%=tmpRegForm.getPostDate()% style=long/ I do not know why this works but the other way (using the define tag to get the property) failed. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent

RE: Invalidate and container authentication in multi-app environment

2001-12-18 Thread Siggelkow, Bill
I know in WLS 6, all web apps use the same cookie name, JSESSIONID to hold the session ID (and thus facilitate single-sign-on). In WLS 6, you can specify a different cookie name in the weblogic.xml file for that web app if you don't want the single-sign on behavior (which I think is what you are

RE: Form Bean with a Mutliselect box

2001-12-17 Thread Siggelkow, Bill
I have done this by with getter/setter that uses an array of Strings as follows: public String[] getMergeeIds() { return mergeeIds; } public void setMergeeIds(String[] ids) { this.mergeeIds = ids; } Then in my form I use the multiple=true ... html:select

RE: Form Bean with a Mutliselect box - Followup Question

2001-12-17 Thread Siggelkow, Bill
MergeeIds to then pull a second hashtable/array(from a form) to list a set of values based on the ID Select Box? I guess I'm a bit confused on the syntax. Thanks again, Paul --- Siggelkow, Bill [EMAIL PROTECTED] wrote: I have done this by with getter/setter that uses an array of Strings as follows

RE: Setting content attributes

2001-12-14 Thread Siggelkow, Bill
link rel=StyleSheet href=jsp:expressionrequest.getContext()/jsp:expression/stylesheet.css/ -Original Message- From: Luke Studley [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 3:13 PM To: struts-user Subject: Setting content attributes How do you set the values from

RE: How to list options in order?

2001-12-14 Thread Siggelkow, Bill
I see two primary options ... (1) use a TreeMap instead of a Hashtable However, to me this be unnecessary if the sorting is purely for presentation purposes, or (2) Create a JavaBean that holds two lists ... one for the option values and one for the option labels ... sorted according to the

RE: FORM Authentication to Realm

2001-12-12 Thread Siggelkow, Bill
It seems like you are wanting to bypass the authentication check and I don't that is permitted using form-baased authentication. -Original Message- From: David Bolsover [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 5:15 PM To: Struts User Subject: FORM Authentication to

RE: Tomcat + Struts in Production Environment

2001-12-10 Thread Siggelkow, Bill
You don't have to use EJBs just to take advantage of an app server's connection pooling. I think the advantage of using EJB is that the App Server has connection pooling. And AppServers supports caches (??) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: File in DB vs. File system part2

2001-12-10 Thread Siggelkow, Bill
You can force a refresh with JavaScript like ... script function _refresh() { window.location.reload(true); } /script Then you can call this function if the pic has been updated. I have not actually tested this so YMMV. -Original Message- From: Andy Timm [mailto:[EMAIL

RE: html:link href to external URL in a

2001-12-05 Thread Siggelkow, Bill
You can do this by just coding the link in with an HTML anchor tag as folows: a href=bean:write name=abcd property =xyz/ bean:write name=abcd property=xyz/ /a or use an expression html:link href=%=abcd.getXyz()% bean:write name=abcd property=xyz/ /html:link -Original

RE: Populating form in the action

2001-12-05 Thread Siggelkow, Bill
It knows because you access the form via the html:form tag. -Original Message- From: John Ng [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:25 PM To: Struts Users Mailing List Subject: Populating form in the action Hi, I have some questions about how to populate the

RE: setting a default bean for logic tags

2001-12-05 Thread Siggelkow, Bill
I believe that the name attribute can take a request-time expression that you could use for this purpose. -Original Message- From: Mike Hoeffner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:49 PM To: [EMAIL PROTECTED] Subject: setting a default bean for logic tags

RE: check for null collection

2001-11-29 Thread Siggelkow, Bill
The way I do it is to create a variable using the bean:size tag that represents the size of the collection ... Then I check if that value is 0 as follows ... (in addition you might want to also check if the collection is present as you are doing) bean:size

RE: Logout Action

2001-11-29 Thread Siggelkow, Bill
I am using form-based authentication on WLS 6.1 sp1 and do not see this behavior. -Original Message- From: Cameron Ingram [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: Logout Action Hi all and thanks in advance! I have a link that

Inconsistent error uploading PDF

2001-11-21 Thread Siggelkow, Bill
I having inconsistent errors displayed by acrobat after uploading a PDF file using the Struts (via the FormFile) ... The file size is the same however, acrobat says There was a problem processing the page ... then something about an error (110) ... or sometimes error (16) ... I have been unable

RE: Inconsistent error uploading PDF

2001-11-21 Thread Siggelkow, Bill
Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:15 AM To: '[EMAIL PROTECTED]' Subject: Inconsistent error uploading PDF I having inconsistent errors displayed by acrobat after uploading a PDF file using the Struts (via the FormFile) ... The file

RE: Logic:empty

2001-11-19 Thread Siggelkow, Bill
Use the logic:notPresent tag -Original Message- From: Ines [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 5:30 PM To: [EMAIL PROTECTED] Subject: Logic:empty I canĀ“t find the empty tag. The documentation presents it but I could not find the class. The problem i have is

RE: Newbe - problem with Struts-Config.xml

2001-11-02 Thread Siggelkow, Bill
Your JSPs should not be in your WEB-INF folder ... try moving it up. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: Newbe - problem with Struts-Config.xml Hello, I am relatively new to

RE: Weird problem (WAS)

2001-10-25 Thread Siggelkow, Bill
Check your url patterns for the ActionServlet servlet mapping in your web.xml. -Original Message- From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 10:12 AM To: [EMAIL PROTECTED] Subject: Weird problem (WAS) Seems like my struts installation doesn't work

RE: problems mapping multiple ActionServlets

2001-07-23 Thread Siggelkow, Bill
I had the same question last week (and for some reason did not get any response from the mailing list?) ... anyway, it seems to me that Struts really does not handle multiple servlet mappings for the ActionServlet. When using extension mappings, Struts finds the action mapping to use by

RE: logic:equal tage's value attribute

2001-07-19 Thread Siggelkow, Bill
I think your getting the error because of the placement of the quotes. Try using single quoutes around the JSP expression as follows ... logic:equal name=questionnaireVO property=qnrId value='%=request.getParameter(qnrId)%' /logic:equal -Original Message- From:

RE: URI is null error on ActionForward

2001-07-19 Thread Siggelkow, Bill
Use 'mapping.findForward(success)' instead of creating a new ActionForward as the return value of your perform method. This will use the local forward defined for your action, or if not specified, will try and find a global forward named success. -Original Message- From: Gogineni,

*Test Only* - Is this message working -- please reply

2001-07-19 Thread Siggelkow, Bill
Bill Siggelkow eBusiness Lead Developer 678.579.6458 Mirant http://www.mirant.com

multiple servlet mappings for action servlet?

2001-07-19 Thread Siggelkow, Bill
What are the implications if I have multiple URL mappings for my ActionServlet? Specifically, say I configure '*.do' and '*.go' as mappings. I may want to do this for security reasons, let's say, where *.do is for security-constrained web resources and *.go is for non-security constrained

RE: Problem when Form-Validation adds ActionErrors

2001-07-17 Thread Siggelkow, Bill
You need to specify an input attribute for your action that points to your jsp page. The input attribute identifies the page to go back to when errors occur ... So your action mapping would look like ... actionpath=/addrequest

RE: indexed property iteration

2001-07-17 Thread Siggelkow, Bill
What you *really* should do is use the Struts iterate tag in the logic TLD. Using scriptlet is generally a *bad* thing ... however, if you really wanted to do this you need to use a JSP expression for the property value like this ... Text: html:text property='%=names[i]%'/ -Original

RE: disconnect

2001-07-17 Thread Siggelkow, Bill
Your app server should allow you to set a timeout on the HttpSession ... also, you can invalidate the session yourself by calling 'session.invalidate()'. I do not know of a way to directly determine if a user has closed the browser ... -Original Message- From: Rakesh [mailto:[EMAIL

RE: Link Tag not supported?

2001-07-16 Thread Siggelkow, Bill
You should only need to provide a relative link as the href attribute of your link tag. You can also use the Struts base tag to set the base from the calling page ... html head titleMy Home Page/title html:base/ link rel=stylesheet type=text/css href=styles/default.css