Error creating form bean

2003-12-01 Thread Sasha Borodin
that take up 80% of the time :-( Please help! Thank you, -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error creating form bean

2003-12-01 Thread Sasha Borodin
:-( Please help! Thank you, -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error creating form bean

2003-12-01 Thread Sasha Borodin
: Just to be explicit, you have a file in tomcat as: WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ? Regards, David -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 7:22 PM To: Struts Users Mailing List Subject: Re

Re: Error creating form bean

2003-12-01 Thread Sasha Borodin
looking at something for 15 hours... -Sasha On 12/1/03 6:38 PM, Sasha Borodin [EMAIL PROTECTED] wrote: Just to be explicit, you have a file in tomcat as: WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ? Yep. WEB-INF/classes/com/ponyprinting/web/manager/forms

Types supported by DynaActionForm (or DynaValidatorForm)

2003-11-24 Thread Sasha Borodin
I can just say (Date) dynaForm.get('dateField') :-) Thanks! -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Dallas struts user groups?

2003-11-11 Thread Sasha Borodin
Are there any struts groups in the area? Or at least java web development groups that anyone knows of, or is a part of? Thanks, -Sasha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: more than one condition using logic tags...

2003-10-29 Thread Sasha Borodin
Or you could use the JSTL conditional tag: c:if test=${condition1 AND condition2 AND condition3} your html /c:if -Sasha On 10/29/03 09:43, Jeff Kyser [EMAIL PROTECTED] wrote: sure - just nest them. On Wednesday, October 29, 2003, at 09:38 AM, [EMAIL PROTECTED] wrote: Hello, I

Re: far reaching db question

2003-10-24 Thread Sasha Borodin
You could use a PreparedStatement, which automatically escapes single quotes, I believe: String sqlStmt = INSERT INTO table1 (col1) VALUES (?); pstmt = con.prepareStatement(sqlStmt); pstmt.setString(1, someStringWhichMightHaveQuotes);

OT - book on Java patterns

2003-10-10 Thread Sasha Borodin
All this talk lately of various official patterns has my brain hurting from the Unknown again. Can anyone recommend a good book on *patterns* - business delegate, visitor, dao, etc. etc. etc. Thanks, -Sasha - To unsubscribe,

Keeping Actions clean - separating actions from business model from persistence

2003-10-10 Thread Sasha Borodin
Ted, Matt, Joe, and all the other helpful folks that chimed in earlier on persistence mechanisms: In trying to keep with best practices, I've managed to remove all model related code (business logic, and persistence) out of the Actions' execute() method. Now I'd like to take it one step further

Re: Keeping Actions clean - separating actions from business model from persistence

2003-10-10 Thread Sasha Borodin
ActionForm, then get a dao instance from a factory, and pass it the business class? Or is there another pattern to this? Thanks. Matt -Sasha - Original Message - From: Sasha Borodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 10, 2003 6:44

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Sasha Borodin
I think you may be doing two things wrong: 1. j_security_check is a special URL. If you have a security realm defined in your web application, and authentication method specified as FORM, then the container will automatically forward any requests for protected resources to a configurable login

Re: Keeping Actions clean - separating actions from business model from persistence

2003-10-10 Thread Sasha Borodin
What I'm trying to grasp is where it it best for the business object --- dao interaction to take place. OK, let's make an example, cause I'm having trouble thinking abstractly tonight... An online store customer selects several products, clicks check out, which calls a CheckOutAction. From

Page flow dependence on html:error(s)/

2003-10-07 Thread Sasha Borodin
A common scenario I've encountered is that some check made in an action's execute() method correlates to what needs to be displayed in the view. But how can I control page flow (i.e. this section of page gets displayed, this one doesn't) based on the accumulated ActionError's? Right now, I

EJB's vs. Hibernate vs. Torque vs. custom DTO's

2003-10-03 Thread Sasha Borodin
of complexity and appropriate use of EJBs and other object-relational bridging technologies. Who uses what, why, and where? :-) -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

OT - estimating man-hours for a development project

2003-10-02 Thread Sasha Borodin
To follow up my 'pricing structure' question of earlier this week... How do the pro's estimate the amount of time a particular project will take? I know you'll say 'experience'. But is there any kind of a rough formula? How much do you usually pad your estimate to take into account any

OT - how much to java web developers charge?

2003-09-29 Thread Sasha Borodin
I though this would be an appropriate group of people to ask: What is the industry-standard compensation structure/level for java web application development? Like if a company said they need a shopping cart e-store, and the developer has to design the database, beans, actions, jsp's, etc.? Do

Re: OT - how much to java web developers charge?

2003-09-29 Thread Sasha Borodin
-Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 8:24 AM To: Struts Users Mailing List Subject: OT - how much to java web developers charge? I though this would be an appropriate group of people to ask: What is the industry

Re: OT - how much to java web developers charge?

2003-09-29 Thread Sasha Borodin
rate for Java Developers is 45-55 hour. A few years ago, it was easy to get 75-100/hour. Times a changin'. HTH, Matt -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 8:24 AM To: Struts Users Mailing List Subject: OT - how

struts-faces

2003-09-16 Thread Sasha Borodin
Can someone tell me why I'd need a struts integration version of the JSF implementation? Why can't one just add the RI JAR files, TLD documents, config files and just starting using the tags? Thanks, -Sasha - To unsubscribe,

Re: struts-faces

2003-09-16 Thread Sasha Borodin
: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 16 Sep 2003 10:16:22 -0700 (PDT) To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: struts-faces On Tue, 16 Sep 2003, Sasha Borodin wrote: Date: Tue, 16 Sep 2003 11:30:40 -0500

Re: struts-faces

2003-09-16 Thread Sasha Borodin
in mind for you to look at, but I have compiled the most comprehensive listing of Java Server Faces resources on my website. http://www.jamesholmes.com/JavaServerFaces/ Hope that helps, -James -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: What's the best strategy to handle this kind of thread issues ?

2003-09-10 Thread Sasha Borodin
Consider this timeline as a possible solution: 1. Form is submitted, token is invalidated. 2. Form submitted again; error cause token is invalid; sit there and check lost and found for HttpServletResponse that original request will generate and leave there. 3. Request A is processed and

How to reset servlet in ActionForm

2003-09-02 Thread Sasha Borodin
I'm really at my wit's end on this, I can't believe no one's ran into this problem before... How does one reset the servlet transient variable of an ActionForm? It's null after serialization. And why does the programmer have to do this? -Sasha

Re: basic struts question...

2003-09-02 Thread Sasha Borodin
If your context root is /taglib, then you should specify the action mapping relative to this root - /jsp/submit. -Sasha From: Pady Srinivasan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Tue, 2 Sep 2003 15:34:54 -0400 To: [EMAIL PROTECTED] Subject: basic

Resetting ActionForm transient props

2003-08-29 Thread Sasha Borodin
From Struts release notes 1.1 b1: The ActionForm class is now truly serializable, because the two non-serializable instance variables (servlet and multipartRequestHandler) have been made transient. However, if you actually do serialize and deserialize such instances, it is your responsibility to

Re: Formatting form data inside the *view* (JSP's)

2003-08-28 Thread Sasha Borodin
: The Struts bean:write tag offers a format attribute (or formatKey if you want to use a resource file). But JSTL would be a better option if you can use it in your environment. Steve http://www.ninsky.com/struts/ -Original Message- From: Sasha Borodin [mailto:[EMAIL

Re: Accessing MessageResources

2003-08-28 Thread Sasha Borodin
Lars, Struts loads the property files you declared in struts-config into a class called PropertyMessageResources, then binds that object to the ServletContext; that's where bean:message tags get their data from. The functionality you're looking for (retrieving a collection of keys) is not part

ActionForm transient variables

2003-08-28 Thread Sasha Borodin
I have not been able to use a reserialized ActionForm (ex. after restarting a context). Most methods (reset, validate, etc.) were throwing NullPointerExceptions. I have traced/researched the problem down to transient variables that aren't reinitialized. From Struts release notes 1.1 b1: The

Re: Formatting form data inside the *view* (JSP's)

2003-08-28 Thread Sasha Borodin
to use all the jstl stuff to format values stored in your FormBean. Brandon Goodin -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 9:29 PM To: Struts Users Mailing List Subject: Re: Formatting form data inside the *view* (JSP's

Re: Formatting form data inside the *view* (JSP's)

2003-08-28 Thread Sasha Borodin
); form.setLocale(currLocale); ... } Jonathan -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 8:43 AM To: Struts Users Mailing List Subject: Formatting form data inside the *view* (JSP's) Thought I'd throw this out in the middle

Formatting form data inside the *view* (JSP's)

2003-08-27 Thread Sasha Borodin
12:30, Sasha Borodin [EMAIL PROTECTED] wrote: I would like to state a basic assumption I deduced in learning struts, then pose a question. Assumption: ActionForm property getters and setters should return and take Strings. My initial impulse was to try passing the actual data types

Re: keys of MessageResources

2003-08-27 Thread Sasha Borodin
There are no public methods that return a collection view of keys (I think this is what you want to get at). If you subclass PropertyMessageResources, you can write your own method to return the keys from the implementing HashMap. Then you'd need to write a new Factory for your

Re: keys of MessageResources

2003-08-27 Thread Sasha Borodin
) enum.nextElement(); System.out.println(key = + key); } Shane -Original Message- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 August 2003 9:23 a.m. To: Struts Users Mailing List Subject: Re: keys of MessageResources There are no public methods that return

Re: ActionForm null after context restart?

2003-08-25 Thread Sasha Borodin
at com.amfllc.web.forms.SearchPipelineActionForm.reset(Unknown Source) end log Please see below for further details. Thank you for any help. -Sasha On 8/22/03 17:54, Sasha Borodin [EMAIL PROTECTED] wrote: I've been beating my head against this for a couple of days now, if someone can help me out, that would

Formatting data for Struts form tags at the JSP layer - is thisright/possible?

2003-08-22 Thread Sasha Borodin
I would like to state a basic assumption I deduced in learning struts, then pose a question. Assumption: ActionForm property getters and setters should return and take Strings. My initial impulse was to try passing the actual data types (Dates, Numbers, etc.); however, the Struts mechanism

ActionForm null after context restart?

2003-08-22 Thread Sasha Borodin
I've been beating my head against this for a couple of days now, if someone can help me out, that would really make my weekend :-) I am having a problem with an ActionForm after restarting the context. Here's some details: 1. I have a jsp with struts form tags. 2. This form has an ActionForm

Re: Variable assigning?

2003-08-20 Thread Sasha Borodin
This is how I'd do it using JSTL: c:set var=prevName scope=request value=/ c:forEach var=person items=personlist c:if test=${person.name != prevName} c:out value=${person.name}/ /c:if c:set target=${prevName} value=${person.name}/ /c:forEach Hope this helps. -Sasha

Re: login request

2003-08-20 Thread Sasha Borodin
You can use a filter to intercept all requests to a particular URL pattern and check for your object in session. A filter is similar to a servlet in that it's a piece of code that gets passed the request and response objects and operates on them; but it's invocation is unique, because it's called

Re: Session expired

2003-08-19 Thread Sasha Borodin
log.info(Entering LoginFilter.doFilter().); HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; HttpSession session = httpRequest.getSession(false); if(session != null) { log.info(Sending to log

Re: PropertyMessageResources - have I outgrown it?

2003-08-17 Thread Sasha Borodin
PropertyMessageResources ;-) You would be much better off with some sort of object-to-relational mapping tool. I use Torque, but I have heard a lot of talk about Hibernate on this list. Good luck, Matt - Original Message - From: Sasha Borodin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

PropertyMessageResources - have I outgrown it?

2003-08-15 Thread Sasha Borodin
Howdy, I'd like to pose a design question to the web-developers using Struts, concerning the functionality and proper usage of MessageResources. This is a really cool out of the box feature - I love the ease with which one can maintain libraries of messages, and the seamless integration of these