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 fo

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

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: > > So I thought I don't need I run tomcat 5.5.12 I don't know whether that supports J2EE 2.4 or not. -- Tim Slattery [EMAIL PROTECTED] ---

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 checke

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: Struts

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: 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: [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 > http

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 Defaults to "number" type, which separates groups of three digits according to the Locale (commas, on this side of the pond). -- Tim Sl

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 field in the form > Specifically, what struts2 tag should be used in the jsp? -- Tim Slattery [EMAIL PROTECTED] -

RE: Struts - open windows without javascript

2007-09-27 Thread Slattery, Tim - BLS
> > You could use the "target" attribute of the 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 tag. The attribute you add to > make your form/link requests open a new browser window/t

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 tag, which instructs the browser to open a new w

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]

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]

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 eithe

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 com

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 that

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

2007-09-14 Thread Slattery, Tim - BLS
> 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: Or is it agent.myselection? I'm not terribly familiar with the bean tags. -- Tim Slattery [EMAIL PROTECTED] ---

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'

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:

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: , , , <> on and on. It makes the doc

RE: Struts anchor question

2007-09-12 Thread Slattery, Tim - BLS
> Because the HTML anchor tag with a URL created via > 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 Slattery

RE: pass parameters to action

2007-09-07 Thread Slattery, Tim - BLS
> > > > Submit the form > > 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 URL is long or not? OP did. That

RE: pass parameters to action

2007-09-07 Thread Slattery, Tim - BLS
> I have a link paramName="map">Name 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? No, and it's not Strut's fault. If you wan

RE: XHTML compliance

2007-09-06 Thread Slattery, Tim - BLS
> As the ticket said, I am contemplating an xhtmlVersion attribute. For > example: > > > > > (yes, 2.0 exists as a proposed spec!) > The first two are equivalent. Otherwise, the version can > dictate how attributes are rendered. > What do you think? Excellent! Thanks very much! -- Tim Sl

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.

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.

RE: More 1.3.8 / xhtml problems

2007-09-05 Thread Slattery, Tim - BLS
> More serious is that when I use EL in the > 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] - To unsubs

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] ---

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 tag, instead of the "name" attribute, like it used to. Since "name" doesn't exist for in xhtml, this makes the output valid xhtml. If I use the styleId attribute in the struts tag, it blows up.

XHTML compliance

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

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 validati

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-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 > >

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' prefix='h

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,

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-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

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 > o

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 mis

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 requ

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 bea

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 b

RE: Struts in Servlet 2.4

2007-04-13 Thread Slattery, Tim - BLS
> > > 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 tags for c: and fmt: in web.xml. And I got rid of

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

RE: Struts in Servlet 2.4

2007-04-12 Thread Slattery, Tim - BLS
> --- "Slattery, Tim - BLS" <[EMAIL PROTECTED]> > wrote: > > > > > > 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 ch

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 St

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: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLo

RE: Moving a Struts app from Weblogic 8 to Weblogic 9

2007-04-04 Thread Slattery, Tim - BLS
> Hi Tim > > For some reason I dont see your controller mappings (here is > an example from my struts-config.xml) > > path="/begin"> > > > > processorClass="com.bea.wlw.netui.pageflow.PageFlowRequestProcessor"/> I have no clue what a controller mapping i

RE: Moving a Struts app from Weblogic 8 to Weblogic 9

2007-04-04 Thread Slattery, Tim - BLS
> Thanks for the clarification > 2 suggestions > > > 1 > > > debug > 1 > I don't understand. 1 is already there for ActionServlet. Struts-config.xml: http://struts.apache.org/dtds/struts-config_1_2.dtd";>

RE: Moving a Stratus app from Weblogic 8 to Weblogic 9

2007-04-04 Thread Slattery, Tim - BLS
> as this seems to be a BEA specific bug I would post this to > bea user group > http://forums.bea.com/bea/message.jspa?messageID=600044648&tstart=0 > > In the meanwhile can you please display the contents of the > following files application.xml from META-INF folder > ejb-jar.xml from META-

Moving a Stratus app from Weblogic 8 to Weblogic 9

2007-04-04 Thread Slattery, Tim - BLS
I have a Struts app (using version 1.3.5), that runs just fine under Weblogic version 8. Now we're trying to move to version 9. When I try to deploy this app under WL 9, I get this message: weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\bea9\user_projects\domains\loca

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: [EM

RE: Issue while migrating from 1.0 to 1.1

2006-04-04 Thread Slattery, Tim - BLS
> Which outputs > ae.size()=1 > error.mandatory.login.password > > So, the issue is with the tag itself So the errors collection is getting stored in the right place. I think we have to look at your properties file. Apparently the tag is finding *some* properties file, since i

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 > > > and then in my javascript doing the following > document.getElementById('last').value= data; >

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 i

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.MESSA

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; > >

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, P

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 "application.

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: Putting an underscore between "message" and "resources" instead of a hyphe

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 uns

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: >

RE: Struts error handling

2006-03-17 Thread Slattery, Tim - BLS
> Do you have message resources configured in your struts-config.xml? > > Never used that tag before. I put it in, no difference. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

RE: Struts error handling

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

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 message="false"/>? > > Also are you sure there are no other or >

RE: Struts error handling

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

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: 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 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 like to

RE: nested within a 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 i

RE: nested within a Help!

2005-04-15 Thread Slattery, Tim - BLS
> Where do you get all the struts-el stuff? dos it come bundles > with Struts 1.2.4? It's in the Struts distribution ZIP file, in the contrib\struts-el subdirectory -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail:

RE: nested within a 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 diffe

RE: nested within a 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 t

RE: [ot] 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: 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

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

2005-04-01 Thread Slattery, Tim - BLS
> So what is the difference between and ? Both mark off arbitrary blocks of text. is like in that it implies a line break before and after the division. 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 document.getElementsByName("userId")[0].value="whatever"; If you use the "styleId" attribute, which yields an "id" attribute in HTML: You can

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: 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: TagLibs

2005-03-24 Thread Slattery, Tim - BLS
> " width="24" height="24" /> 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 tags, but in this case you're trying to read something from a resou

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: stuff to do in the last iteration -- Tim Slattery [EMAIL PROTECTED] - To

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 whe

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 tag just grabs the file and starts sending it. The se

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: > case 1 > case 2 > ... Hmmm...my problem is that in some cases I want the link to exist, in other cases I want it to disappear. This seems to always put the link there, but switch the URL.

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: Pay Group 1 I'm getting a syntax error, pointing to the first line. I don't see any syntax problems. Is it imper

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 work

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
> 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 proj

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. Doe

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 elements you actually perform multiple > posts to submit each one. I disagree. You can have any number of elements in a web page. Any such page must be POSTed

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: [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-

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 Or

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 performanc

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: Struts html tag question

2005-02-08 Thread Slattery, Tim - BLS
> How to show a basic struts text box > and a checkbox? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

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?

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

  1   2   >