RE: submit to a new page

2007-11-29 Thread Slattery, Tim - BLS
how would i submit a form to a new window? for links, i can set target=_blank, and then my result is in a popup. But, i have 3 submit buttons, 2 of which display things on the same page, and the last needs to be a popup. any suggestions? I think you'll need an onclick handler for the

RE: EL Statements are not evaluated in logic:equal tag

2007-11-26 Thread Slattery, Tim - BLS
You can use EL without the EL libraries if your servlet container supports J2EE version 2.4. If you have that support, you can use EL anyplace in your jsp page, and the container will take care of it. I hope that you meant Servlet 2.4, included in J2EE 1.4. Anyway EL is in JSP 2.0,

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Slattery, Tim - BLS
I saw many examples on the net with the normal logic:equal tag and the el statement: logic:equal value='${codeTalForm}' So I thought I don't need logic-el:equal and the logic-el taglib. You can use EL without the EL libraries if your servlet container supports J2EE version 2.4. If

RE: Submit all Checkboxes

2007-10-31 Thread Slattery, Tim - BLS
I have a variable amount of check boxes with the same name. I want to submit all of the check boxes weather they are checked or not. Right now I only get an of array for the ones that are checked. Sorry, that's the way HTML works. Checkboxes values are sent only when the box is checked.

RE: (beginner) How to intialize a form's input item

2007-10-18 Thread Slattery, Tim - BLS
My requirement: Prepopulate a form feild if value is present. Can anybody help me in intializing a input feild using struts custom tags? The tags look for a corresponding property in the form bean, and take an initial value from that. For example, if this tag is in you JSP file: html:text

RE: styleId attribute in html:form

2007-10-11 Thread Slattery, Tim - BLS
We have a struts form, and we need to have a styleId element (which translates into a standard HTML id element). When we include it, the page breaks, with no errors logged, just a blank page. If we leave it out completely, when the page loads an id element has been included, with the

RE: styleId attribute in html:form

2007-10-11 Thread Slattery, Tim - BLS
Right, that has sorted the problem with the form, thanks for the help. I'm wondering why that tag was put there in the first place, what could have been the reasoning behind that? I'm hoping that removing it won't have implication elsewhere in the process... Are you talking about the

RE: [OT] are there any other good mailing lists for Java,J2ee,Spring

2007-10-10 Thread Slattery, Tim - BLS
I have been with Struts Users Mailing List for the past one and half year and the advice,knowledge,experience I get here is awesome. I wonder whether are there any similar groups relates to Java,J2ee,Spring where we can get daily mails like here? Though I am a member of

RE: Formatting Flaot and Double Values

2007-10-03 Thread Slattery, Tim - BLS
I want to format float and double values like this ##,###.## eg 45,000.09 Is there any tag that will do this for me or any global property to do this fmt:formatNumber value=${expression} maxFractionDigits=2 minFractionDigits=2/ Defaults to number type, which separates groups of three

RE: Struts - open windows without javascript

2007-09-27 Thread Slattery, Tim - BLS
how to open a new browser windows in Struts without to use javascript code in jsp page? Opening a new page is a client-side function. Since Struts is a server-side system, there's no way to do this. You could use the target attribute of the form... tag, which instructs the browser to open a

RE: Struts - open windows without javascript

2007-09-27 Thread Slattery, Tim - BLS
You could use the target attribute of the form... tag, which instructs the browser to open a new window for the result of the form. That's as close as you're going to get. Same goes for the link a ... tag. The attribute you add to make your form/link requests open a new browser

RE: Which values are passed to the action with a s:submit button?

2007-09-27 Thread Slattery, Tim - BLS
Putting it in another way...how can I send a value from the Action to the jsp and use that value in another action in the next request? Put in into a hidden... field in the form Specifically, what struts2 tag should be used in the jsp? s:hidden -- Tim Slattery [EMAIL PROTECTED]

