RE: Cannot Find Bean in Any Scope

2004-06-12 Thread CRANFORD, CHRIS
-- If you want to specify a new bean instance, use this: -- If the bean already exists ... I think this is right .. Chris -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, June 12, 2004 7:28 PM To: [EMAIL PROTECTED] Subject: Cannot Find Bean in Any S

RE: Cannot Find Bean in Any Scope

2004-06-13 Thread CRANFORD, CHRIS
Why aren't you using the struts taglib framework to do this since the bean is in the request scope, it makes it a lot easier and keeps your JSP code very clean. And to do what I suspect you may be trying to do with the "odd" variable, you could also use the JSTL core taglib like follows:

Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
I am working with Oracle 8i and JDBC and was curious how others have implemented paging through large record resultsets from a JSP application without making a SQL call from page to page to retreive the data and looping through records to place the cursor at the right offset in the resultset. What

RE: Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
June 14, 2004 6:21 AM To: Struts Users Mailing List Subject: AW: Caching data from resultset Take a look at the pager taglib. http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html regards Leon > -Ursprüngliche Nachricht- > Von: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Ges

RE: Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
aid, why don't you take a look at CachedRowSet? http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/CachedRowSet.html http://java.sun.com/developer/Books/JDBCTutorial/chapter5.html I believe this could be somewhat similar to what you are looking for. HTH, Freddy. -Mensaje origin

RE: Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
le.com/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html ocrs12.zip appears to be a library containing Oracles imlementation of CachedResultSet and there is a JDK 1.2 version. However, it appears that you need to be a member of the OTN. Dennis "CRANFORD, CHRIS" <[EMAIL P

RE: Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
alse); // Transform the DynaBeans to a list object rows = rowSet.getRows(); Dennis "CRANFORD, CHRIS" <[EMAIL PROTECTED]> 06/14/2004 11:47 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To 'Struts Users Mailing List&#

RE: Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
igned. -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 12:39 PM To: 'Struts Users Mailing List' Subject: RE: Caching data from resultset Not sure how much this is going to help because we're averaging about 15 seconds to transform

RE: Caching data from resultset

2004-06-14 Thread CRANFORD, CHRIS
Oracle do the work. My $ .02 -----Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 10:39 AM To: 'Struts Users Mailing List' Subject: RE: Caching data from resultset Not sure how much this is going to help because we're averaging abou

Query question

2004-06-14 Thread CRANFORD, CHRIS
Anyone here familiar with using CATSEARCH type oracle queries? If so, I am trying to do something like: SELECT COLNAME FROM MYTABLE WHERE CATSEARCH(MYFIELD,'motor',NULL) > 0 OR SHORT_DESCRIPTION LIKE '%motor%' The problem is I get an oracle error about functional invocation; howeve

images

2004-06-14 Thread CRANFORD, CHRIS
Is there anyway within struts or a known taglib to check if an image exists at the specific URL or relative URI and if not, permit a separate action to occur within the JSP??? ___ Chris Cranford Programmer/Developer SETECH Inc. & Companies 6302 F

RowSetDynaClass

2004-06-14 Thread CRANFORD, CHRIS
I am storing a RowSetDynaClass property in my java class and I have implemented a method on my class as follows: public Collection getRows() { return((Collection)rsdc.getRows()); } In my action, I store my custom class object reference as follows: request.setAttribute("results", myResultsObj)

RE: RowSetDynaClass

2004-06-14 Thread CRANFORD, CHRIS
rest by populating itself from the database, closing the resultset when finished and leaves the presentation part up to my JSP as above! Gotta love struts! Chris -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 12:35 AM To: '[EMAIL PROT

RE: RowSetDynaClass

2004-06-14 Thread CRANFORD, CHRIS
This seems like a pretty neat solution you have out here, could please explain this, as pagination stuff is kind of the most complicated things that I have to deal with and I see my self coding the same thing again and again over a period of time. I would really appreciate your time and effort. Than

RE: RowSetDynaClass

2004-06-14 Thread CRANFORD, CHRIS
e my self coding the same > thing again and again over a period of time. I would really appreciate > your time and effort. Thanks in adv. > rajat > > -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 15, 2004 11:17 AM > To:

RE: RowSetDynaClass

