RE: JDBC Driver

2005-01-18 Thread bill
We use the datadirect and it's fine (and yes pricy). We also still support the microsoft VM for client side (heavy client not servlet stuff). Their current versions don't but if you can get 5.1, that works fine with client side and struts. bp -Original Message- From: David Bolsover [mai

need help precompiling jsps

2005-01-19 Thread bill
localhost\dgJobs" to it and got the same exception bill page [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: need help precompiling jsps

2005-01-19 Thread bill
o I added > > -d "..\work\Standalone\localhost\dgJobs" to it and got the same exception > > bill page > [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For

Struts Design Question

2005-12-07 Thread bill
A bit of a struts newbie here. I have an application with the following page flow: choose Product Category --> choose Product Model --> create/edit chosen model Currently we only have one ActionForm\JSP Edit Form, but we need to expand this to support different Product Categories. Each would be

Re: Help with using declarative error handling

2004-05-17 Thread Bill Schneider
Hi, try changing the exception handler in struts-config.xml to You can get rid of the whole catch block in your action--the ActionServlet takes care of it. That's the beauty of declarative exceptions. -- Bill >> Wherever an exception is thrown in AuthenticateAction, I add some code

Re: How to renderize a image?

2004-05-26 Thread Bill Schneider
ts' ActionServlet already appears to do that. So you have to write an actual servlet. Hope this helps, Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-86

Checkbox (boolean) with DynaActionForm

2004-05-31 Thread Bill Siggelkow
quot; but it did not seem to work. Here is the form: Any insight would be greatly appreciated. Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

LazyDynaBean

2004-06-03 Thread Bill Siggelkow
I was looking at Nialls LazyDynaBean and was wanting good use cases for using these classes. I am working on a book and wanted to include something about using these. Niall feel free to e-mail directly at billsigg at bell south dot net. Bill Siggelkow

Re: Security and Struts (JAAS?)

2004-06-04 Thread Bill Siggelkow
Ralf, Forgive me if I misintrepreted what you are asking, but I believe what you are wanting to use the Struts "role" attribute on actions for application-managed security. One way is to put a check on every page as was suggested and is done in the Struts example. Another way is to provide a c

Re: and get...()

2004-06-04 Thread Bill Siggelkow
The reason you "System.out.print(foo.getBar())" printed "null" is because that is how the print method is written. If the returned value of the method is actually null then the "print" method prints the value "null". Long story short, what you are seeing is result of calling "System.out.print"

Re: Transition after registering new user

2004-06-04 Thread Bill Siggelkow
quickrobert: Just taking some guesses here ... Does the user pass authentication when the login after registration? If not, then it sounds like that JBoss is not rereading the security info from the database. If so, then you may need to "fake" the login by programmatically going through j_secu

Re: [OT] thick client functionality in the browser

2004-06-04 Thread Bill Siggelkow
sier using JSTL (heck, I could have used the XML tags). Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: People Soft Component Interface

2004-06-04 Thread Bill Siggelkow
Off the top of my head I would look into whether or not PeopleSoft supports the JCA (Java Connector Architecture) -- it was designed for just this sort of thing. Zhang, Larry (L.) wrote: Sorry for this off topic question, but I don't know which group I should post this question. I posted this o

Re: converting bean:write to c:out

2004-06-07 Thread Bill Siggelkow
-- or -- Richard Raquepo wrote: hi, i am converting some of the jsp's to jstl. how do i convert this line to jstl: where getValue is defined as HashMap values = new HashMap(); . public String get(String name){ String value = (String) values.get(name); return value; } hoping

Re: file upload problem(illegal argument)

2004-06-07 Thread Bill Siggelkow
What is the type of the property in your form? It should be org.apache.struts.upload.FormFile. swarna wrote: Hi, I am trying to do file upload using struts1.1. I am getting illegal argument type exception(stack trace attached below). I am struggling to fix this since three days. I would

Re: converting bean:write to c:out

2004-06-07 Thread Bill Siggelkow
g a method like: public Map getValues() { return values; } Then JSTL can be used like: Quoting Bill Siggelkow <[EMAIL PROTECTED]>: -- or -- Richard Raquepo wrote: hi, i am converting some of the jsp's to jstl. how do i convert this line to jstl: where getValue is defined as Ha

Re: user defined beans in form bean

2004-06-07 Thread Bill Siggelkow
... Jannu Winod wrote: how to handle user defined beans if we are using them in form beans. see the following code. Im looking for the jsp code in struts to define the text fields pls send me the code. with thnx. class MyBean { private String firstName; private String lastName; public voi

Re: [ANNOUNCE] Struts Console v4.7 - GUI tool

2004-06-07 Thread Bill Siggelkow
Git r dun! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Logic:iterate

2004-06-08 Thread Bill Siggelkow
I am doing this from memory but I think it is right ... Let' suppose that the HashMap is exposed on the bean by the method Map getFooMap() {...} then you can use on your JSP: Key: Value: Bill Siggelkow Naresh Sharma wrote: Hi, I am setting a bean from my action class, this bean class ha

Re: Logic:iterate property

2004-06-09 Thread Bill Siggelkow
Srilatha, By placing the 'list' in the session you can access it by name ... the Struts tags search the JSP scopes (page->request->session->application) if the scope is not explicitly specified ... the following link for the 'bean' taglib has a lot of info about how the 'name' and 'property' at

Re: HTML pages convert to Struts/JSP pages

2004-06-10 Thread Bill Siggelkow
n class that extends ActionForm. This should get you well on your way -- as another pointed out, there is no silver bullet. Bill Siggelkow Heligon Sandra wrote: One person said me that it could be possible to use Struts Console. Has soemone already used

Re: Validation of dynaActionForm too early

2004-06-10 Thread Bill Siggelkow
Set validate="false" on the Action that forwards to the JSP containing the form. Set 'validate="true"' and set 'input="/myJsp.jsp"' for the action that processes the form. Tom Ansley wrote: Hi all, I am trying to use a dynaActionForm. The problem I am having is that when a user requests an act

Re: Validation of dynaActionForm too early

2004-06-10 Thread Bill Siggelkow
-end etc. In cases where I do not need to pre-populate then I simply route through the ForwardAction to the JSP. Avinash Gangadharan wrote: I have a question that I always thought of for such situations. It is adviesd to have 2 action mappings as Bill suggests for such situations, one that sets up

Re: Request object

2004-06-10 Thread Bill Siggelkow
Use -- this will create a page-scoped variable and a scripting variable. Complete details can be found at: http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter Naresh Sharma wrote: HI, In one of my include JSP I wish to fetch a particular request attribute which was set by main

Re: Struts scalability and benchmarking

2004-06-10 Thread Bill Siggelkow
Personally, I think this would be more a function of (1) the application server/container that you are using (Tomcat/JBoss/WAS/...) and (2) the hardware/clustering etc. Also, you need to do some additional analysis on expected number of users, estimate how much data will be held in the session,

Re: form handling

2004-06-11 Thread Bill Siggelkow
It sounds like you would want to use a session-scoped form containing an array of Strings representing the total set of the selections. Then you would use to create the checkboxes on the form. As a far as the paging/selecting by letter -- this is not too hard -- you just need your Action to h

Re: J2EE Login -- Howto?

2004-06-15 Thread Bill Schneider
tely, but hopefully this points you in the right direction. There may also be a more elegant solution by registering a custom JAAS CallbackHandler or LoginContext; you might want to look into this as well. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B Colle

Re: Problems with 'properties' of tags.

2004-06-17 Thread Bill Siggelkow
Well, I have not tested your case explicitly; however, the Struts/JSP/JSTL tags are all based on the JavaBeans spec for getters and setters --- property: fooBar accessor: getFooBar() {...} mutator: setFooBar(FooBar aFooBar) {...} So, it's best to use that standard for your property names if poss

Re: Action Mapping in the struts-config.xml When There Is No Form

2004-06-17 Thread Bill Siggelkow
Hmmm -- you seem to be missing the "type" attribute that specifies the action class. Caroline Jen wrote: I often have to call a servlet which extends Action; but, I do not have a form submitted. The action mapping in the struts-config.xml gives me problem when I leave out the 'name' attribute; fo

Re: Bug in when embedding another ?

2004-06-17 Thread Bill Siggelkow
c:choose tags are not allowed to be nested per the JSTL spec. Instead, use the logic capabilities of EL in the "test". c:choose can only contain one or more "when" tags and, optionally, an "otherwise" tag. Bill Siggelkow Konrad wrote: Hello. I'm usin

Re: Theoretical debate

2004-06-18 Thread Bill Schneider
to migrate an ad-hoc/Model 1 servlet or JSP to Struts. -- Bill -- Bill Schneider Chief Architect Vecna Technologies, Inc. 5004 Lehigh Road, Suite B College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7594 f: 301-699-3180 - To unsubscrib

> Re: Theoretical debate

2004-06-18 Thread Bill Schneider
DTOs from XDoclet tags in a POJO data model. That way you get _both_ real DTOs and Form Beans without writing all the classes by hand, and you can copy between DTOs and form beans with BeanUtils.copyProperties. -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suit

Re: How To Get the 'initial' in the form-property?

2004-06-19 Thread Bill Siggelkow
Hmm .. in your Action's execute method you should be able to do: DynaValidatorForm myForm = (DynaValidatorForm) form; String sort = myForm.get("sort"); String order = myForm.get("order"); This will get the current values on the form -- if the form was just created than these will be the initial va

Re: bean defines

2004-06-19 Thread Bill Siggelkow
Chris, your running into the problem because when you use where the value is specified in the body of that tag, it create a new String scripting variable as well as a page-scoped attribute that is also a String. Instead, you want the actual form bean itself. I am not too sure about how tiles

Re: Detecting browser close

2004-06-19 Thread Bill Siggelkow
AFAIK this cannot be done -- your best bet is to provide a Logoff link and a reasonable session timeout. ksitron wrote: Is there a way to detect when the user closes the browser. What I want to do is do clean-up and destroy the session. Thanks in advance.

Re: ActionForm returning blank jsp

2004-06-21 Thread Bill Siggelkow
One thing I noticed is that on your JSP the is inside the -- it should be vice-versa -- the needs to be inside the I have seen cases of a blank JSP when I am forwarding to an invalid or unknown page. [EMAIL PROTECTED] wrote: Thanks for your help, Frank. I tried changing my code to match yo

Re: Why the 'initial' in the form-bean Does Not Automatically Populate the Form?

2004-06-21 Thread Bill Siggelkow
When you say "without" threadForm do you mean that you are not specifying the "name" attribute on the mapping? If yes, it means that Struts doesn't know to associate the form with the action. If no, then did you try calling the "initialize" method on the DynaActionForm? Caroline Jen wrote: The

Re: how do i get members of DynaActionForm inside Action Class

2004-06-22 Thread Bill Siggelkow
In your execute() method: DynaActionForm myForm = (DynaActionForm) form; String foo = (String) myForm.get("foo"); String bar = (String) myForm.get("bar"); Asim Ghosh wrote: hi guys, if somebody can give me the solution to this problem. i am using DynaActionForm and now i want to retrieve the

Re: no struts classes (jar files) found by application

2004-06-22 Thread Bill Siggelkow
Actually -- that is how its supposed to work :) Sharing of the Struts jars across applications is not supported. For more details see: http://jakarta.apache.org/struts/userGuide/configuration.html#config_add Bill Siggelkow Michael Kastner wrote: Hello, maybe someone can help. I've tri

Re: Illegal target of jump or branch

2004-06-22 Thread Bill Siggelkow
This might be caused by bumping into a 64K bytecode limit -- here's a link that discusses it: http://www.scioworks.net/devnews/strutsDistilled/updates/update-030401/jspSize.html P.S. Google is your friend ;) Le Goff, Yoann wrote: Hi, does this message talk to somebody ? Illegal target of jump

Re: How to use dynamically generated CSS style with Struts tags

2004-06-22 Thread Bill Siggelkow
Sounds like a custom JSP tag would work pretty well here ... Voinea, Marina wrote: Hi everybody, Can you please help with the following question: What are the possible ways (and best) to modify the style sheet at run time using Struts framework? Our application is using Struts tags which refer

Re: Treeview - Frameless Layout in struts

2004-06-23 Thread Bill Siggelkow
I think struts-menu (http://struts-menu.sourceforge.net) might suit your needs. Yadav, Ganesh wrote: Folks, I am developing a J2EE based data oriented application using Struts. I want to develop a UI using Frameless Layout For Tree view, something like left side of the page will have a Tree View

Re: How to pass parameters to forward in bean:include?

2004-06-23 Thread Bill Siggelkow
Did you try using the 'page' attribute and just adding the values manually to the query string? Robert Bowen wrote: I would like to do a ... but looking at the Struts API, something I cannot do is pass the forward parameters. If it were an struts html link tag I could do: ... thus calling

Re: Struts - How to recover collection element

2004-06-23 Thread Bill Siggelkow
There are a couple of ways of doing this. I think the best approach is to wrap your collection in a JavaBean that is stored in the session. Something like the following: public class OptionsHolder { Map options = new HashMap(); public OptionsHolder() { options.put("key1", new LabelValueB

Re: Struts - How to recover collection element

2004-06-24 Thread Bill Siggelkow
'MyForm.key' ... Also, I am a little confused by your JSP. It looks you are trying to hold the description in a hidden field on the form--this should not be necessary--I was under the impression that you wanted to render the description on the page following this JSP. [EMAIL PROTECTE

Re: How to execute an initialization by using another servlet entry in web.xml

2004-06-24 Thread Bill Siggelkow
If you are using approach #3 then extend HttpServlet. However, you should not need to be accessing the ActionServlet from the init servlet. Perhaps you could provide some more background on what you are trying to accomplish. manoj JC wrote: Can somebody provide some sample code to do this. Plea

Re: How to implements Role Based Access Control in Struts ?

2004-06-24 Thread Bill Siggelkow
is chapter. Let me know if you have more specific questions: I will be glad to help :) Bill Siggelkow javen fang wrote: Hi , all: I have queried this mailing list, and I get some discusses about RBAC ( Role Based Access Control ) in struts. I understand that in JSP page and "role" attrib

Re: JSP:include page + Resource bundle

2004-06-24 Thread Bill Siggelkow
Perhaps this would work: Naresh Sharma wrote: HI, Please suggest, I wish to pass ‘header’ parameter to CommandSaveIncludeHeader.jsp, the value inside ‘header’ parameter is actually a key in Resource bundle. See ex. I am not sure if any Struts tag is there for above sta

Re: Arraylists/Collections

2004-06-24 Thread Bill Siggelkow
java.sql.Array? CRANFORD, CHRIS wrote: Is there a proper way to pass an arraylist/collection to a pl/sql procedure besides turning it into a string on the java-side and passing it then as a VARCHAR parameter? ___ Chris Cranford Programmer/Develope

Re: Is it possible to reuse the same FormBean with different actions?

2004-06-25 Thread Bill Siggelkow
Sounds like you should be setting the FormBean to be in session scope for the Actions -- as far as the "input" attribute being a problem -- I really don't understand. Perhaps you could include more information :) Asif Rahman wrote: I have a few jsp pages that use almost the same information. I

Re: Converting Java Code in JSP to JSTL

2004-06-25 Thread Bill Siggelkow
ull ) && ( !article.equals( prevArticle ) ) {} Good Luck! Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LookupDispatchAction Error When Pressing Enter Key

2004-06-27 Thread Bill Siggelkow
Hmm .. I just tested using a LookupDispatchAction and Firefox 0.9 -- I found that when I pressed Enter it submitted using the first submit button defined. That being said, you can override the "unspecified" method of DispatchAction -- this method will be called instead of a ServletException bei

Re: using set-property in forward tag

2004-06-28 Thread Bill Siggelkow
Hi Nikhil, It sounds like what you really want to do is set add a request parameter name-value pair to the query string of the URL. If so, then you can add these values directly in the definition of the foward and still set redirect = "true" ... The example below passes two parameters to Act

Re: How to populate fields in a form with data retrieved from a database table...

2004-06-28 Thread Bill Siggelkow
Dear Mr Labs: Perhaps you do a little more "research"? Seriously, I am not sure what problem you are having. I suggest you use the classic DAO (data access object) pattern to encapsulate your database access. Have the DAO return a Customer business object. You can then populate your CustomerFor

Re: using set-property in forward tag

2004-06-28 Thread Bill Siggelkow
d(path.toString(), forward.getRedirect()); } If you place this method in a BaseAction, then you can call this in your ActionB's execute method ... public ActionForward execute(...) { // stuff here ActionForward forward = mapping.findForward("success"); forward = appendParam(

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Bill Siggelkow
You cannot call static methods with JSTL 1.0. The simplest option is to create a JavaBean that you place in some application scope that wraps the static method call with a normal JavaBean getter instance method. That being said, if you truly are formatting stuff then use the JSTL formatting tag

Re: dynamic forms

2004-06-29 Thread Bill Siggelkow
You could try Nialls Pemberton's LazyActionForm ... http://www.niallp.pwp.blueyonder.co.uk/ Xavier Noria wrote: We have some forms whose fields are unknown until runtime. How would you implement them so that they worked within the framework smoothly? -- fxn --

Re: Append parameter value using html:link

2004-06-29 Thread Bill Siggelkow
Hey Dude ... try setting 'transaction="true"' on the html:link tag -- it should handle the token for you. Toll, Marvin (M.) wrote: Per the following listing - I am appending a parameter value to a URL. The "href" version works fine but would like to perform the equivalent using the "html:link" ta

Re: JSP Compilation Problems With JSTL Tags Used

2004-07-01 Thread Bill Siggelkow
Caroline as Geeta stated you cannot have tags within scriplet -- everything in between <% %> is taken literally -- it is expected to be Java code. That being said, you can accomplish what you need using the tag *before* the scriptlet -- bean:define unlike the JSTL tags creates a scripting var

Re: Returning an ActionError from an Action?

2004-07-01 Thread Bill Siggelkow
Sure ... just create the ActionErrors in your Action, save them using saveErrors(), then return the InputForward() public class SaveDataAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: What Is Wrong With This Tag?

2004-07-01 Thread Bill Siggelkow
Caroline ... I don't think I am being overly critical in saying that I think you need to do a little reading ... I suggest the JSP and JSTL tutorials. You cannot freely mix tags in tags with methods etc. ... blah blah blah http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro.html#wp100465 C

Re:

2004-07-01 Thread Bill Siggelkow
If the field is on the same form as the then the only way to populate is to use JavaScript. You can do this using an onchange listener on the html:select control. This is not a Struts thing but a JavaScript thing. Sonam Belbase wrote: I have the following: Please select a name: Your

Re: Map backed ActionForm, and jstl expression language

2004-07-01 Thread Bill Siggelkow
ccess the values by key in JSTL as ... translates to myForm.getValuesMap().get("theKey"); or the key can be dynamic ... ... translates to myForm.getValuesMap().get("foo"); HTH ... Bill Siggelkow John Martin wrote: Hi all, Any help on the following problem would be most appreci

Re: [OT] SecurityFilter: Custom Authenticator

2004-07-06 Thread Bill Siggelkow
Check out this thread -- it might help. http://sourceforge.net/forum/message.php?msg_id=2380960 Guillermo Meyer wrote: Hi: I want to use SecurityFilter and I need to implement my own Authenticator, because neither FormAuthenticator nor BasicAuthenticator fits my needs. The current scenario is that

Re: Request bean is lost

2004-07-06 Thread Bill Siggelkow
Try specifying input="/Page.do" instead of input="/Page.jsp" [EMAIL PROTECTED] wrote: Greetings, I have an action Page.do that gets 3 lists from a database. It then places the lists inside a bean which is set in the request. The Page.jsp iterates thru the bean to display the data. The form is p

Re: bean:write throws "Wrong format string"

2004-07-06 Thread Bill Siggelkow
You might want to look into the JSTL formatting tags. They handle locales quite well. James A. Hillyerd wrote: I'm having a problem rendering a number using the bean write tag, I'm using Struts 1.1. This is the offending JSP code: Here is the format entry in my appliation.resources: format.int

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread Bill Siggelkow
Try something like this little servlet: import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class CsvServlet extends

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread Bill Siggelkow
Ooh ... I was just reminded that the values between the commas should be quoted in case there are internal commas ... out.write("\"Every\",\"good\",\"boy\",\"does\",\"fine\"\r\n"); out.write("\"face\",\"

Re: [OT] Session facade

2004-07-07 Thread Bill Siggelkow
Glenn, I was with you until the part about the "return code" ... I think it would be better to translate the DAOException to some BusinessServiceException or something similar instead of a "return code". Generally, I try and avoid the "method returns a -1 to indicate that the operation failed" k

Re: duplicate submission

2004-07-08 Thread Bill Siggelkow
You can add the token to a link URL (html:link or html:rewrite tag) by setting 'transaction="true"'. Jignesh Patel wrote: We have specific requirement for generating token in JSP instead of action class to avoid duplicate submission. Can anybody tell us how to do that. --

Re: duplicate submission

2004-07-08 Thread Bill Siggelkow
that set a same token which will be used to avoid duplicate submission. -Jignesh On Thu, 2004-07-08 at 09:19, Bill Siggelkow wrote: You can add the token to a link URL (html:link or html:rewrite tag) by setting 'transaction="true"'. Jignesh Patel wrote: We have specific requir

Re: Setting the action attribute for nested:form

2004-07-08 Thread Bill Siggelkow
Hi Vinuta -- I noticed this is the second time you have posted this question. Usually if you don't get a response from the mailing list it indicates that you need to supply more information about your problem. Speaking for myself, I usually ignore posts that are unclear to me ... its not that I

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
You will need to add indexed getters and setters -- public String getAnswer(int index); public String setAnswer(int index, String value); ’/> [EMAIL PROTECTED] wrote: I have a form bean with a string array defined as a property, with a corresponding set/get like this: private String[] an

Re: country state swapping in struts

2004-07-09 Thread Bill Siggelkow
There are several different ways of handling this ... the easiest is to just use JavaScript -- you can hard-code JavaScript arrays -- or generate JavaScript arrays using Struts or JSTL tags -- or you can retrieve the list of states on the fly by using an onchange listener on the country field.

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
is: I am doing something wrong? Davide Gurgone wrote: Bill Siggelkow wrote: You will need to add indexed getters and setters -- public String getAnswer(int index); public String setAnswer(int index, String value); ’/> Better :) [CUT] [CUT] it render a property named propert

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
Okay -- now I am confused -- if I use your approach I get ... javax.servlet.ServletException: Cannot find bean esami in any scope I have to specify the name of the form as the value for the 'name' atrribute of logic:iterate Davide Gurgone wrote: Bill Siggelkow wrote: Davide, Maybe

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
Rick Reumann wrote: Bill Siggelkow wrote: Okay -- now I am confused -- if I use your approach I get ... javax.servlet.ServletException: Cannot find bean esami in any scope I have to specify the name of the form as the value for the 'name' atrribute of logic:iterate Are you sure yo

Re: country state swapping in struts

2004-07-09 Thread Bill Siggelkow
Exsqueezeme? Jignesh Patel wrote: Thanks, For information but we are facing one more problem we are able to set with java script but while givin form update feature it is not working as expected. -Jignesh On Fri, 2004-07-09 at 09:21, Bill Siggelkow wrote: There are several different ways of

Re: Simplifying struts-config.xml

2004-07-09 Thread Bill Siggelkow
http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards Michael McGrady wrote: At 07:57 AM 7/9/2004, you wrote: > The new wildcard support would also work, but only if all the root paths worked this way. > > > > > path='/*' > > type='com.crackwillow.struts.action.Forw

[OT] Struts limerick

2004-07-09 Thread Bill Siggelkow
There once was a web application That used Struts for its implementation The Boss said "Go Code It!" Now the developer who wrote it, Spends all of his time on vacation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [OT] Struts limerick

2004-07-09 Thread Bill Siggelkow
Done. Wendy Smoak wrote: Well... it *is* Friday, after all: http://wiki.apache.org/struts/StrutsLimerick (Can somebody fix the line breaks?) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: Which validator approach to use

2004-07-13 Thread Bill Siggelkow
I would concur with Ted -- I have worked with Struts apps that take approach (B) -- that is, using the business object as the Form -- not only does this bind your business object to the Struts API -- more importantly, you have to make sure that all the field types are strings or booleans. If no

Re: Check for forward

2004-07-13 Thread Bill Siggelkow
You can use container-managed security to restrict access to URLs -- IIRC direct requests (or redirects) to the resources is restricted, but forwards are not. Emmanouil Batsis wrote: Michael McGrady wrote: You can add information to your forwards, but, since they are your forwards, why would yo

Re: logic:iterate fails on (large) collection

2004-07-13 Thread Bill Siggelkow
It is not the size of the collection you are having the problem with but more likely it is data-related. Make sure you view the source that gets generated -- that will usually clue you into the offending data. Hmm -- I noticed that you are using HTML comments around some of your tags. Keep in

Re: Which validator approach to use

2004-07-13 Thread Bill Siggelkow
problem of migrating deeply nested VOs to Action Forms -- we have the same issues on the app that I am working on -- I feel your pain ;) Rick Reumann wrote: Bill Siggelkow wrote: I would concur with Ted -- I have worked with Struts apps that take approach (B) -- that is, using the business object a

Re: logic:iterate fails on (large) collection

2004-07-13 Thread Bill Siggelkow
Oops -- my bad -- the JSP comments are balanced <%-- --%> Bill Siggelkow wrote: It is not the size of the collection you are having the problem with but more likely it is data-related. Make sure you view the source that gets generated -- that will usually clue you into the offending data

Re: Check for forward

2004-07-13 Thread Bill Siggelkow
Create a custom RequestProcessor that extends the Struts RequestProcessor. In the custom class override the processForwardConfig method to do whatever you want. Emmanouil Batsis wrote: Bill Siggelkow wrote: You can use container-managed security to restrict access to URLs -- IIRC direct

Re: Initialization stuff

2004-07-13 Thread Bill Siggelkow
Martin, I would not override the ActionServlet -- the plug-in approach is much better and not hard at all. Here is a simple plug in and the Martin I. Levi wrote: Is this a better solution than mine? On Tue, 2004-07-13 at 14:06, Paul McCulloch wrote: You can do this by creating a class which impl

Re: validation wierdness possibly related to multiple struts config files

2004-07-13 Thread Bill Siggelkow
Are you using Struts 1.2 or the nightly build? I had this issue the other day and I think I got around it by using the new element instead of -- simply change arg0 to arg in your validation.xml. Or you can try using the new position attribute: Bill Siggelkow Bryan Hunt wrote: I have the

Re: Javascript Validation staticJavascript - Best Practices

2004-07-14 Thread Bill Siggelkow
this file in the (as you alluded). ... Now you can safely set the 'staticJavascript="false"' on the html:javascript tag throughout your regular JSPs. Good Luck! Bill Siggelkow J. Fiala wrote: hi there, I've used the html:javascript tag to have the javascript code generated for

Re: MessageResources Question

2004-07-14 Thread Bill Siggelkow
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=76369 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Javascript Validation staticJavascript - Best Practices

2004-07-14 Thread Bill Siggelkow
I am not following you, here. I thought maybe you were thinking that the 'staticJavascript.jsp' page generated the tags around JS functions -- however, this is not the case AFAIK. I am using the nightly build. J. Fiala wrote: hi bill, the solution you've lined out works g

Re: final getter/setter methods in actionform and valueobject classes

2004-07-15 Thread Bill Siggelkow
See section of 8.4.3.3 of the Java Language Specification at http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html. There is nothing wrong with declaring them as final; it means that the methods cannot be overriden by subclasses. Viral_Thakkar wrote: Hi All, I was wondering if

Re: calling request.getInputStream() within Action

2004-07-15 Thread Bill Siggelkow
Robert, I found the following link that discusses this: http://archives.java.sun.com/cgi-bin/wa?A2=ind0106&L=jsp-interest&F=&S=&P=49196 It sounds like you are correct -- if request.getParameter() has been called you cannot get the input stream -- have you considered using a Servlet instead? Robe

Re: [OT] Best practice for background service

2004-07-15 Thread Bill Siggelkow
Jan, Bryan's recommendation of Spring and Quartz sounds good though I have not had a chance to work with these yet. If you want to "roll your own" I suggest you look at the java.util.Timer and java.util.TimerTask objects -- they work well for these type of services. See http://java.sun.com/j2se

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bill Siggelkow
I am using this DTD declaration in my validation.xml and validator-rules.xml files: "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> It lets me access

Re: The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Bill Siggelkow
Are you using the nightly build (or 1.2.1?) The taglib directive <%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %> works fine for me. Maybe you have an old jar or TLD lying around in your classpath or WEB-INF? Eliot Stock wrote: Hello. I'm trying to do what the Struts docs men

Re: The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Bill Siggelkow
Well, I have the TLDs in my WEB-INF/lib -- I haven't tried removing them to see what happens ... Eliot Stock wrote: Hello. I'm trying to do what the Struts docs mention here (scroll down to section 5.4.3.1): http://struts.apache.org/userGuide/configuration.html#dd_config_taglib which is, do away

Re:

2004-07-15 Thread Bill Siggelkow
Hmmm ... looks pretty darn hairy. You didn't show the JavaScript thats called by the onchange -- I would verify first that "getGroups" is being called. Andrew Close wrote: alrighty, i've got this half figured out. i can populate my dropdowns, but my form doesn't seem to be scrapping the value

Re: Select Validation Rules based on context?

2004-07-26 Thread Bill Siggelkow
If you are using Struts 1.1 you may be able to use the "requiredIf" rule -- if you are using Struts 1.2 you can use the more powerful and easier to use "validWhen" rule. Details can be found at http://struts.apache.org/userGuide/dev_validator.html. Christoph Kutzinski wrote: Hi, I like to know

  1   2   3   4   5   >