S2 tutorial

2007-09-19 Thread Slattery, Tim - BLS
I cannot make the first step of the struts 2 tutorial work. I've got web.xml, struts.xml, and the HelloWorld.java just as on the page. When I invoke the app, I get There is no Action mapped for namespace / and action name HelloWorld. What does that mean? -- Tim Slattery [EMAIL PROTECTED]

Sw2 tutorial

2007-09-19 Thread Slattery, Tim - BLS
There is no Action mapped for namespace / and action name HelloWorld. I think I see it. Struts.xml has to be in WEB-INF/classes, not where struts-config.xml was in Struts 1. -- Tim Slattery [EMAIL PROTECTED]

Struts 2 tutorial

2007-09-18 Thread Slattery, Tim - BLS
I'm trying to follow along the Struts 2 tutorial. The HelloWorld.java file starts this way: package tutorial; import com.opensymphony.xwork2.ActionSupport; public class HelloWorld extends ActionSupport { What's with com.opensymphony.xwork2.ActionSupport? I don't see anything like

More tutorial questions

2007-09-18 Thread Slattery, Tim - BLS
What's with com.opensymphony.xwork2.ActionSupport? I don't see anything like that in the Struts 2.0.9 package I downloaded. Did I miss something? OK, I found that in the xwork-2.0.4.jar library, not in the struts2-core library, where I expected it. Now I get this message when I try to

RE: More tutorial questions

2007-09-18 Thread Slattery, Tim - BLS
That class was built for JDK 1.5/Java 5, and you're running JDK 1.4. Ahh. Is running Java 5 an option for you? If not, you might be able to re- compile XWork for 1.4. Eventually. At the moment we're using BEA Weblogic 8.x. That supports java 1.4, and it doesn't support servlets 1.4 either.

RE: bugs? or limition of struts 1.x? html:select html:option value=bean

2007-09-14 Thread Slattery, Tim - BLS
html:option value=bean:write name='myselection' property='agent'/ You can't nest tags in this way. It's not a Struts limitation, it's an XML thing. You can makme it work by using the EL version of the html tags: html-el:option value=${myselection.agent}/ Or is it agent.myselection?

RE: Struts anchor question

2007-09-13 Thread Slattery, Tim - BLS
I have Microsoft Internet Explorer 6.0.2 on my computer. If I use the struts anchor the URL parameters are separated by the character and the link works. If I use the html anchor with a struts property the URL parameters are separated by the amp; characters and the link doesn't work.

RE: Struts anchor question

2007-09-12 Thread Slattery, Tim - BLS
Because the HTML anchor a.../ tag with a URL created via s:url.../ replaces the character between parameters with amp; characters and my link doesn't work. It should. The xhtml spec insists on that, and it works just fine in the browsers my employer lets us run (IE6, Netscape 7). -- Tim

Taglib documentation

2007-09-12 Thread Slattery, Tim - BLS
What's with the taglib reference docs (at least for Struts 1.x). The 1.3.8 HTML taglib doc, for example, at http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#struts-ht ml.tld There are all kinds of what should be HTML tags and entities showing up: p, code, strong, lt;gt; on and on.

RE: Taglib documentation

2007-09-12 Thread Slattery, Tim - BLS
What's with the taglib reference docs (at least for Struts 1.x). The 1.3.8 HTML taglib doc, for example, at http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#struts- ht ml.tld There are all kinds of what should be HTML tags and entities showing up: p, code,

RE: pass parameters to action

2007-09-07 Thread Slattery, Tim - BLS
I have a link html:link page=/myAction.do paramId=map paramName=mapName/html:link and when a user clicks on it, it calls action myAction and passes parameters using HashMap. Those parameters are visible in the URL. Is there any way to pass parameters to the action other than through URL?

RE: pass parameters to action