2004-06-15 Thread CRANFORD, CHRIS
tion object back to the display tag. Maybe it internally stores the metadata information in a Map, or is it something wrong with my understanding. Do let me know if you have had any such issues before? Regards rajat -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent:

RE: RowSetDynaClass

2004-06-15 Thread CRANFORD, CHRIS
some way to make the SQL generic for all databases? (or is it not feasible). This seems to be specific for oracle? Do correct me If I am wrong. rajat -Original Message----- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 11:44 AM To: 'Struts Users

RE: RowSetDynaClass

2004-06-15 Thread CRANFORD, CHRIS
y builder, I wouldn't know the name of the record (column name) and hence I used the dynaclass. So if don't know the name of the column how do I go about getting the value (property) from the bean. Any clue? rajat -----Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]

RE: RowSetDynaClass

2004-06-15 Thread CRANFORD, CHRIS
] Sent: Tuesday, June 15, 2004 8:34 AM To: Struts Users Mailing List Subject: RE: RowSetDynaClass I'm curious. When I proposed the use of RowSetDynaClass yesterday, you replied that it wasn't fast enough. What changed? Dennis "CRANFORD, CHRIS" <[EMAIL PROTECTED]&

Rendering Images

2004-06-15 Thread CRANFORD, CHRIS
I'm curious if anyone has used or knows of an open-source image rendering servlet that permits rendering a "no image found" image file if the referenced image to be rendered does not exist on disk. Thanks ___ Chris Cranford Programmer/Developer

RE: Rendering Images

