ActionForm's reset method is invoked twice ??

2003-09-09 Thread Fumitada Hattori
Hi gurus, I wanna know that ActionForm's reset method is invoked twice ? There's an action tag in my struts-config.xml. action path=/Test type=example.Test name=TestForm scope=request forward name=success path=/top.jsp/ /action and I got a jsp named test.jsp html:form action=/Test

Eliminating Redundancy...

2003-09-09 Thread alan
I'm creating a struts application and I would like to have all of my constants in a single file, perhaps my application's resource bundle. I'd like this data to contain such info as the maximum length of various input fields (eg cityLengthMax = 100) and be able to refer to this in my

Re: Icon?

2003-09-09 Thread Bjørn T Johansen
On Mon, 2003-09-08 at 03:27, Max Cooper wrote: Two things come to mind: 1. Do you want an icon that will show up in a browser when a user accesses your application/site? If so, you need to do something else -- the icon part of the servlet spec seems to indicate that it is for GUI tools (like

i18n with struts / JSTL

2003-09-09 Thread Siva
Dear Friends, Could anyone suggests which is best among the Struts tags and JSTL tags for I18n of struts based application. Thanks, Sivakumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Converting a ResultSet to a List of POJOs

2003-09-09 Thread K.C. Baltz
Since I had to look it up, maybe others did too: POJO = Plain Old Java Object. I'm guessing that means a Java object that doesn't need to know how it is persisted in order to be stored? I.e., in Matt's case, the object isn't modified to take ResultSet as an argument to the constructor. K.C.

RE: Icon?

2003-09-09 Thread Ramesh Kannery
search for favicon in google, u may get the answer!! -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 11:43 AM To: Struts Users Mailing List Subject: Re: Icon? On Mon, 2003-09-08 at 03:27, Max Cooper wrote: Two things come to mind:

datasource connection problem.

2003-09-09 Thread Rajat Pandit
hello, i am using mysql as a datasource in the app,everything is working fine but when make changes in the class files and reload the application the application ceazes to work and i got the followng messages in my log file. can some one help me figure out where am i going wrong. am a newbie.

RE: datasource connection problem.

2003-09-09 Thread alan
A BindException is caused when you try to grab a socket that is already in use. My guess is that you haven't stopped the previous application before trying to start the new version. alan -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003

RE: Icon?

2003-09-09 Thread Bjørn T Johansen
Oki, thanks.. It seems I've been doing it right with one of my methods, but I need to use an icon in size 16x16 and not 32x32... BTJ On Tue, 2003-09-09 at 08:20, Ramesh Kannery wrote: search for favicon in google, u may get the answer!! -Original Message- From: Bjørn T Johansen

Re: why servlet as controller in MVC

2003-09-09 Thread virupaksha
Dear Max, Thanks for your answer.. I just wanted to know, why we should use servlet in MVC framework.. Frankly, I was not knowing the answer.. I think, I had asked question in wrong manner... Thanks once again for answer.. Regards, viru - Original Message - From: Max Cooper [EMAIL

RE : iterator tag

2003-09-09 Thread thomas Sontheimer
you may also test if the *brand new* collection is defined with the logic:present and logic:notPresent tags... thomas. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 6:14 PM To: 'Struts Users Mailing List' Subject: RE: iterator tag

Re: Icon?

2003-09-09 Thread Louise Pryor
On Tuesday, September 9, 2003 at 7:12:47 AM, Bjørn T Johansen wrote: snip BTJ Well, I want to change the icon that appear in front of the url in the BTJ browser, I see other use it... 2. Is the icon element in the right place in the web.xml file? An editor that does XML validation (like

Re: i18n with struts / JSTL

2003-09-09 Thread Adam Hardy
It's not necessarily a question of which is best, rather which has the biggest future. In this respect you should use the JSTL fmt: taglib. Adam On 09/09/2003 08:18 AM Siva wrote: Dear Friends, Could anyone suggests which is best among the Struts tags and JSTL tags for I18n of struts based

RE: What's a well defined Struts Project Structure?

2003-09-09 Thread Krishnakumar N
I also follow a similar structure in the project, but I have to say that we have made a mess of it while determining the package structure that now we have 100s of files in a single folder. Ideally, stuff that changes together should stay together; and since most requirement changes are on

RE: Struts 1.0 problem

2003-09-09 Thread Adam Levine
the only time a getXXX() should accept a parameter is when dealing with indexed properties. If you're needing to retrieve n characters, or other such retrieval forms, you could code an access tag that posts your results to a scripting variable, which can then be further manipulated with

Re: Converting a ResultSet to a List of POJOs

2003-09-09 Thread Adam Levine
a POJO is just that. just an ordinary, everyday object. you might also think of it as a traditional Java bean. it has an empty param constructor, and get/setXXX signatures. From: K.C. Baltz [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List

RE: Converting a ResultSet to a List of POJOs

2003-09-09 Thread Andrew Hill
Everyday object? You serious? Who uses those now? I mean it doesnt even come with 50,000 xml files to specify deployment metainfo s old fashioned! -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: Tuesday, 9 September 2003 16:31 To: [EMAIL PROTECTED] Subject:

dynamically change the javascript argument

2003-09-09 Thread Kannan
hi all! look at this code. html:button property=postNewEvent styleClass=button1 onclick=doSubmit('newevent.do'); bean:message key=events.button.postnewevent/ i want the parameter of doSubmit('newevent.do'); method to dynamically change..what can i do.. rgds, Kannan

RE: i18n with struts / JSTL

2003-09-09 Thread Paul McCulloch
Bear in mind that there are bugs in the jstl code that aren't in the struts equivalents: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16932 My approach has been to use the jstl tag and hope that the bug is fixed before I have to release! Paul -Original Message- From: Adam Hardy

deployement issue

2003-09-09 Thread michel Van Asten
Hi, I got errors when I try to run my application on the production server (I use servletExec for development and production system) Error happens here : ... bean_message_tag1.setKey( index.title ); bean_message_result1 = bean_message_tag1.doStartTag(); ... And seems to be generated in the

Re: deployement issue

2003-09-09 Thread Koni Roth
I have similar (strange) errors when my database isn't up and running. Is your database connection on the production server up and running and can you connect your DB properly? Just a guess... Cheers Koni michel Van Asten wrote: Hi, I got errors when I try to run my application on the

Automatic forward to an action when entering a JSP

2003-09-09 Thread Dirk Behrendt
Hello! There are a possibilty to forward to an action if a JSP is called? The action should be processed automatically when the user enters the JSP. (user should not press a button or klick a link). That means without declaring a html:form action=.. /html:form or html:link forward=. /html:link

RE: Combining struts and JSTL tags...

2003-09-09 Thread Karr, David
Well, I don't know exactly what your parse exception is, but you probably want to use Struts-EL instead of plain Struts, if you're using JSTL. It integrates better with the JSTL than plain Struts. Also, you appear to be using the TLD from Struts 1.0.2, not Struts 1.1. -Original

Re: Icon?

2003-09-09 Thread Max Cooper
And one more thing... the favicon doesn't seem to show up in IE unless you add the page to your Favorites. And even then it only seems to work if the page is not secure (it only works for http://, not https://). And it doesn't show the icon for all pages in the site, just the particular pages you

Re: Icon?

2003-09-09 Thread Max Cooper
I did a little investigation and it looks like the icon part of web.xml has nothing to do with displaying a custom icon in the web browser's address bar, as I suspected. I think icon is intended to allow you to specify a custom icon for your web app that will appear in GUI tools related to the app

Re: deployement issue

2003-09-09 Thread Adam Levine
i lost my personal psychic friend license last year. Just like a doctor can't diagnose your ailments over the phone, we can't help you very easily without knowing what problem you're seeing. What errors are you getting? It looks like the code snippet you pasted is from the javacode generated

RE: deployement issue

2003-09-09 Thread michel Van Asten
Yes my database is up about the connection I dont know... I want to test it with the application... -Message d'origine- De : Koni Roth [mailto:[EMAIL PROTECTED] Envoyé : mardi 9 septembre 2003 13:20 À : Struts Users Mailing List Objet : Re: deployement issue I have similar (strange)

Re: deployement issue

2003-09-09 Thread Koni Roth
Try to figure out where's the difference between the two systems (JDK, Database,...). When you start your application, is your server throwing errors? If yes - maybe it's helpful to post this error here... michel Van Asten wrote: Yes my database is up about the connection I dont know... I want

RE: Create new nested bean instance

2003-09-09 Thread Nate Drake
By static include, you mean % include file=filename %, right? Yes, there is one of those. The included file just has some html (two script src=blah.js/script elements). Thanks. n On Mon, 2003-09-08 at 21:52, Robert Taylor wrote: What's in addimporteddlist.jsp? Are you using a static

Re: datasource connection problem.

2003-09-09 Thread Paul Thomas
On 09/09/2003 07:32 Rajat Pandit wrote: hello, i am using mysql as a datasource in the app,everything is working fine but when make changes in the class files and reload the application the application ceazes to work and i got the followng messages in my log file. can some one help me figure out

problem in getproperties.

2003-09-09 Thread deepaksawdekar
I am using following code to access the property from properties file in my action class. Code snippet is as follows... .. InputStream in = ClassLoader.getSystemResourceAsStream( propertyFilePath); properties.load(in); value = properties.getProperty(key); When I write the main in action

navigable search results

2003-09-09 Thread Andy Richards
Hi everyone, I want to display my search results in a similar fashion to google, with a navigable menu at the bottom. I know this is possible but i am not sure what to re-search for to get some ideas of how to do this with struts? Anyone have any ideas or a key word i can search the struts

Re: problem in getproperties.

2003-09-09 Thread Brad Balmer
try InputStream is = getClass().getResourceAsStream(/file.properties); properties.load(is); Assuming that the file.properties file is located directly under your classes directory deepaksawdekar wrote: I am using following code to access the property from properties file in my action class.

Html:File tag questions

2003-09-09 Thread Julio . Font
I have 2 questions regarding the html:file tag: Is there a way around getting the Warning: Page has Expired The page you requested was created using information ... page when the user clicks the browser back button on a form that has a html:file tag? I believe this tag is the cause of this

RE: i18n with struts / JSTL

2003-09-09 Thread Paananen, Tero
Bear in mind that there are bugs in the jstl code that aren't in the struts equivalents: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16932 That's just one implementation of JSTL. The application server vendor's JSTL implementation is not going to have (the same) bugs. Depending, of

AW: navigable search results

2003-09-09 Thread Roland Berger
Hi Andy One of the key words might be ValueListHandler. With this pattern you fetch the data from the datasource, and keep the result set in the ValueListHandler. The clients can call method like getNext(), getPervious(). But this Pattern is not related to struts its a bussines layer pattern. If

RE: Converting a ResultSet to a List of POJOs

2003-09-09 Thread Jerry Jalenak
Matt - After reading your post here and on the iBatis forum on SF, I thought I'd run some tests on my authentication process as well. I'm using a static block to initially read in the sql-map.xml file, and am using the sqlMap.executeQueryForObject method w/o a 'true' DAO (calling the method

Re: ActionForm's reset method is invoked twice ??

2003-09-09 Thread Michael Ruppin
Check this thread: http://marc.theaimsgroup.com/?t=10559454236r=1w=2 HTH m Fumitada Hattori [EMAIL PROTECTED] wrote: Hi gurus, I wanna know that ActionForm's reset method is invoked twice ? There's an action tag in my struts-config.xml. type=example.Test name=TestForm scope=request

How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
Hi, I have the following link in my JSP page: td width=130a href=/servlets/blotter/Contact?page=viewcontactlist target=rightframe class=linkboldContact List/a/td I want to mimic the above using Struts JSP tags(I don't want to use a SUBMIT button). However, I want to call my ActionForm class

Passing Parameters to Form Bean on GET's

2003-09-09 Thread Alex Araujo
I'm rewriting a CGI application into Java/Struts so I'm still a newbie at this and am having little luck finding answers/examples to simple things online such as how to pass query string parameters to my form bean in a URL (GET) instead of in a jsp form using struts tags. Basically I'm trying

AW: problem in getproperties.

2003-09-09 Thread Oliver Reflé
Why don't you put your property file to your application classpath, and use ResourceBundle.getBundle(bundlename); Oliver -Ursprüngliche Nachricht- Von: deepaksawdekar [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. September 2003 14:58 An: Struts Users Mailing List Betreff: problem in

Bean formatting

2003-09-09 Thread Eyrignoux Marc
Hi everybody, I am new to Struts 1.1, so I have a few questions about property formatting (I didn't find any answer in the list archives). 1) In the ActionForm, the bean properties should be String, it will avoid you formatting problems (especially with dates, if you want to use the html:text

ReloadAction

2003-09-09 Thread sangappan
Hi, I am using the struts 1.1 release, but I do not see any admin actions like ReloadAction. Is it removed, if so, is there an alternative which reloads the struts configuration files dynamically. Any help appreciated. Thanks - The information contained

Passing Parameters to Form Bean on GET's

2003-09-09 Thread Alex Araujo
I'm rewriting a CGI application into Java/Struts so I'm still a newbie at this and am having little luck finding answers/examples to simple things online such as how to pass query string parameters to my form bean in a URL (GET) instead of in a jsp form using struts tags. Basically I'm trying to

RE: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread James Childers
-Original Message- From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 8:24 AM To: Struts Users Mailing List Subject: How do you mimic the 'a href' functionality in Struts? td width=130a href=/servlets/blotter/Contact?page=viewcontactlist

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
In general, you use the html:link tag http://jakarta.apache.org/struts/userGuide/struts-html.html#link For the destination of the link, it takes one of four attributes: forward, action, href, or page. The mechanism for specifying a single parameter for the link uses these attributes: paramId,

Re: Bean formatting

2003-09-09 Thread Tor Henrik Hanken
[EMAIL PROTECTED] | Hi everybody, | | I am new to Struts 1.1, so I have a few questions | about property formatting (I didn't find any answer in | the list archives). | | 1) In the ActionForm, the bean properties should be | String, it will avoid you formatting problems | (especially with

Re: ? and are bad for searchengines

2003-09-09 Thread Marius Oancea
Marius Oancea wrote: Marius Oancea wrote: problem description I have a web application made with struts. The servlet container is tomcat 4.1.x. All my action are called in the falloing way: /path/actionname?param1=text1param2=text2 and so on. Such urls are very bad for

RE: deployement issue

2003-09-09 Thread Robert Taylor
Michel, what version of ServletExec are you running? What's your environment(JDK, OS, etc...)? Is the problem occurring on both production and test servers? What version of Struts are you using? robert -Original Message- From: michel Van Asten [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Automatic forward to an action when entering a JSP

2003-09-09 Thread Paananen, Tero
There are a possibilty to forward to an action if a JSP is called? I would do this by configuring the HTTP server to issue redirects. -TPP - This email may contain confidential and privileged material for the sole use of

Re: Converting a ResultSet to a List of POJOs

2003-09-09 Thread Vic Cekvenic
By using a static class intilizer in the DAO, JNDI, Pool and XML phrase happen once for the entire web app. iBatis I found much faster and simpler that others. .V Jerry Jalenak wrote: Matt - After reading your post here and on the iBatis forum on SF, I thought I'd run some tests on my

RE: problem in getproperties.

2003-09-09 Thread Mark Galbreath
Why are you creating a new I/O object when the execute method gets the resource passed as a parameter argument? MessageResources properties = getResources( request ); properties.getProperty( key ); Mark -Original Message- From: deepaksawdekar [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: problem in getproperties.

2003-09-09 Thread Andrew Hill
Maybe thats not the particular property file he is trying to load? Try using getServlet().getServletContext().getResourceAsStream( propertyFilePath ); In your actions execute method. snip src=javadocs This method is different from java.lang.Class.getResourceAsStream, which uses a class loader.

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
Yes I am going to pass the same param to the link every time. This is what I have replaced the link with. I am not too sure if I should be using the href property to call my ActionForm class. html:link href=ContactForm paramId=page paramName=viewcontactlist

[validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
I'm having some trouble using the maxlength validation and I was hoping someone could give me some help. I have a form with one required field and one field with a maximum length of 2000 characters. When input validation fails for both fields I get the following messages (text in parentheses

Re: navigable search results

2003-09-09 Thread Andrew Kuzmin
Hi, see these links http://edhill.its.uiowa.edu/display/ http://jsptags.com/tags/navigation/pager/ http://www.mail-archive.com/[EMAIL PROTECTED]/msg43661.html -- Andrew http://www.java201.com - Original Message - From: Andy Richards [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: Struts 1.0 problem

2003-09-09 Thread naveen . joshi
but this was working fine in weblogic with sp1. The problem came only when i ported it weblogic SP4. Naveen -Original Message- From: adam.l.levine [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 4:35 AM To: struts-user Cc: adam.l.levine Subject: RE: Struts 1.0 problem the

RE: problem in getproperties.

2003-09-09 Thread Mark Galbreath
I thought about that, Andrew After I hit send, of course. :-) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 10:36 AM To: Struts Users Mailing List Subject: RE: problem in getproperties. Maybe thats not the particular property file

Tiles: Insert attribute

2003-09-09 Thread Richard Tomlinson
I need to be able to discover the area name which has called a JSP. In the example below there is a template with the usual 'insert' statements. An adaptor JSP page is used to custom write some output from a legacy application. Within the mypage.jsp custom tags perform area selection,

Re: [Validator] E-Mail Verification

2003-09-09 Thread Gregory Seidman
On Mon, Sep 08, 2003 at 02:32:01PM -0700, David Graham wrote: } --- Paananen, Tero [EMAIL PROTECTED] wrote: } +1 on the new option but I think the allowed characters should be } } a-zA-Z0-9_.- } } -999 } } That's missing several perfectly valid

RE: problem in getproperties.

2003-09-09 Thread Andrew Hill
and before you opened my post Im sure ;- -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Tuesday, 9 September 2003 22:51 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: problem in getproperties. I thought about that, Andrew After I hit send, of

Serializing ActionForm

2003-09-09 Thread António Santos
Hi! I have an ActionForm which has several String fields and FormFile field. Now, I want to pass it as an RPC parameter through a WebService invocation. However, I'm having problems with the serialization. Since I'm using AXIS, I have followed the tutorial in order to register the type mapping.

Re: navigable search results

2003-09-09 Thread Andy Richards
Cheers Andrew Exactly what i wanted...i thought there may have been some struts tag but obviously not. Thanks Andy On Tuesday 09 Sep 2003 3:09 pm, you wrote: Hi, see these links http://edhill.its.uiowa.edu/display/ http://jsptags.com/tags/navigation/pager/

cache design pattern

2003-09-09 Thread meissa . Sakho
hi all, I would like to implement a cache design pattern in my framework. before re-inventing the wheel, I would like to ask to thoses who have already done that. Sample codes, advices are welcome. thanks in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis

RE: Create new nested bean instance

2003-09-09 Thread Nate Drake
Figured it out. I had two copies of the class containing the FormFile in the ear. One in a jar in the ear's library directory and one in the war file. Removed the one in library and all is well. Thanks again. Nate On Tue, 2003-09-09 at 08:39, Nate Drake wrote: By static include, you mean %

RE: What's a well defined Struts Project Structure?

2003-09-09 Thread Yansheng Lin
Division by *usecase* is a very logical one, and we follow that process as well(not 100% though). But the problem with this approach is you cannot reuse one usecase for similar ones easily. You don't want to subclass the originally/written packages since it's already very specific. What we end

Re: ReloadAction

2003-09-09 Thread Sgarlata Matt
I believe the ReloadAction was removed in Struts 1.1 because it didn't work anymore because of support for multiple modules. However, some application servers will let you reload a context. Tomcat allows you to do this from the Tomcat manager, which is accessible from

RE: Create new nested bean instance

2003-09-09 Thread Robert Taylor
Nate, I had sent an email to the list suggesting that there might be a classpath issue. But I sent it from the wrong account so it never got here. I'm glad you figured it out. robert -Original Message- From: Nate Drake [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 11:05

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
Try: arg0 name=maxlength key=${var:maxlength} resource=false/ The number after arg is the position in the message to replace so you need a 0. David --- Sgarlata Matt [EMAIL PROTECTED] wrote: I'm having some trouble using the maxlength validation and I was hoping someone could give me some

using html:link taglibs to call an ActionForm bean from a link

2003-09-09 Thread Mehran Zonouzi
Hi, Does anyone know how to use the html:link taglibs to call an ActionForm bean from a link? I also want to pass a param called 'page' to the link and set it's value to be 'viewcontactlist'. This is my ActionForm bean: import javax.servlet.http.HttpServletRequest; import

Re: datasource connection problem.

2003-09-09 Thread Caroline Jen
Hi, in my opinion, you should pay attention to this part of your log file: Unable to connect to any hosts due to exception. and java.net.BindExceptioncom.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346 It says that the jdbc driver is not registered. --- Rajat Pandit

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
Ah-hah, figured it out. This will not work: arg0 key=label.bin.title/ but this will work: arg0 key=label.bin.title resource=true/ I will enter this as a bug, because the documentation states that By default the arg0-arg3 elements will try to look up the key attribute in the message

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: Ah-hah, figured it out. This will not work: arg0 key=label.bin.title/ but this will work: arg0 key=label.bin.title resource=true/ I will enter this as a bug, because the documentation states that By default the arg0-arg3 elements will try

Re: cache design pattern

2003-09-09 Thread Vic Cekvenic
In general, data caching should happen at the data (model of MVC) layer. DAO's like iBatis and Hibernate do caching automatically, you just configure a decay time in XML. hth, .V [EMAIL PROTECTED] wrote: hi all, I would like to implement a cache design pattern in my framework. before

Re: Redisplaying of entered form fields

2003-09-09 Thread Jan Van Stalle
Rodney, I had similar problems with a DispatchAction. The problem is, when the validation fails, it does not come into your action class; the good news is that you can define an 'input' attribute in your actionmapping (struts-config.xml) which will be used when your validation fails; I had put a

Tiles and taglibs

2003-09-09 Thread Robert Upshall
I am attempting to port over a web site to use Struts and Tiles. My existing site uses allot of tags for dynamic elements. I have encountered a problem when I attempt to pass a parm through my jsp into my tag. The menu works but in the menu tag I hightlight the current page and expand a

Tiles html-taglib producing XHTML

2003-09-09 Thread Adam Hardy
I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML, but the input taglib doesn't output XHTML when it's in a different Tile. I have my Tiles layout page with the doctype declaration and the html:html xhtml=true and the

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title resource=true/ arg1 name=maxlength key=${var:maxlength}

Re: Tiles html-taglib producing XHTML

2003-09-09 Thread David Graham
Add html:xhtml/ to each of your tiles. Each page fragment must decide how it will be rendered, not the containing page. David --- Adam Hardy [EMAIL PROTECTED] wrote: I'm using the struts html taglib, well actually the html-el taglib but the problem is with both, and I am outputting XHTML,

Force initialization of RequestProcessor?

2003-09-09 Thread Wes Kubo
In my J2EE/struts app I'm initializing a class for handling properties within the RequestProcessor (actually a custom subclass of TilesRequestProcessor). This works fine in practice, because the EJB tier is always accessed through the web tier and the properties are always initialized ok. The

Re: Force initialization of RequestProcessor?

2003-09-09 Thread khote
Have you tried a plug-in, in your struts-config.xml? I've had some success with that method, the plugin does get called early on. - Original Message - From: Wes Kubo [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 9:33 AM Subject: Force

RE: Tiles html-taglib producing XHTML

2003-09-09 Thread Matt Raible
You have to set each tile to be XHTML - here's how I do it: Since every page probably needs taglibs, I have a common/taglibs.jsp file. In this page, I have my taglib declarations and the following line at the end: html:xhtml / Then every page includes that with: %@ include

Re: Eclipse for Struts with apt-get

2003-09-09 Thread mohan
Hi All I am using Redhat8.0 and struts. I would like use eclipse 2.1 for that purpose. Does any one know if there is a way i can get it thro apt-get.Please let me know Thank you --Mohan - To unsubscribe, e-mail: [EMAIL

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
At 15:03 +0100 9/9/03, Mehran Zonouzi wrote: Yes I am going to pass the same param to the link every time. This is what I have replaced the link with. I am not too sure if I should be using the href property to call my ActionForm class. html:link href=ContactForm paramId=page

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread David Graham
--- Sgarlata Matt [EMAIL PROTECTED] wrote: David Graham wrote: I'm confused by your setup: arg0 name=fieldname key=label.bin.title/ Yeah, I was trying random stuff. The final thing that worked was: field property=description depends=maxlength arg0 key=label.bin.title

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
Does the name I use for action i.e ContactForm have to tie in with what I use in the struts-config.xml file? html:link action=/ContactForm paramId=page paramName=viewcontactlist paramScope=request i.e. Do I need to put ContactForm instead of 'contacts' for path... action path=/contacts

Re: [validator] maxlength not reading from resource bundle

2003-09-09 Thread Sgarlata Matt
David Graham wrote: That's correct, the default is true. Maybe it's broken when you don't provide a name attribute? I agree; I will add this info to BugZilla. Thanks again for all your help. David Matt - To unsubscribe,

Re: Tiles html-taglib producing XHTML

2003-09-09 Thread Adam Hardy
Thanks David. Sorry, didn't see it and it had never been talked about in the archives. May I suggest though that it be added to the API docs for html:html at http://jakarta.apache.org/struts/userGuide/struts-html.html#html Thanks Adam On 09/09/2003 06:26 PM David Graham wrote: Add html:xhtml/

Re: Tiles html-taglib producing XHTML

2003-09-09 Thread Adam Hardy
Good tip. Thanks. On 09/09/2003 06:20 PM Matt Raible wrote: You have to set each tile to be XHTML - here's how I do it: Since every page probably needs taglibs, I have a common/taglibs.jsp file. In this page, I have my taglib declarations and the following line at the end: html:xhtml / Then

RE: Tiles and taglibs

2003-09-09 Thread Yann Lebreton
I don't see you the tile scope to the page scope. - menu.jsp !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN %@ taglib uri=/psa-taglib.tld prefix=psa % tiles:importAttribute / psa:menu pageName=%= request.getParameter(pageName) %/ -Original Message- From: Robert

RE: Tiles problem?

2003-09-09 Thread Yann Lebreton
you could pass it along with the tile. tiles:insert attribute=billingAddress tiles:put name=billing beanName=.../ /tiles:insert -Original Message- From: Roland Berger [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 8:22 AM To: Struts Subject: Tiles problem? Hi

Re: using html:link taglibs to call an ActionForm bean from a link

2003-09-09 Thread Adam Hardy
Hi Mehran, if you use html-el taglib and the JSTL taglibs, you can set a variable from the formbean like this, where sectionForm is the name of my formbean in struts-config.xml: c:set value=${sectionForm.url} var=url/ c:set value=${sectionForm.title} var=title/ and then reference it with EL in

Re: Tiles html-taglib producing XHTML

2003-09-09 Thread David Graham
--- Adam Hardy [EMAIL PROTECTED] wrote: Thanks David. Sorry, didn't see it and it had never been talked about in the archives. May I suggest though that it be added to the API docs for html:html at http://jakarta.apache.org/struts/userGuide/struts-html.html#html That would be helpful.

Recall: Tiles problem?

2003-09-09 Thread Yann Lebreton
Yann Lebreton would like to recall the message, Tiles problem?.

RE: Tiles problem?

2003-09-09 Thread Yann Lebreton
you could pass it along with the tile. tiles:insert attribute=billingAddress tiles:put name=billing beanName=.../ /tiles:insert or re-access it from whichever scope it was put in. Yann -Original Message- From: Roland Berger [mailto:[EMAIL PROTECTED] Sent: Monday, September

[resend] indexed properties without setFoo(foo, index)

2003-09-09 Thread Michael Muller
The following article seems to differ in approach from how the posters to this forum implement indexed properties in struts: http://www.developer.com/java/other/article.php/2233591 In this article, the author uses a DynaActionForm which automatically builds an array of normal beans. By normal, I

RE: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Slattery, Tim - BLS
i.e. Do I need to put ContactForm instead of 'contacts' for path... action path=/contacts type=com.db.gcp.lemweb.blotter.servlets.ContactAction name=contactForm input=/viewcontactlist.jsp scope=request /action No, contacts

Re: Eclipse for Struts with apt-get

2003-09-09 Thread Nate Drake
Try http://www.jpackage.org/ On Tue, 2003-09-09 at 12:48, [EMAIL PROTECTED] wrote: Hi All I am using Redhat8.0 and struts. I would like use eclipse 2.1 for that purpose. Does any one know if there is a way i can get it thro apt-get.Please let me know Thank you --Mohan

Re: [resend] indexed properties without setFoo(foo, index)

2003-09-09 Thread Mark Lowe
I don't know if you can change the size if you set in ion the form property tag. If you dont know if you'll have 12 then leave that out.. Also scope the form bean to session if you're changing the size like this. If you're not changing the size then it should work as things stand. Cheers Mark

RE: Force initialization of RequestProcessor?

2003-09-09 Thread Yuan, Saul (TOR-ML)
Do you have: controller processorClass=your RequestProcessor class / defined in struts-config.xml ? I think you need to define this for your customized RequestProcessor to be called by Struts. Saul -Original Message- From: Wes Kubo [mailto:[EMAIL PROTECTED] Sent: Tuesday,

  1   2   >