2007-09-07 Thread Slattery, Tim - BLS
a href=javascript:document.myform.submit()Submit the form/a Oh, the humanity! Seriously, I hate seeing this kind of code. First of all, it requires javascript. What's wrong with javascript? Second, it merely converts a GET request into a POST request. Who really cares whether the

RE: XHTML compliance

2007-09-06 Thread Slattery, Tim - BLS
And also: https://issues.apache.org/struts/browse/STR-2598 This is exactly what I'm talking about. I wasn't aware that the lang attribute disappeared form xhtml between version 1.0 and 1.1, I guess that's where the problem arose. One poster said Current browsers don't even handle XHTML 1.0

RE: XHTML compliance

2007-09-06 Thread Slattery, Tim - BLS
As the ticket said, I am contemplating an xhtmlVersion attribute. For example: html:html xhtml=true html:html xhtmlVersion=1.0 html:html xhtmlVersion=1.1 html:html xhtmlVersion=2.0 (yes, 2.0 exists as a proposed spec!) The first two are equivalent. Otherwise, the version can dictate

RE: Problems with Struts 1.3.8

2007-09-05 Thread Slattery, Tim - BLS
Anyway that problem is fixed. Tim, you may have two options: use 1.3.9 or wait until 1.3.10 (or 1.4?) is released. Or don't use the filter attribute :-) I'm *not* using the filter attribute! The message is issued and processing is halted as soon as the taglib statement is encountered,

RE: Problems with Struts 1.3.8

2007-09-05 Thread Slattery, Tim - BLS
I'm *not* using the filter attribute! The message is issued and processing is halted as soon as the taglib statement is encountered, regardless of what's being used from it. You cannot use the html-el tags in 1.3.8 at all. Now I know how useful is the tag library validation

XHTML compliance

2007-09-05 Thread Slattery, Tim - BLS
OK, I removed the type attribute in the struts-html-el.tld in Struts 1.3.8, and it runs. NowI'm trying to use xhtml. I use this: html-el:html xhtml=true lang=false And it generates this: html xmlns=http://www.w3.org/1999/xhtml; lang=en-US xml:lang=en-US The lang=en-US is in there whether

More 1.3.8 / xhtml problems

2007-09-05 Thread Slattery, Tim - BLS
Struts 1.3.8 (and 1.3.5, for that matter) puts the name of the form bean in the id attribute of the form... tag, instead of the name attribute, like it used to. Since name doesn't exist for form... in xhtml, this makes the output valid xhtml. If I use the styleId attribute in the struts

RE: XHTML compliance

2007-09-05 Thread Slattery, Tim - BLS
Please check the ticket list for Struts 1.4. If you find this very issue there (I think it is) and you need it in 1.3, I can back port it for 1.3.10 I don't know how to do that. I see no link on the Struts page to a ticket list or to Struts 1.4. -- Tim Slattery [EMAIL PROTECTED]

RE: More 1.3.8 / xhtml problems

2007-09-05 Thread Slattery, Tim - BLS
More serious is that when I use EL in the html-el:link... tag it blows up! The stack trace for that begins with: java.lang.NullPointerException This problem disappears in Struts 1.3.9. -- Tim Slattery [EMAIL PROTECTED]

RE: Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Slattery, Tim - BLS
In general is it hard to migrate an existing application from struts 1.2.x to 1.3.x? I had very little trouble going from 1.1.x directly to 1.3.x, without stopping at 1.2. The biggest thing in that move was getting rid of the application parameter of the action servlet declaration in web.xml,

Problems with Struts 1.3.8

2007-09-04 Thread Slattery, Tim - BLS
I'm trying to use Struts 1.3.8 with one of my applications. I copy the 1.3.8 libraries into the /WEB-INF/lib directory. When I try to run the app, I get this: Parsing of JSP File '/index.jsp' failed: /index.jsp(3): Error in using tag library uri='http://struts.apache.org/tags-html-el'

RE: Problems with Struts 1.3.8