2004-06-15 Thread CRANFORD, CHRIS
e had done something similar. We created a static image file on disk and return that when a real one is not available. I think we used a struts condition if tag testing if a real one exists otherwise use the URL to not found image. -Original Message----- From: CRANFORD, CHRIS [mailto:[EMAIL PROTEC

RE: [OT] RE: Rendering Images

2004-06-15 Thread CRANFORD, CHRIS
ing List Subject: [OT] RE: Rendering Images > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > That is what I'd like to do. Have an image which is > rendered in the case > when the defined image cannot be loaded. the problem I have > is that our > database record says th

Resultsets and multi-check forms

2004-06-16 Thread CRANFORD, CHRIS
To broaden the prior discussion on resultset caching, I'd like to also ping the group on the concept of being able to have this "resultset" of data and paging through it but extendeding it to where a checkbox exists for each viewable record. I need to be able to pre-select values from a database

RE: Rendering Images

2004-06-16 Thread CRANFORD, CHRIS
ht get rid of you having to handle file > >type conditions). > >If Response Code is bad, get the no image file data and shove that > >into the response instead Return null from execute method. > > > >I am sure you can gather upsides and downsides to the proxy-like >

RE: The Same Action With and Without a Form

2004-06-16 Thread CRANFORD, CHRIS
Define your form in struts-config.xml like: .. Other properties here Then define your action mapping to use this formbean. When your form posts, it will assume the default values for sort/order if they not present in the request. If they're present in the HttpRequest object, then the

RE: Different form tags on same jsp

2004-06-22 Thread CRANFORD, CHRIS
Can someone illustrate an example of this? -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 2:51 PM To: Struts Users Mailing List Subject: RE: Different form tags on same jsp You've got a tag nesting error, to be sure. This is like doing

LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
Is there anyway to have a property in my ActionForm class be defined as follows: private LabelValueBean[] myItems; And be able to have struts automatically populate this collection when the form is submitted? If so, how do I go about storing those values in the form so they're seen and populated

RE: LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
To: Struts Users Mailing List Subject: Re: LabelValueBeans No, look at the source for the class and you'll see why. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "CRANFORD, CHRIS" <[EM

RE: LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 23, 2004

RE: LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
Found my problem. I didn't have a getter method: public LabelValueBean getManufacturers(int index) { } Thanks Chris -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:05 PM To: 'Struts Users Mailing List&#x

Arraylists/Collections

2004-06-24 Thread CRANFORD, CHRIS
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/Developer SETECH Inc. & Companies 6302 Fairvie

RE: Struts and PL/SQL

2004-06-29 Thread CRANFORD, CHRIS
I would be interested in seeing what one of these generated Java classes look like internally? Care to post an example? Chris -Original Message- From: Grassi Fabio [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 5:31 AM To: Lucas Gonzalez; Struts Users Mailing List Subject: R: St

PDF & Email

2004-09-02 Thread CRANFORD, CHRIS
I need to generate an email along with a PDF within a java struts action and send that email with the PDF attachment using java mail. Can anyone recommend a great PDF package that I can do this and render the PDF as an email attachment in realtime?

RE: PDF & Email

2004-09-02 Thread CRANFORD, CHRIS
List Subject: Re: PDF & Email Hi Chris I used iText (http://www.lowagie.com/iText/) in the past to generate the PDF and then JavaMail API to send it as an attachment. Works great.. Regards Henrik - Original Message - From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> T

RE: PDF & Email

2004-09-02 Thread CRANFORD, CHRIS
current location, sorry. > > > > No one says, you should use JavaMail as is. > > The mail library referred to by Matthias seems to be great...and as > > far as I can see it uses the Java Mail API alsobut greatly > > simplifies the act of doing E-mails...The Java Mail

JSTL and Tiles

2004-09-29 Thread CRANFORD, CHRIS
I have a JSP which uses JSTL to define a variable. This same JSP uses tiles:insert to include a page segment that also needs to be able to have visibility to its parent JSTL variable. How can I pass that variable to the inserted tiles page and have it update the variables value so that the remain

Format Date Question

2004-10-01 Thread CRANFORD, CHRIS
I am using the fmt:formateDate taglib with a pattern in order to present dates in a specified format. Ideally we'd like to output our dates as such 02-APR-2004 instead of 02-Apr-2004. Is there any pattern or way I could force format date to output the date in uppercase? _

RE: Format Date Question

2004-10-01 Thread CRANFORD, CHRIS
lto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 3:16 PM To: Struts Users Mailing List Subject: RE: Format Date Question In JSP2.0 you could use JSTL fn:toUpperCase() after you format the date. robert > -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Sent:

Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
How would I go about implementing a wrapper around my JSP servlet engine that would strip blank lines from the JSP stream when it sends the content to the browser? We're using struts and some the el tags with heavy iteration and loops on large data sets and what we're seeing is that the output can

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
ut an OutOfMemory error and also be able to use tiles? -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 12:26 PM To: '[EMAIL PROTECTED]' Subject: Blank Line Filter How would I go about implementing a wrapper around my JSP servlet en

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I manually removed just the blank lines themselves from the output ... No trimming of the leading or trailing spaces and a saved output from 1 report went from 2.2mb down to 492kb in size. That's a 75% savings.. I think that proves the need to be able to strip those darn things from the output to

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
: Blank Line Filter I think your looking for a data compression filter. http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=1 robert > -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 26, 2004 12:26 PM > To: '

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
false 3 Mark On 26 Oct 2004, at 19:38, CRANFORD, CHRIS wrote: > Robert - > > One thing I am noticing is that our action forwards to a jsp with the > following content: > > > key="reports.view.page.title"/> > ke

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
esday, October 26, 2004 1:19 PM To: Struts Users Mailing List Subject: RE: Blank Line Filter I think your looking for a data compression filter. http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=1 robert > -Original Message- > From: CRANFORD, CHRIS [mailto:[EMAI

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
rt Taylor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 26, 2004 1:19 PM > To: Struts Users Mailing List > Subject: RE: Blank Line Filter > > > I think your looking for a data compression filter. > > http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?pa

RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I'm sorry, please disregard this error. I think this is due to some corrupt data for the particular records that are in the larger report. My apologies. Thanks Chris -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 2:40 PM To: &#

WebApp Startup

2004-10-29 Thread CRANFORD, CHRIS
I want to have a particular XML file read from my struts application at startup and be cached so that it does not have to be read from disk each time my menu permissions adapter needs to determine access information. How would I go about coding something like this? ___

RE: WebApp Startup

2004-10-29 Thread CRANFORD, CHRIS
Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, October 29, 2004 1:47 pm, CRANFORD, CHRIS said: > I want to have a particular XML file read from my struts application > at startup and be cached so that it does not have to be read from d

Taglib vs. Action To Populate LOVs.

2005-02-10 Thread CRANFORD, CHRIS
I have a form which needs to display several dropdown combo boxes, one in particular is to be populated with values as follows: Today Yesterday This Week Last Week This Month Last Month Last 3 Months This Year Last Year series of Month/Day/Year values All I wanted to ask oth

RE: Taglib vs. Action To Populate LOVs.

2005-02-10 Thread CRANFORD, CHRIS
. -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Thursday, February 10, 2005 6:04 PM To: 'user@struts.apache.org' Subject: Taglib vs. Action To Populate LOVs. I have a form which needs to display several dropdown combo boxes, one in particular is to be popu

SQL

2005-02-16 Thread CRANFORD, CHRIS
This may be slightly off-topic but I'm sure others may have ran into this issue. If I have created a CallableStatement object using a SQL string, is there anyway to retreive that SQL string from the CallableStatement object ? ___ Chris Cranfor

Queries and Paging

2005-02-28 Thread CRANFORD, CHRIS
How have others implemented database queries and paging techniques in your struts applications? I'd like to see how others have implemented such functionality to see if I can improve upon our current framework. ___ Chris Cranford Programmer/De

RE: Queries and Paging

2005-02-28 Thread CRANFORD, CHRIS
ruary 28, 2005 11:05 AM To: Struts Users Mailing List Subject: Re: Queries and Paging If you are looking for high-performance, use a stored procedure. There are other techniques, but I'd bet lunch that none will come close in terms of performance. Larry On Mon, 28 Feb 2005 09:54:04 -0600

RE: Queries and Paging

2005-02-28 Thread CRANFORD, CHRIS
Users Mailing List Subject: Re: Queries and Paging Check out https://workeffort.dev.java.net It uses struts along with the datagrid tag libriary ( http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html) for pagination from the database. - Original Message - From: "CRANF

RE: JSTL c:if question

2005-03-01 Thread CRANFORD, CHRIS
David, In order to specify the scope, you preceed your variable with the scope type. Therefore for a request-scope variable, the variable would be : "requestScope.variable". There are several scope types: pageScope requestScope sessionScope applicationScope Additionally, when you have

RE: Is there a way to auto-trim String properties in DynaForms?

2005-03-03 Thread CRANFORD, CHRIS
I did this recently. I simply wrote a base action class which extends the struts Action class. Here's the code snippet: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,

RE: Is there a way to auto-trim String properties in DynaForms?

2005-03-03 Thread CRANFORD, CHRIS
I have to say this is a much better approach than my implementation. Good post. Chris -Original Message- From: Antony Joseph [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 1:30 PM To: Struts Users Mailing List Subject: Re: Is there a way to auto-trim String properties in DynaForm

Arrays/PlSql Tables

2005-03-09 Thread CRANFORD, CHRIS
Has anyone ever successfully returned PL/SQL or Array tables from a JDBC call to a store procedure in Oracle? If so, an example would be helpful. Right now I'm returning ref cursors and thought in some cases it might be more efficient to return a populated pl/sql table of data ... __

Strange Exception Behavior

2005-03-09 Thread CRANFORD, CHRIS
Has anyone noticed in your struts application that when you call an oracle stored procedure and register an output parameter of type OracleTypes.CURSOR and that function call fails for any reason, any values you may have set in the oracle session will be lost? In our application we typically ca

Advanced Search Form Technique

2005-02-02 Thread CRANFORD, CHRIS
I wanted to ping the group to get some advice on what others would think is the best way to handle doing a search form like as follows: Item Number: [comboboxA1] [comboboxB2] [textbox1] [comboboxC3] [comboboxA4] [comboboxB5] [textbox2] [comboboxC6] [comboboxA7] [comboboxB

JSTL & HTML Options

2005-02-03 Thread CRANFORD, CHRIS
I have defined a test class with constants as follows: public class Constants { public final static String MY_CONSTANT = "OK"; } What I want to do is in my html:option tag, I want to set the value associated with that tag to the constant MY_CONSTANT. How would one do this? -=cc=- ---

RE: JSTL & HTML Options

2005-02-03 Thread CRANFORD, CHRIS
So you're not able to reference static public final properties in the same fashion as scriplets? <%=Constants.MY_CONSTANT%> -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 11:28 AM To: 'Struts Users Mailing List' Subject: RE: JSTL &

Struts2 + Spring/Hibernate

2009-11-12 Thread CRANFORD, CHRIS
I am in the process of implementing Struts2 along with integrated support with Spring and Hibernate. While I have found various examples on the web, I tend to find they vary. My application will primarily focus about 75% of the time on data queries and displaying this data to end users while a s

RE: Struts2 + Spring/Hibernate

2009-11-13 Thread CRANFORD, CHRIS
: Fri 11/13/2009 3:42 AM To: user@struts.apache.org Subject: Re: Struts2 + Spring/Hibernate Seems fine with me. CRANFORD, CHRIS wrote: > > >class="com.company.app.struts2.actions.PersonAction"> > > > I don't see any advantage on creating Actions

Tiles with Struts2 & Tomcat

2009-11-16 Thread CRANFORD, CHRIS
Whenever Tomcat starts up it appears that the validation of the Tiles2 XML document is trying to be verified against the DTDs. The 2.1 DTD is in the tiles JAR file. I have tried to specify the path locally in the XML DOCTYPE tag, but it continues to want to point to an invalid location based off

RE: Tiles with Struts2 & Tomcat

2009-11-16 Thread CRANFORD, CHRIS
ject: Re: Tiles with Struts2 & Tomcat > > 2009/11/16 CRANFORD, CHRIS : > > > > Whenever Tomcat starts up it appears that the validation of the Tiles2 > > XML document is trying to be verified against the DTDs.  The 2.1 DTD is > > in the tiles JAR file.  I have

RE: Tiles with Struts2 & Tomcat

2009-11-16 Thread CRANFORD, CHRIS
Done, sorry. > -Original Message- > From: Antonio Petrelli [mailto:antonio.petre...@gmail.com] > Sent: Monday, November 16, 2009 9:16 AM > To: Struts Users Mailing List > Subject: Re: Tiles with Struts2 & Tomcat > > 2009/11/16 Antonio Petrelli : >

Lazy Initialization Error

2009-11-18 Thread CRANFORD, CHRIS
I am trying to understand why my web application throws a LazyInitializationException when trying to lazily initialize a collection in an entity object. >From what I have read, I needed to setup a filter for Hibernate in my web.xml and since I am using JPA the filter was defined as follows: hi

Setting Session setMaxInactiveInterval

2009-11-19 Thread CRANFORD, CHRIS
What is the proper way in Struts2 to dynamically set a particular application's session timeout value (HttpSession setMaxInactiveInterval) during the login process so that the session properly expires? Is this only possible by creating an HttpSessionListener and putting it in web.xml? public c

s:select escape

2009-12-10 Thread CRANFORD, CHRIS
How can I use the tag in order to display a Map pair without the displayed value being escaped? I am needing to indent portions of the dropdown list like a parent/child and it appears the default behavior is to escape my ampersand. I can use an and combination to create the dropdown but loo

focusElement in s:form

2009-12-28 Thread CRANFORD, CHRIS
I have tried all combinations of values in the focusElement tag for s:form yet I cannot get the textfield called username to be focused when the JSP is rendered with my login web page. I have tried it both with just the name of the textfield (userName) along with using the ID of the element (logi

RE: focusElement in s:form

2009-12-28 Thread CRANFORD, CHRIS
lto:d...@newfield.org] Sent: Monday, December 28, 2009 4:10 PM To: Struts Users Mailing List Subject: Re: focusElement in s:form CRANFORD, CHRIS wrote: > Is there anything special I could be missing here to get FF to focus on > the field when the page is rendered? There's no magic. The o

RE: focusElement in s:form

2009-12-28 Thread CRANFORD, CHRIS
ndered, correct? -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Monday, December 28, 2009 4:38 PM To: Struts Users Mailing List Subject: Re: focusElement in s:form CRANFORD, CHRIS wrote: > I have removed all javascript from the JSP page and installed Firebug. &

RE: focusElement in s:form

2009-12-29 Thread CRANFORD, CHRIS
I do have in my struts.xml file the following defined: Does this affect this? -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Monday, December 28, 2009 4:56 PM To: Struts Users Mailing List Subject: Re: focusElement in s:form CRANFORD, CHRIS wrote: >

RE: focusElement in s:form

2009-12-29 Thread CRANFORD, CHRIS
this is part of the standard theme and sometimes the labels for my fields have to be positioned in certain ways, not sure I want to use this particular theme, ugh. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Tuesday, December 29, 2009 8:15 AM To

Action Approach

2010-01-07 Thread CRANFORD, CHRIS
All - I am working on an action that takes a set of input and forwards the user to a web page that contains a form with a layout as follows: Active Primary Catalog1[ ][ ] Catalog2[ ][ ] Catalog3[ ][ ] In order to to capture the changes to the checkbox v

Upgrade 2.1.6 to 2.1.8.1 - Action Results in 404

2010-01-15 Thread CRANFORD, CHRIS
I was using Struts 2.1.6 along with XWork2 2.1.2. After finding a bug with XWork2, it was recommended that this package be upgraded. As a result, XWork2's later release depends on 2.1.8.1 of Struts2 and thus I had to upgrade all my jars. Now web application no longer works. When I navigate to

RE: Upgrade 2.1.6 to 2.1.8.1 - Action Results in 404

2010-01-15 Thread CRANFORD, CHRIS
ction extension and no extension. -Wes On Fri, Jan 15, 2010 at 12:51 PM, CRANFORD, CHRIS wrote: > > I was using Struts 2.1.6 along with XWork2 2.1.2.  After finding a bug > with XWork2, it was recommended that this package be upgraded.  As a > result, XWork2's later releas

Chain Getting Original URI

2010-01-26 Thread CRANFORD, CHRIS
Our Struts2 application has java.lang.Exception mapped to a global result called 'error'. Our 'error' global result is setup as a CHAIN type to send the user to our ExceptionHandlerAction. This action is designed to capture the exception, log it, email it to an administration mailbox and then fo

RE: Chain Getting Original URI

2010-01-27 Thread CRANFORD, CHRIS
using Log4J you may find useful to attach more than one appender to the log category (one that logs it to some file, and other that emails it, see the SMTPAppender), then you could avoid the chained action execution. 2010/1/26 CRANFORD, CHRIS : > > Our Struts2 application has java.lang.Excep

HTTP/HTTPS Switch Options

2010-02-12 Thread CRANFORD, CHRIS
In our prior Struts 1.x release of our web portal, all connections were redirected through HTTPS. Unfortunately, there was a fair amount of information on the portal which could have easily been served back to the browser via HTTP rather than using SSL to avoid unnecessary overhead but at the t

s:select and indents

2010-02-12 Thread CRANFORD, CHRIS
Is it possible to use the s:select tag in order to render a list of values by allowing spaces to be used to indent the options in a tree-like hierarchy or is there another preferenced way of doing this? I found in the select.ftl template where I could change "${itemValue?html}" to "${itemValue)" a

i18n database backed

2010-02-12 Thread CRANFORD, CHRIS
Anyone have any suggested ways to support i18n internationalization backed by a database table rather than property files? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@s

RE: i18n database backed

2010-02-15 Thread CRANFORD, CHRIS
Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Monday, February 15, 2010 12:58 AM To: Struts Users Mailing List Subject: Re: i18n database backed 2010/2/12 CRANFORD, CHRIS : > Anyone have any suggested ways to support i18n internationalization > backed by a da

RE: i18n database backed

2010-02-15 Thread CRANFORD, CHRIS
k -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Monday, February 15, 2010 8:38 AM To: Struts Users Mailing List Subject: Re: i18n database backed W dniu 15 lutego 2010 15:28 użytkownik CRANFORD, CHRIS napisał: > Yes they are.  In fact, all

Interceptor

2010-02-19 Thread CRANFORD, CHRIS
Is it possible to set a value in the request or valuestack from an interceptor that contains the total time it took for the action to be invoked and executed? I have a requirement to show this on the JSP page and didn't know if I could do this within the Interceptor or if I have to do this in my b

RE: Interceptor

2010-02-19 Thread CRANFORD, CHRIS
n the value stack. Didn't test it but should work. Cimballi On Fri, Feb 19, 2010 at 11:10 AM, CRANFORD, CHRIS wrote: > Is it possible to set a value in the request or valuestack from an > interceptor that contains the total time it took for the action to be > invoked and executed?  I

RE: Interceptor

2010-02-19 Thread CRANFORD, CHRIS
my last post. Your result is being processed before the lines that follow the action invocation. Insert a PreResultListener and it can do the job of updating. (BTW, your method is called interceptor() but it should be Intercept() - I'm guessing that's probably a typo.) John On Fri, Feb

RE: Interceptor

2010-02-19 Thread CRANFORD, CHRIS
Have to use ac.getValueStack().set(key,value) instead. This fixed the issue. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Friday, February 19, 2010 11:11 AM To: Struts Users Mailing List Subject: RE: Interceptor Correct it was a typo. I have

DisplayTag and Internationalization Lookups

2010-02-22 Thread CRANFORD, CHRIS
I am using the DisplayTag library with Struts2. In the displaytag.properties file, I had to specify a property as follows: Locale.provider=com.setech.displaytag.I18nWebworkAdapter This class contains the following method: ublic String getResource(String resourceKey, String defaultValue, Tag tag

RE: DisplayTag and Internationalization Lookups

2010-02-22 Thread CRANFORD, CHRIS
Actually it isn't that. We actually manage our internationalization in applicationMessage_en and our build script performs a copy of this file to applicationMessages. This should prevent what you're referring to. Lets say our table column key is 'page.mytable.header.ponumber'. This key is define

Format Currency

2010-02-23 Thread CRANFORD, CHRIS
I have added a format to my messages resource bundle as follows: format.currency={0,number,currency} Then I use this in my JSP

Displaytag

2010-02-23 Thread CRANFORD, CHRIS
Anyone had any issues with displaytag giving you empty export pages? It works fine within the Struts2 web page but for whatever reason, I get blank CSV and Excel outputs. - To unsubscribe, e-mail: user-unsubscr...@struts.apach

RE: s:if inside s:url

2010-02-25 Thread CRANFORD, CHRIS
o I'm at a loss. > -Original Message- > From: Dale Newfield [mailto:d...@newfield.org] > Sent: Thursday, February 25, 2010 11:35 AM > To: Struts Users Mailing List > Subject: Re: s:if inside s:url > > CRANFORD, CHRIS wrote: > >

Struts-Menu & Struts2

2010-03-05 Thread CRANFORD, CHRIS
Besides specifying the bundle attribute on the menu:useDisplayer tag, is there any other way to translate the text from menu-config.xml with struts2? If I specify the bundle as "applicationMessages", it works but always translates to English rather than the other languages such as german. How can

RE: Struts-Menu & Struts2

2010-03-05 Thread CRANFORD, CHRIS
Looks like I have to specify two attributes on the tag: bundle="applicationMessages" locale="WW_TRANS_I18N_LOCALE" By doing this allows struts-menu to work with the Struts2 internationalization support. Chris > -Original Message- > From: CRANFORD,

Currency Formatting

2010-03-09 Thread CRANFORD, CHRIS
I had defined in my applicationMessages.properties a currency string format as follows: format.currency={0,number,currency} When I view things in our default locale (English), this displays our currency values like "53.68"; however when I view them in German I see "53,68 ?". Why does it show th

RE: Currency Formatting

2010-03-09 Thread CRANFORD, CHRIS
> > If I had to make a guess, I'd say the font you're using doesn't > support the Euro symbol. But, that's just a guess. > (*Chris*) > > On Tuesday, March 9, 2010, CRANFORD, CHRIS > wrote: > > > > I had defined in my applicationMessages.pr

RE: Currency Formatting

2010-03-09 Thread CRANFORD, CHRIS
t: Re: Currency Formatting > > If I had to make a guess, I'd say the font you're using doesn't > support the Euro symbol. But, that's just a guess. > (*Chris*) > > On Tuesday, March 9, 2010, CRANFORD, CHRIS > wrote: > > > > I had defined

Validate Dates - Other Locales

2010-03-09 Thread CRANFORD, CHRIS
When I am logged in as a European user with de_DE as my locale, dates should be submitted in forms as dd.MM. however, my Struts2 action returns me to the INPUT jsp page and does not perform the "search" action that it is suppose to. >From what I have read, does Struts2 standard date validation

  1   2   3   >