RE: using SMTP server

2006-11-01 Thread David Friedman
Don't forget about the handful of ISP's that block outgoing port 25 (SMTP) unless it is directly to their own mail servers. I had one of two of those in recent years. Regards, David -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 200

RE: Paging

2006-10-30 Thread David Friedman
ject, i call an action that returns 20, then when i press next, i go again to the action and i load the next 20... Thanks, Juan -Mensaje original- De: David Friedman [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 30 de Octubre de 2006 02:28 p.m. Para: Struts Users Mailing List A

RE: Paging

2006-10-30 Thread David Friedman
Actually, DisplayTag does support partial sets. If you handle the loading of the data yourself you can tell displaytag it is a partial list (starting at 20 of 100 for example). You will probably just have to sort it yourself via your database call. And of course you'll need to pay attention to t

RE: DisplayTag Library

2006-10-27 Thread David Friedman
Take a look at this example where the displaytag table at the bottom of the page shows you just type it in there: http://demo.appfuse.org/appfuse/demos/users-edit.jsp In case you were wondering, I used the words "displaytag editable table" in a search engine to find the page (but yes, I had a head

RE: Struts 2.0 question tags, config

2006-10-17 Thread David Friedman
Can you even upload a Struts1 example application that works or is this related to Struts2 only? Regards, David -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 1:17 PM To: 'Struts Users Mailing List' Subject: RE: Struts 2.0 question tags, c

RE: Problem loading struts configuration in a shared web hosting

2006-10-17 Thread David Friedman
The error says "Caught exception while loading file struts.xml - [unknown location]" so have you triple checked there is a WEB-INF/struts.xml or WEB-INF/classes/struts.xml in your FuturePoint website? If the "catalogodepropiedades.com\Nilo" path refers back to your PC you should search your own co

RE: Why this does not work?

2006-10-16 Thread David Friedman
defined. How to workaround this situation? Can Struts to treat this? David Friedman escreveu: > Actually I see something else. You are trying to upload files using an > array of FormFiles named arquivo. However, your notation is treating them as > one item instead of indexed. Like so: > &

RE: Why this does not work?

2006-10-16 Thread David Friedman
Actually I see something else. You are trying to upload files using an array of FormFiles named arquivo. However, your notation is treating them as one item instead of indexed. Like so: private FormFile[] arquivo; So you see this code in your JSP: Is not the same as an indexed item or array

RE: Struts 1.0 redirect problem!

2006-10-05 Thread David Friedman
I do not understand what you had changed: You had listed a "success" mapping which uses the path "/GroupRulesManager/Global/returnToPrev.do" which matches your page error. You also listed a "back" mapping which goes to "GroupRulesManager/returnToPrev.do". Both of them perform redirects. So have

RE: [OT] Paging at the database level

2006-09-28 Thread David Friedman
Valuelist (http://valuelist.sourceforge.net) is one paging table tag library which has supported database side paging since April/06. There are some notes about it on their front page. Regards, David -Original Message- From: Thomas Joseph [mailto:[EMAIL PROTECTED] Sent: Friday, September

RE: Find out Struts version

2006-09-25 Thread David Friedman
Check the struts.jar and read META-INF/MANIFEST.MF. It will have information like this (from a 1.2.9 jar): Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: 1.3.1_04-b02 (Sun Microsystems Inc.) Extension-Name: Struts Framework Specification-Title: Struts Framework Specification-Vend

RE: Get real path of an action

2006-09-23 Thread David Friedman
I don't know why your retrieve URL takes two parameters but if you save a String from your Action into scope, you could use this: request.setAttribute("myURL", request.getContextPath()+ mapping.getPath() + ".do"); Then get insert it into your JSP with EL like: ${requestScope.myURL} Regards, Davi

RE: [Struts 2][Sitemesh] s:url in decorator file and html file

2006-09-21 Thread David Friedman
You keep emailing copies to the SiteMesh list as well as Struts. Does this mean when you temporarily remove SiteMesh decorating that you see the proper path and when SiteMesh is enabled you see the incorrect path? Regards, David -Original Message- From: Garner Shawn [mailto:[EMAIL PROTEC

RE: Question about warning when pre-loading a form

2006-09-21 Thread David Friedman
Forms are best loaded automatically in struts. Your code suggests you might be better off adding: name="AdminPrescriberForm" to your action mapping declaration for automatic creation of your ActionForm. It will should you time and (lines of) code. Regards, David -

RE: about pagination

2006-09-20 Thread David Friedman
While I prefer displaytag, there is also valuelist: http://valuelist.sourceforge.net Regards, David -Original Message- From: Lixin Chu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 2:26 AM To: Struts Users Mailing List Subject: Re: about pagination struts itself does not

RE: Websphere mapping problem

2006-09-18 Thread David Friedman
#x27;Struts Users Mailing List' Subject: RE: Websphere mapping problem Doesn't this: Map the start name to start.do? The path is simply turned over to struts to resolve "start" and so it should r

RE: Websphere mapping problem

2006-09-18 Thread David Friedman
Your error suggests your are using the wrong url. The error lists "/do/start" but your mapped your servlet to "*.do" so it expects the path "/start.do" What path are you trying to reach your webapp on for each platform? -David -Original Message- From: Hehl, Thomas [mailto:[EMAIL PROTECT

RE: Problems using LookUp Dispatch Action

2006-09-14 Thread David Friedman
If your class extends LookupDispatchAction, why isn't your own class named in the stacktrace below? It looks like it is invoking a regular LookupDispatchAction. Also, you can lookup code online to find the offending line (just copy it into an editor which has line number so you can check out line

RE: tag library

2006-09-13 Thread David Friedman
I see you are using the BETA 1.3.5 version. Since I haven't tried it (I'm on the stable 1.2.9 official current release) so I don't know it's quirks. However, that being said I see you are making a few key mistakes: 1. You are using a 1.3 release but specifying the wrong dtd. This might cause pr

RE: Adding another form fields to validator.xml problem

2006-09-13 Thread David Friedman
Are you by any chance using Tomcat? If so try clearing the "work" directory for that webapp in case the compiled object hasn't been updated when your webapp restarts. Regards, David -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 2:37 AM To: us

RE: tag library

2006-09-13 Thread David Friedman
Was the below error from setting your html:form action to "register.do" or to "/register" which is listed as your struts-config.xml action "path" settting? Regards, David -Original Message- From: David Fonseca Sánchez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:22 PM T

RE: [Struts 2] link not rending from iterator

2006-09-13 Thread David Friedman
Wouldn't you be better off doing something like this rather than mix an s:url inside an href tag? From: http://struts.apache.org/2.x/tagreference.html#a Regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: tag library

2006-09-13 Thread David Friedman
Did you try making the action "register.do" match an action in your mappings? Did your struts-config.xml list it as "register.do" or perhaps like "/register" ? Regards, David -Original Message- From: David Fonseca Sánchez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:57

RE: insertion problem view

2006-09-12 Thread David Friedman
Try struts tokens. -Original Message- From: Gomathi [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 12:33 AM To: Struts Users Mailing List Subject: insertion problem view hai, i am inserting new row into database using struts?Its perfectly inserted. Suppose i am right c

RE: tag library

2006-09-12 Thread David Friedman
David, struts-form.tld was deprecated before Struts v1.0 and the current version is 1.2.9. That suggests the documentation you are following is frightfully old (like 2001, 2002 old). If that is the case, keep in mind any references to perform() were replaced by execute() in actions. That was a

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread David Friedman
What, specifically, is stopping you from making the data a 2 dimensional array and using a c:foreach kind of JSP loop instead of trying a tiles definition. It would help to explain what this uniformity is that you need to replicate. Is it something you can lock down with a few site-wide styles?

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread David Friedman
Have you considered looking at a template engine such as Velocity or Freemarker? I'm sure it would have greater efficiency than reinvoking the servlet and filter chains 10k times. And yes, I will hold back my urge to ask why you are putting 10k items on any page in the first place. Regards, Davi

RE: URL /login.do;jsessionid=03D17FDFCC0FDD5A42EC9BB78C0AE935 was not found on this server

2006-09-11 Thread David Friedman
Dear anurag shinde, Your description suggests one of two things: 1. If you only have a java app server running (no web server like Apache taking the initial requests and forwarding them on) then your problem sounds like an incorrect or missing "*.do" servlet mapping in your 'live' context/WEB-INF

RE: URL /login.do;jsessionid=03D17FDFCC0FDD5A42EC9BB78C0AE935 was not found on this server

2006-09-10 Thread David Friedman
What is the 'third pary live server' product so we can try to help you. And this 3rd party server maps Java/Struts over to Tomcat how? Regards, David -Original Message- From: Anuraag Shinde [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 1:13 AM To: user@struts.apache.org Subj

RE: How do I get the original RequestURI?

2006-09-10 Thread David Friedman
I can't remember the last time I tried it but it sounds like mapping.getPath() might be more along the lines of what you ask. Why? Because the mapping is more likely to be updated for your second action, the OtherAction. Since I can't remember the output of that method, you might have to add the

RE: bean exception when using weblogic and NOT tomcat

2006-09-09 Thread David Friedman
The struts-blank.war is great and all but by default the 1.2.9 comments out the use of any form-beans so it wouldn't be able to match your scenario at all because your problem is right on the form bean creation. That is why I suggested the struts-examples.war in this case. Also, I'm talking about

RE: bean exception when using weblogic and NOT tomcat

2006-09-09 Thread David Friedman
And you've done EVERYTHING on the struts weblogic installation page? http://struts.apache.org/1.2.x/userGuide/installation-wls5.html It mentions classpath issues there as well. Regards, David - To unsubscribe, e-mail: [EMAIL PRO

RE: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread David Friedman
Not really. There are various messages on the internet about certain (usually older) versions of Weblogic's classloader having problems with .war and .ear deployments. I've also found notes suggesting someone had this kind of problem but had the code duplicated into two jars so there was an unres

RE: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread David Friedman
Also, how are your classes deployed? In a .jar file or in /WEB-INF/classes/code/LoginForm.class? Regards, David -Original Message- From: Tom Jerry [mailto:[EMAIL PROTECTED] Sent: Saturday, September 09, 2006 2:18 AM To: Struts Users Mailing List Subject: bean exception when using weblogi

RE: bean exception when using weblogic and NOT tomcat

2006-09-08 Thread David Friedman
Dumb question: Have you delete everything in your weblogic copy and brought over a copy from your working Tomcat version of it? That would ensure 100% that there are no odd files in the weblogic version of your webapp. Regards, David -Original Message- From: Tom Jerry [mailto:[EMAIL PROT

RE: Converting HTML content to PDF

2006-09-08 Thread David Friedman
Too bad you don't have $69 USD because http://www.easysw.com/htmldoc looks promising. Too bad iText doesn't have anything like that yet. Not unless you switch to assembling the pages in iText then use the PDF Write or HTML Write off that in the last minute. Regards, David -

RE: why an arbitrary html page can not be displayed in struts

2006-09-08 Thread David Friedman
Normally a person maps *.do as the extension for a Struts servlet so it will not interfere with the display of regular files. What are all of your mappings for the webapp with the "/struts_project" context path. Also, you list .html files in your example urls but your next line states a .htm (not

RE: [friday] Re: Geronimo ??

2006-09-08 Thread David Friedman
I started to wonder "why did David write that" when I realized, hey it is Friday. On a serious note, if you do not understand the statements made on the front page of each project then your grasp of Java may need some refreshing. For example, the front page of Tomcat lists "...is the servlet cont

RE: How to validate an ip address

2006-09-08 Thread David Friedman
> BTW, does anyone know a regular expression to validate an IP address? You could use a search engine... And look what comes up - A page with a few different IP matching regex(es) on the first page: http://www.regular-expressions.info/examples.html As for the other poster, you can use the regex

RE: RE: [HELP][S2] spring configuration of hibernate

2006-09-08 Thread David Friedman
he spring-hibernate3 examples at? Last I knew the props were just suppose to be prefixed with "hibernate." Thanks, Shawn -- Forwarded message -- From: "David Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Date: Thu,

RE: configuring tiles with struts 1.2.9

2006-09-07 Thread David Friedman
Since everything "looks" in order then you are missing something key in a log file. Do you have your regular Tomcat log entries for this webapp's startup as well a any error logs. Can you zero them out then start Tomcat and post them to us? Regards, David --

RE: Field check using DynaValidatorForm

2006-09-07 Thread David Friedman
>From the note about the MalFormURL Exception I would initially guess you started the header DOCTYPE in the file incorrectly. You gave a 6 line entry from your validation.xml file split like so: http://jakarta.apache.org/ commons/dtds/validator_1_0.dtd"> In a DOCTYPE you should NEVER break

RE: exception

2006-09-07 Thread David Friedman
Double check your struts-config.xml file to ensure there are no extra characters in the form name or anywhere else. Retype them if you have to. Have you tried running the examples just to make sure everything will work normally in your application server? Additionally, what is the name of the web

RE: exception

2006-09-07 Thread David Friedman
Since we're picking your code apart... In your struts-config.xml you shouldn't need to specify the controller as a TilesRequestProcessor if you have the plugIn specified. I recommend you comment the TilesRequestProcessor line out. See: http://struts.apache.org/1.2.x/userGuide/configuration.html A

RE: Several action in a jsp

2006-09-07 Thread David Friedman
Yes you can populate one form with data from another form. Assuming both forms already exist in some scope add the attribute name="someBeanName" and it will take the property from that bean. That allows you to have form1 use fields pulled from beanA, beanB, it's own form, and more. I've used it

RE: [HELP][S2] spring configuration of hibernate

2006-09-07 Thread David Friedman
I do things a little differently in my spring 2.0 + hibernate3.2.0.cr2 config (and it sure looks like you are using a spring 2.0 release candidate to get the destroy-method attribute). Just note that my someDAO name of class example.MyHibernateDAOImpl extends HibernateDAOSupport and implements exa

RE: Sharing variables between Tiles

2006-09-07 Thread David Friedman
I think I once did it but you have to put each variable inside each section. It make the config look very redundant. I probably got it from the Demoulas (spelling?) PDF. I think I used it once ages ago and no, I don't have the sample anymore. It was too cumbersome in my opinion. Regards, David

RE: exception

2006-09-07 Thread David Friedman
212 is in method createActionForm: obj = formBeanClass().newInstance(); So newInstance() isn't working. Can you show the declaration line of your code.LoginForm class? i.e. public class ... extends ActionForm ... ? Regards, David -Original Message- From: Tom Jerry [mailto:[EMAIL PROTE

RE: exception

2006-09-07 Thread David Friedman
Are you certain your code.LoginForm class extends org.apache.struts.action.ActionForm? That could asily explain the problem. Then again you could get an exact reason by naming the specific Struts 1.2.X version you are using (it doesn't appear to be 1.2.7). Then you could check the svn tag for c

RE: exception

2006-09-06 Thread David Friedman
What is the full stack trace in your application server logs? -Original Message- From: Tom Jerry [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 12:48 PM To: user@struts.apache.org Subject: exception Why do I get an "exception in creating bean" --

RE: Struts-Faces Version Compatible with Struts 1.1 and MyFaces

2006-09-06 Thread David Friedman
Colin, I remember trying to use MyFaces with Struts-Faces when I was first learning JSF. Unfortunately, it did not work. I had to use the Sun RI as mentioned in the early (Struts 1.1 Struts-Faces) README File but even then I didn't "feel" it: * Add the following JAR files from the JavaServer Fa

RE: Retrieve Data List

2006-09-06 Thread David Friedman
What session "limitations" are you encountering? Is this something that simply fixing the amount of time before a session timeout would fix since many containers support that feature? Would you be better served saving the data in application scope under some key and then having a scheduler, like Q

RE: What is action's parameter usage

2006-09-05 Thread David Friedman
Frank, I had the same question when I was learning Struts. I had to read a large amount of source code to figure it out. One day, for reasons I do not remember now, I read the struts-config_1_1.dtd and came across this little note: > parameter General-purpose configuration >

RE: What is action's parameter usage

2006-09-05 Thread David Friedman
Or to put it simply: The parameter field is for your individual use. It allows you to put information in the action config which you can retrieve in your action to use as you see fit. Two good examples are DispatchAction and ForwardAction. DispatchAction uses it to determine which method to invo

RE: displaytag/ struts layout tag?

2006-09-05 Thread David Friedman
Personally, I would suggest Displaytag because you could easily use it with Struts 2.0 when it comes out and not have to worry about how long it might take for Struts-Layout to update their code base. I suppose that would only matter if you are considering eventually upgrading to Struts 2.0 whenev

RE: Security for the Struts web application

2006-09-05 Thread David Friedman
You have many options: 1. The filter route like http://securityfilter.sourceforge.net. 2. As suggested override how the process works. In older versions of Struts you can do as suggested and override one of the process methods (I also recommend processRoles) while in some (not sure which) versio

RE: RE: [HELP][Struts 2] Problem integrating sitemesh

2006-09-02 Thread David Friedman
The FAQ has a brief note to do this only on Tomcat5 but doesn't explain why. Always check the FAQ, Wiki, forums, mailing lists, and search engines for anything that doesn't work out of the box that you think should. Here is the FAQ with that tiny note at the bottom: http://www.opensymphony.com/s

RE: [HELP][Struts 2] Problem integrating sitemesh

2006-09-02 Thread David Friedman
Can we safely assume your last xml chunk is for /WEB-INF/decorators.xml? Where is your /WEB-INF/sitemesh.xml? What does your /decorators/main.jsp look like? Have you tried changing your mapping from "*" to "/*" as the documentation suggests? And yes, I've used SiteMesh a few times and had no pr

RE: Mapping between a request parameter name and a Struts form property name

2006-09-01 Thread David Friedman
You jogged my memory and I have a solution from the Appendix of "Struts In Action." Version 1.1 and onward (possibly even in 1.0), struts ActionMappings have had two attributes: "prefix" and "suffix." The are from the ActionConfig class but carry over to the ActionMapping class used by the Struts-

RE: yet another struts eulogy?

2006-08-31 Thread David Friedman
One last note since Tapestry was brought up... Anyone notice something called "Cognition" (http://www.thelabllc.com/lab/Home.page) It looks like a Tapestry equivalent to AppFuse (https://appfuse.dev.java.net) but wait, appFuse can already build with Tapestry so I guess having the other framework

RE: yet another struts eulogy?

2006-08-31 Thread David Friedman
The article is a one year old pro-tapestry piece (August 2005) for their upcoming 4.0 version so of course it would try to beat down other popular frameworks for attention. Since it is so old we can hardly call it "yet another" plus, it is too old to consider changes in the Struts, WebWork and JS

RE: validator and DynaValidatorActionForm

2006-08-30 Thread David Friedman
Why are you making these fields so complex? You have Instead of the simple form: ? Why do you need to specify all of that redundant information like value and name when you have the property attribute? And why are you pulling values from the session scope instead of the request data that

RE: [JAVA]Convert two collections into a map

2006-08-28 Thread David Friedman
Now that would make a great commons-beanutils class. Regards, David -Original Message- From: temp temp [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 3:49 PM To: user@struts.apache.org Subject: [JAVA]Convert two collections into a map Are there any uitl classes or api which c

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-24 Thread David Friedman
First, is '/servlet' the name of your webapp? If so then this might just make sense. Why? The HttpServletRequest.getServletPath() object is described to: > Returns the part of this request's URL that calls the servlet. In a filter, that is the mapping '/*' which as you wrote resulted in '/servl

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-23 Thread David Friedman
Are you doing a "forward" or a "dispatch". One of them handles mappings differently because you are inside the application already and won't use the filters a second time. That is why the latest version of the servlet spec allows you to specify which one in your web.xml mappings. I'm heading o

RE: Problem with web.xml and Struts 1.3

2006-08-22 Thread David Friedman
Would you like to include your struts-config.xml and web.xml so we can try to help? -Original Message- From: Angel Navarro [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 6:14 AM To: user@struts.apache.org Subject: Problem with web.xml and Struts 1.3 Hi, I have a big problem wi

RE: Re: Forwards between webapps

2006-08-20 Thread David Friedman
If you need to share information between contexts, I believe Tomcat (if you use it) has a setting to make a context's data public. With that you could put shared items in an application scope and do JNDI lookups of the shared data. Regards, David -Original Message- From: Saeed, Rada [ma

RE: Struts URL Pattern

2006-08-19 Thread David Friedman
My bad, what was I thinking? LOL. Try this: servlet.getServletConfig().getServletContext().getAttribute(Globals.SERVLET_ KEY)); As in this example where I print out an error message: public class DavidAction extends Action { @Override public ActionForward execute(ActionMapping ma

RE: Struts URL Pattern

2006-08-19 Thread David Friedman
If you are in a time crunch for an answer, you could always load the resourceAsStream "/WEB-INF/web.xml" with a SAX parser, first findi your servlet name, and then iterate through the mappings to match the servlet name so you can obtain the mapping. Personally, I tried to discover the same thing

RE: Do Session Attributes get GC'ed After Session Times Out?

2006-08-19 Thread David Friedman
The HTTP Servlet spec takes care of that. You can even use listeners to notify you when objects are being removed. That way you can perform any cleanup you require. See: http://tomcat.apache.org/tomcat-5.5-doc/servletapi/index.html Specifically the HttpSessionBindingListener's description. Reg

RE: Struts Tag Libraries

2006-08-19 Thread David Friedman
You should read the javadocs on the taglib to read about the large number of features in the tags: http://struts.apache.org/1.x/apidocs/index.html As a small example, the many of the html: input tags a) check the content and change tags to prevent cross site scripting (see the "filter" attribu

RE: RE: Struts2

2006-08-17 Thread David Friedman
In your web.xml file, what are you servlet mappings and the URLs they are mapped to? Are you sure it is not /helloWorld.action that you need to reach over the web? WW (Struts2's core code) used to have the *.action convention instead of *.do for servlet mapping. Again, your web.xml file should h

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
iling List Subject: Re: I can't put 'maxlength' validator values in my .properties file? David Friedman wrote: > I think you need to have at least Struts v1.2.8 unless you manually upgraded > the Commons Validator jar up to version 1.2.0. If I understand correctly, > va

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts < 1.2.8) don't actually make use of the "bundle" attribute in your validator xml files. So, what version o

RE: Choices, choices...How does one choose a taglib for displaying tables?

2006-08-16 Thread David Friedman
Psst the DisplayTag download page is what you want: http://displaytag.sourceforge.net/11/download.html CLICKing through to it shows v1.1. SCROLL down and you can download v1.0 an v1.0-rc2. CLICK right below that and the links shows old versions 0.8.6 (I started with that ages ago) and 0.8.5

RE: Hi

2006-08-16 Thread David Friedman
What is wrong with the documentation information at: http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html#param Which shows you can override the url and parameters if you have problems by setting the url with pg:pager (so it would show "/Applcn name/getVendorInfo.do" and pg:param to set

RE: Need to do pagination but can't use DisplayTag

2006-08-15 Thread David Friedman
I've used displaytag 1.X in JSP 1.2. Did you subscribe to their mailing list for installation help? Have you also tried http://valuelist.sourceforge.net ? Regards, David -Original Message- From: pantichd [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 3:47 PM To: user@struts.apa

RE: Problem writting to the output stream within an action

2006-08-13 Thread David Friedman
Yes. Just return or return null instead of an ActionForward. Don't look for a mapping using mapping.findforward(null). As a side note, you have a lot of nested "try/catch" and "if" statements which a) can be difficult to read (I had trouble) and the nested try/catches can cause performance issue

RE: Splitting validation.xml

2006-08-10 Thread David Friedman
Kevin, A number of java application/web servers have issues with files outside of the web application directories. For example Tomcat has a policy file that often requires tweaking to open files in other places for reading. What is your application server? Perhaps someone here has experience w

[O/T] RE: Unlock Your Mind's Hidden Power, Today...

2006-08-07 Thread David Friedman
Isn't this the SECOND step in Human cloning? Wouldn't the FIRST step be growing a replacement body so who's advertised about that? Like we need the ability to copy our brains before our clone is ready. Duh! Now if both steps were ready I could clone myself and do twice the work in half the time

RE: pagination

2006-08-01 Thread David Friedman
Don't forget SourceForge's ValueList: http://valuelist.sourceforge.net/ -David -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 8:49 AM To: 'Struts Users Mailing List' Subject: RE: pagination Displaytag will do it http://displaytag.sourceforge.net/

RE: Uploading problem

2006-07-26 Thread David Friedman
1) Your path of "/var/../../temp/test123.jpg" suggests a UNIX style server. Using standard UNIX conventions, that would make the actual path used by your file be "/temp/test123.jpg". Sadly, on every UNIX/Solaris/Linux/etc. server I've ever worked on, the file system was named "/tmp", not "/temp".

RE: Struts 2 snapshot build work on JDK 1.4.2?

2006-07-24 Thread David Friedman
Why not mix both Action2 and JSF? See the JavaServer Faces interceptor related classes in Action2 APIdocs (to get you started) at: http://struts.apache.org/2.x/apidocs/org/apache/struts2/jsf/package-summary. html There is also some discussion at: http://www.mail-archive.com/dev@struts.apache.org/

RE: FlashScope: anyone has a better name?

2006-07-24 Thread David Friedman
ll as create them. Regards, David -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 3:49 AM To: Struts Users Mailing List Subject: Re: FlashScope: anyone has a better name? David Friedman ha scritto: > Why not call them custom scopes and link

RE: FlashScope: anyone has a better name?

2006-07-22 Thread David Friedman
Why not call them custom scopes and link it into to contexts where appropriate. That way you could name your scope and if it doesn't exist, create it. Then you could have generic methods to handle all sorts of scopes at once with generic methods like: addScope("request").setAttribute(name, objec

RE: errorStyleClass not working

2006-07-21 Thread David Friedman
r gets highlighted. What else can I try to make all the errors get highlighted. Not sure why the validate is returning one one error when there are 2 entries that are invalid? Thanks. >From: "David Friedman" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List&quo

RE: errorStyleClass not working

2006-07-20 Thread David Friedman
Is your problem server side or client side? If you problem is client side then you should read the struts javadocs: http://struts.apache.org/1.2.7/api/org/apache/struts/validator/ValidatorPlug In.html Or the User Guides: http://struts.apache.org/1.x/faqs/validator.html Both of them mention a pl

RE: errorStyleClass not working

2006-07-19 Thread David Friedman
e messages. I can see the message entered value is not valid. >From: "David Friedman" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" >To: "Struts Users Mailing List" >Subject: RE: err

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

2006-07-19 Thread David Friedman
some fixed values. They are picked up. Let me explain: The fixed values "firstName" and "ASC" are picked up without problem. But the "${searchFirstName}" where searchFirstName is the property of a text field is not picked up. --- David Friedman

RE: errorStyleClass not working

2006-07-19 Thread David Friedman
to validate the user entered values, here the 2nd one i.e name="hrs[1].adHrs" checking if user entered numeric value. I am getting the error msg back too. But only the errorStyleClass is not working. Thanks. >From: "David Friedman" <[EMAIL PROTECTED]> >Repl

RE: errorStyleClass not working

2006-07-19 Thread David Friedman
xcept for this nested page. .errormsg{ color: red; background: inherit; font-size: 11px; border: 1px solid red; padding: 3px; } Hoping to get an answer for this. Thanks. >From: "David Friedman" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" >To: &

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

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

RE: errorStyleClass not working

2006-07-19 Thread David Friedman
a) Have you checked your output to make sure the class is set in the html when an error occurs? b) What is the CSS you specify for that "errormsg" style definition? c) Have you embedded your style definition in the web page to ensure it is loaded properly? FireFox has a good plugin called "web d

RE: The content of element type "web-app" must match

2006-07-05 Thread David Friedman
Before I mention ant, were there any further error messages indicating the line, section, or attribute causing your web.xml parsing problem? Are you sure you are using the appropriate container? I.E. Your web.xml file states a 2.3 servlet config so are you sure the container you are using support

RE: The content of element type "web-app" must match

2006-07-05 Thread David Friedman
Forget the maven war package idea. I must have been mistaken because it didn't work. (I had a moment to try before I leave) Regards, David -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 9:39 AM To: Struts Users Mailing List Subjec

RE: The content of element type "web-app" must match

2006-07-05 Thread David Friedman
I already tried that. My Eclipse Callisto (3.2 stable) parsed it and found no typing errors. I quickly checked the order of the elements and they are in the correct order, according to the BEA docs (I always reference them because they come up first on my searches for some reason) at http://e-do

RE: The content of element type "web-app" must match

2006-07-04 Thread David Friedman
My container usually gives a better error in the log files with the "web-app must match" warning. What was yours? Regards, David -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 7:28 PM To: Struts Users Mailing List Subject: The content of element

RE: Struts Development on ColdFusion Server

2006-07-04 Thread David Friedman
Until you posted this question and I googled it, I didn't know you could even do that on a ColdFusion server. Then again, the last time I used Cold Fusion was probably 5 years ago. :) Thanks since I found this article 'enlightening': http://www.adobe.com/devnet/coldfusion/articles/struts.html

RE: Validation problems: again...

2006-07-04 Thread David Friedman
Have you deleted your server's work directory to ensure that all new classes are being invoked next time you run it? And of course try it again before replying. Can you post all together: a) Your complete related form bean mappings (from <... to /> for each mapping, you can cut out any private d

RE: Validation problems: again...

2006-07-04 Thread David Friedman
Do they both have action mapping with 'validate="true"'? Do they both have the same signature for you personal validate() method in ActionForm? (i.e. not in Action but ActionForm). Remember, the method signature must match YOUR version of struts. Are there any errors in your log files that migh

  1   2   3   >