2007-09-04 Thread Slattery, Tim - BLS
2007/9/4, Slattery, Tim - BLS [EMAIL PROTECTED]: /index.jsp(3): Error in using tag library uri='http://struts.apache.org/tags-html-el' prefix='html-el': type mismatch for property 'filter', for Tag class 'org.apache.strutsel.taglib.html.ELOptionTag': tld says boolean, implementation

RE: Struts in Servlet 2.4

2007-04-17 Thread Slattery, Tim - BLS
I'd still try it without it, because that's just the way I am ;) I mean, it's obviously there if you're enumerating over it... I switched that directive to % page session=true %, and it finds Contact in Session context! Apparently, specifying true makes the session implicit variable

RE: Struts in Servlet 2.4

2007-04-17 Thread Slattery, Tim - BLS
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c % %@ taglib uri=http://java.sun.com/jstl/fmt; prefix=fmt % I get this message for both tags: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors

RE: Struts in Servlet 2.4

2007-04-16 Thread Slattery, Tim - BLS
Sounds as if your ejb compiler didnt generate and compile the necessary interfaces for what its worth here is a sample of a build for my wl env Eh?? Who said anything about EJBs? This is an exploded directory that will become a WAR file. The bean that can't be found is a plain old Java bean,

RE: Struts in Servlet 2.4

2007-04-16 Thread Slattery, Tim - BLS
tough to guess on what your configuration is without seeing your configuration files Please display web.xml and struts.xml for us Thanks, that's entirely reasonable. I've followed Laurie Harper's advice, and put a loop into the JSP page immediately before it fails. That loop calls

RE: Struts in Servlet 2.4

2007-04-16 Thread Slattery, Tim - BLS
-Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 3:20 PM To: Struts Users Mailing List Subject: Re: Struts in Servlet 2.4 Tim-- I dont understand why looping would help when your webserver cant find a page whicgh is

RE: Struts in Servlet 2.4

2007-04-16 Thread Slattery, Tim - BLS
From: Martin Gainty [EMAIL PROTECTED] I dont understand why looping would help when your webserver cant find a page whicgh is misconfigured or missing??? The problem doesn't have anything to do with a missing page, the problem is that even though a bean is in scope and works on one

RE: Struts in Servlet 2.4

2007-04-16 Thread Slattery, Tim - BLS
%@ page session=false% Whoa. session=true | false Whether the client must join an HTTP session in order to use the JSP page. If the value is true, the session object refers to the current or new session. If the value is false, you cannot use the session object or a

RE: Struts in Servlet 2.4

2007-04-13 Thread Slattery, Tim - BLS
c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. Well, I've made some progress, I guess. I removed the jstl.jar and standard.jar that came with the Struts distribution. I deleted the taglib tags for c:

RE: Struts in Servlet 2.4

2007-04-13 Thread Slattery, Tim - BLS
I found this to be a great tutorial http://www.exadel.com/tutorial/struts/5.2/guess/strutstutorial.html Create your formbean with public Accessors/Mutators for each private attribute and also create methods for reset method validateMethod and of course public no arg constructor for bean

Struts in Servlet 2.4

2007-04-12 Thread Slattery, Tim - BLS
I'm still trying to move Struts apps from WL 8 (servlet 2.3 environment) to WL 9 (servlet 2.4 environment). I've change the top line in my web.xml to the long, complicated string that specifies 2.4. The app runs the first Action module, then forwards to a jsp page. In that page are both JSTL and

RE: Struts in Servlet 2.4

2007-04-12 Thread Slattery, Tim - BLS
--- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. I don't recall, but did the TLD URIs change between 2.3/2.4? (I don't even know if it would

RE: Struts in Servlet 2.4

2007-04-12 Thread Slattery, Tim - BLS
-Original Message- From: Frank Russo [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:40 PM To: Struts Users Mailing List Subject: RE: Struts in Servlet 2.4 Did you change the version of your jstl jars? I forget which version you need, but I think jstl 1.0 was 2.3

Cannot find bean in any scope

2007-04-10 Thread Slattery, Tim - BLS
I'm trying to get a Struts 1.1 (or...maybe 1.2) app to run under Weblogic 9.0. It's been running happily under WL 8. WL 9 supports J2EE 2.4, so I replaced the top line in web.xml with: web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Slattery, Tim - BLS
Now here is my issue. In the form, if the user forgets a mandatory field, I do something like : errors.add (... ... return errors If I'm following correctly, this returns an ActionErrors collection to your Action. I do not use saveErrors(), because I use it only in the

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Slattery, Tim - BLS
I am trying to do a test application using struts, DWR I am having problem with document.getElementById method in javascript, this works fine in IE 6.0 and opera I am using struts tag html:text title=last property=last size=60 readonly=true / and then in my javascript doing the following

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Slattery, Tim - BLS
code to retrieve the errors collection and print stuff about it Which outputs ae.size()=1 error.mandatory.login.password So, the issue is with the html:errors/ tag itself So the errors collection is getting stored in the right place. I think we have to look at your

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Slattery, Tim - BLS
Thanx for the answer, where in documenation is it written that styleId is id?? http://struts.apache.org/struts-taglib/tagreference-struts-html.html#htm l:text -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail:

RE: Issue while migrating from 1.0 to 1.1

2006-04-03 Thread Slattery, Tim - BLS
Hi, while migrating my app tu Websphere 6, I choos to migrate from Struts 1.0 to 1.1. (According to META-INF/MANIFEST.MF file, because I am not sure). First when forgetting a file I had : Error 500: Cannot find message resources under key org.apache.struts.action.MESSAGE

RE: [java:Conditional Operators]

2006-03-30 Thread Slattery, Tim - BLS
I did not understand the following code with multiple conditional operators. boolean vIsForm=true; String vForwardName = (aActionMapping.findForward(vWorkForwardName) == null) ? (vIsForm) ? form : task : vWorkForwardName; Can some

RE: [IE Crashes]

2006-03-28 Thread Slattery, Tim - BLS
Any idea at which stage, will the browser(IE or Moz) crashes when handling a jsp application. A browser sees HTML (and sometimes Flash and Shockwave and Java applets and). It does not see JSP pages. It has no idea whether the page it's rendering was generated by JSP, Java servlets, ASP,

RE: upgrading from 1.1 to 1.2.9

2006-03-24 Thread Slattery, Tim - BLS
So, my question - is this expected behavior? Is 1.2.9 backward compatible to 1.1? Or are there some hidden gotchas that I should be concerned about? I got snagged when my app tried to display an error message on a page. Turns out that the resources file was found using the

Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
I'm trying to convert a Struts app from version 1.1 to the latest production version, 1.2.8. The sticking point is reporting errors. ActionErrors is now deprecated, soon to disappear, so I've converted instances of ActionErrors to ActionMessages. The exception handling code looks like this (ex is

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
Do you have html-el:errors message=true/ on your jsp? If so remove the message=true and it should work. Nope, just html-el:errors/. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
Thats very strange because the error your getting is when it looks for errors under the message key - which happens when message=true is set - otherwise it should look under the error key. What happens if you set html-el:errors message=false/? Also are you sure there are no other

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
The errors tag doesn't have a message attribute. I tried this: Sorry yes, getting mixed up with html:messages. So are you using name=org.apache.struts.action.MESSAGE on your html:errors tag then? That would cause the same. No name attribute on the errors tag or the messages tag.

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
So are you using name=org.apache.struts.action.MESSAGE on your html:errors tag then? That would cause the same. Just tried it with the messages loop using name=org.apache.struts.action.ERROR SAME MESSAGE -- Tim Slattery [EMAIL PROTECTED]

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
Do you have message resources configured in your struts-config.xml? message-resource parameter=MyApplicationResources / Never used that tag before. I put it in, no difference. -- Tim Slattery [EMAIL PROTECTED] - To

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
-Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 11:34 AM To: Struts Users Mailing List Subject: Re: Struts error handling On 3/17/06, Slattery, Tim - BLS [EMAIL PROTECTED] wrote: Do you have message resources configured

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
Change the DTD declaration at the top of your struts-config.xml to the 1.2 version. Sorry got to run. Did that. Got the same error message. Nothing makes the slightest difference. -- Tim Slattery [EMAIL PROTECTED] - To

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
Change the DTD declaration at the top of your struts-config.xml to the 1.2 version. Sorry got to run. Argghh!! I didn't see the parsing error message that landed on the app log, not the server console. I had put in: message_resources parameter=freqs null=false/ Putting an underscore between

RE: Any way to retrieve the index of html:select?

2005-05-06 Thread Slattery, Tim - BLS
I was wondering if there is any way to retrieve the selection index of the html:select during the action. The value that I'm storing is the coded value for the description that it represents (e.g. 1 for male, 2 for female). Instead of taking the value and hitting the database, I would

RE: html:multibox nested within a c:forEach Help!

2005-04-15 Thread Slattery, Tim - BLS
This looks like exactly what I need. I cant seem to find the proper home page for the struts-el subproject however. I assume I need struts-bean-el.tld struts-html-el.tld struts-logic-el.tld struts-el.jar Anyone using this that can give me a starting point? I have those, plus the

RE: html:multibox nested within a c:forEach Help!

2005-04-15 Thread Slattery, Tim - BLS
if I'm using the Struts-EL version of the tags do I simply REMOVE the references to the old struts tags, or is it proper for them to coexist? I assume they ca coexist since not all of them have been ported. They can co-exist, as long the prefix attribute in the taglib directive is

RE: html:multibox nested within a c:forEach Help!

2005-04-15 Thread Slattery, Tim - BLS
I am now mixing JSTL, Struts-EL and Struts (garden variety) tags. Does this eem strange or like S.O.P? I use JSTL and struts-el tags together all the time. Of course, most of my struts tags don't use EL, so they look like original Struts stuff. That way, if I need EL in a tag, I just put it

RE: HTML Form

2005-04-12 Thread Slattery, Tim - BLS
I recall reading something about the HTML tags not receiving any developer attention and new project are encouraged not to use them. My question is what is the alternative to them? JSTL? Is there a guide or wiki page regarding the issues of migrating from the HTML tags to whatever the

RE: [ot] p css question

2005-04-12 Thread Slattery, Tim - BLS
I am wanting to reduce the blank space between 2 paragraphs. What is the css element that dictates that attribute? Try playing with margin-top and margin-bottom. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail:

RE: CSS class name in bean:message ???

2005-04-01 Thread Slattery, Tim - BLS
So what is the difference between div and span? Both mark off arbitrary blocks of text. div is like p in that it implies a line break before and after the division. span does not cause a line break, so it can be used in the middle of a line. -- Tim Slattery [EMAIL PROTECTED]

RE: [HELP] How can javascript reference to 1 html:hidden tag or h tml:text ???

2005-03-30 Thread Slattery, Tim - BLS
I don't know how javascript reference to 1 html:hidden tag or html:text tag of struts tag lib and change their value. for example: I have html:hidden property=userId document.getElementsByName(userId)[0].value=whatever; If you use the styleId attribute, which yields an id attribute in

RE: Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Slattery, Tim - BLS
I'm trying to use Strut indexed tag but keep getting java.lang.IndexOutOfBoundsException: Index: -9. It displays with correct values but when the form is submitted, I got the error. Below is a snip of my code. Do you know what's wrong with it? When you submit your form, the

RE: Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Slattery, Tim - BLS
I thought when the form is submitted, Strut will re-construct the collection of objects with values from the input form. Therefore, I don't have to specify the Collection/List size in the form bean constructor. I can tell you from bitter experience that it does not work that way. The

RE: TagLibs

2005-03-24 Thread Slattery, Tim - BLS
html:img src=../images/new.png alt=bean:message key=img.new/ width=24 height=24 / /html:link You can't nest tags like this. It's not a limitation of Struts, it's the way tags are defined and the way they work. For many problems like this, you can get around it by using the EL version of the

RE: last element of logic iterate

2005-03-18 Thread Slattery, Tim - BLS
How do you determine if your on the last element of your logic:iterate loop? JSTL makes this very easy. Something like: c:forEach items=${someCollection} var=oneItem varStatus=status c:if test=${status.last} stuff to do in the last iteration /c:if /c:forEach -- Tim

RE: inputting floats with html:text

2005-03-08 Thread Slattery, Tim - BLS
I have an application where I am using html:text to allow the user to input floating point numbers. This works fine, except for when the numbers are fairly small, ie 0.001. In this case, I can use the org.apache.struts.taglib.bean.format.float property to set display, but when I

RE: DownloadAction Application

2005-03-07 Thread Slattery, Tim - BLS
2cents I would highly appreciate if an upload could determine the size of the file before actually uploading it and reject the file if it's larger then the given limit, to reduce traffic. HTML/HTTP doesn't support that, IMHO. The input type=file... tag just grabs the file and starts sending

Tags in the body of other tags

2005-03-04 Thread Slattery, Tim - BLS
In my JSP I want to conditionally make an image and some text into a hyperlink, depending on conditions. So I've written this code: c:if test=${HistoryBean.noPayGroups == 2} html-el:link href=entryForm.do?respondent=${HistoryBean.respondent}payGroup=1 /c:if html-el:img

RE: Tags in the body of other tags

2005-03-04 Thread Slattery, Tim - BLS
From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Friday, March 4, 2005 11:14 AM Solve like this: c:if test=...c:set var=urlcase 1/c:set/c:if c:if test=not ...c:set var=url case 2/c:set/c:if html-el:link page=${url}.../html-el:link Hmmm...my problem is that in some cases I want the link

RE: AW: Multi-select file chooser

2005-03-01 Thread Slattery, Tim - BLS
Yes, I can. The limitation is that for every post or get, you can only have ONE multipart/mime file. When you have multiple file elements you actually perform multiple posts to submit each one. I disagree. You can have any number of input type=file... elements in a web page. Any such

OT: JDeveloper trouble

2005-03-01 Thread Slattery, Tim - BLS
Last night, my (WinXP) computer crashed as I was shutting down JDeveloper. Today, JDeveloper won't start. I get the splash screen, and just a couple of bars of the progress display that it normally shows as it comes up. After just a couple of seconds of this it disappears. No message, nothing.

RE: OT: JDeveloper trouble

2005-03-01 Thread Slattery, Tim - BLS
Save your directories under mywork, delete this install of JDev, reinstall, put your projects back under mywork. I don't see any mywork. There are individual project files in the individual project directories. There must be something that tells JDeveloper that it needs to read certain project

RE: JDeveloper trouble

2005-03-01 Thread Slattery, Tim - BLS
If you send me the JDeveloper log..I'll take a look at it tonite Where would I find that? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: OT: JDeveloper trouble

2005-03-01 Thread Slattery, Tim - BLS
In a normal JDev setup all your projects are under the $JDEV_HOME\jdev\mywork directory, with each application under a different subdirectory. I guess this isn't a normal installation then, there is no mywork directory in the jdev directory. My employer's policy is that all our workstations

RE: [OT] Auto comment generation

2005-02-17 Thread Slattery, Tim - BLS
Anyone know of a tool (Eclipse plug-in perhaps?) that will take a Java source file and put javadoc comments (a skeleton basically) before each method, that will include all parameters, methods and throws?, and then I just have to fill in the details? Oracle JDeveloper (free from

RE: [OT] Auto comment generation

2005-02-17 Thread Slattery, Tim - BLS
I wound up using NetBeans. I couldn't find the function in jDeveloper Right-click in your Java class, choose Add Javadoc Comments. Or Source|Add Javadoc Comments. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail:

RE: [OT] Auto comment generation

2005-02-17 Thread Slattery, Tim - BLS
I'm not seeing that option Tim... I'm using v9.0.3.1... I don't see anything about comments when I right-click anywhere, nor do I see a Source menu (or source anywhere that I looked). I'm using 9.0.5.2, so maybe they've added it since your version. -- Tim Slattery [EMAIL PROTECTED]

RE: how to receive emails related to my questions only?

2005-02-16 Thread Slattery, Tim - BLS
there's no server side configuration from the mailing list that i can tweak? Definitely not. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: JavaScript Integer Validation - Leading zeros

2005-02-16 Thread Slattery, Tim - BLS
What I don't understand is why it does this. Why does the JS validation differ from the Java validation? JavaScript is NOT Java!! They have confusingly similar names, but they are totally different. There's no reason to expect that the performance of one should be similar to the performance

RE: JSTL HTML Options

2005-02-03 Thread Slattery, Tim - BLS
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? Write a

RE: JSTL HTML Options

2005-02-03 Thread Slattery, Tim - BLS
So you're not able to reference static public final properties in the same fashion as scriplets? %=Constants.MY_CONSTANT% Tags are fundamentally different from scriptlets. Scriptlets are simply Java code, and you can address a member variable of a class from a scriptlet just as you could in

RE: Using XML in struts

2005-01-14 Thread Slattery, Tim - BLS
How can i read XML files using struts? is this possible? Can any one provide a link or give an example for reading XML files using struts? If you're talking about reading an XML file in your Java code, check out Jakarta Commons Digester: http://jakarta.apache.org/commons/digester/ -- Tim

RE: Property file question

2005-01-13 Thread Slattery, Tim - BLS
I am having property file under WEB-INF directory. I am currently storing something like title.mainmenu = Main Menu error.validation = Validation Error Can i make use of these variables inside my any normal java classes - or whether these r meant for only JSPs ? You can use

RE: Regarding JBOSS

2005-01-13 Thread Slattery, Tim - BLS
I need to download JBOSS 4.0.1 for windows. Where can i get this ? What should i download? I can see lots of downloads for jboss. ie jboss4.0.1 RC1.zip, jboss4.0.1 RC2.zip.. etc. http://www.jboss.org/downloads/index JBoss Application Server -- Tim Slattery [EMAIL PROTECTED]

RE: html:file value

2004-12-20 Thread Slattery, Tim - BLS
How do I get html:file value in Action class without using javascript? html:file property=theFile / Have you looked at the struts-upload.jar in the Struts distribution zip file? That's a full-functional file upload application, all the details of using Struts to upload a file are there. In a

RE: Syntax checker

2004-12-10 Thread Slattery, Tim - BLS
Sorry for the deviation, but is there an easy way to find out what exactly is causing org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error? error on a jsp? Maybe run it through some tool which points out the problematic tag?

RE: nesting options

2004-12-06 Thread Slattery, Tim - BLS
I have a html:options collection where the beans have a deep hierarchy. I'd like to set the labelproperty of my html:options to one of the bean's property like mybean.getCustomer().getParent().getName(); how can I do this with html:options. Does it suport expression language? The EL

RE: html:option problem

2004-11-23 Thread Slattery, Tim - BLS
This: html:option value=${emailGroup.emailGroupID} produces this: option value=${emailGroup.emailGroupID} instead of this: option value=17 Are you sure the html prefix references the EL version of the taglib? -- Tim Slattery [EMAIL PROTECTED]

  1   2   >