[OT] XForms

2003-08-01 Thread Andrew Hill
Currently the app Im working on is using an xhtml front end (with struts of course) but Ive been asked to look at XForms with an eye to migrating to it in the future (and probably throwing in a migration to JSF while Im there). Currently the XForms spec is only a candidate release with afaik very

RE: Direct ValueObject creation rather than ActionForm.

2003-08-01 Thread Viral_Thakkar
Yes, I agree that it is not good programming to replace the ActionForm with ValueObject. But let me know your view about having both ActionForm and ValueObject and use some kind of mapping to get the ValueObject instance from the ActionForm instance. Example is available at

RE: Direct ValueObject creation rather than ActionForm.

2003-08-01 Thread Kalra, Ashwani
I just went thrugh its main features. One major drawback is that it doesnt support primitives. You can write your own fn in the form class to convert it into VO/DTO. Cheers Ashwani Kalra http://www.geocities.com/ashwani_kalra/ -Original Message- From: Viral_Thakkar [mailto:[EMAIL

RE: How to rename file in FormFile in struts 1.1 final release

2003-08-01 Thread Andrew Hill
Yeh. In my case I wasnt event going that far, just jumping from a beta to a final of 1.1 What bugs me though is that the method is still there and not deprecated. The first I knew that there was a problem was when QA defected me for the UnsupportedOperationException that gets thrown :-(

Re: Logical Server Name

2003-08-01 Thread Chirag Mehta
I cannot do that though because the port and the physical server is resolved automatically from the interface file. Any more suggestions? Thanks for help anyway Chirag Jimmy Emmanual wrote: try adding the port # and a database name. set-property property=url

RE: Dynamic Tree Menus --- HELP!!!

2003-08-01 Thread Pat Quinn
Thanks for you effort in resolving this issue its working perfectly now. It might be a good idea to include the changes i've made to the DisplayMenuTag class i.e. in the doStartTag() method after we fetch the menu from the repository we could add the following: /* If no menu was found

Re: [OT] XForms

2003-08-01 Thread Simon Kelly
I'm just starting to use it myself. And it's a bit of a pain in the RS really. I think that it will become a standard next year, as for use within static sites it's an extremely easy thing to use. (The wizard can knock up a form page in about 2 minutes, and saves a boat load of typing) However,

Strange Problem saving and retrieving file

2003-08-01 Thread Samuel . Opoku-Boadu
In my struts application I save a text file in an oracle database. Whenever I retrieve the file from the database, it is always 8kb smaller. Has any one of you ever experienced this problem? Sam - To unsubscribe, e-mail: [EMAIL

RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
Will this still validate the request parameters when there are actually request parameters present? -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:04 PM To: 'Struts Users Mailing List' Subject: RE: DynaValidatorForm question Set validate

RE: Strange Problem saving and retrieving file

2003-08-01 Thread Jones, Marty B.
Are you using a input stream to load the file in the database? If so make sure that you flush the stream and close it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:59 AM To: [EMAIL PROTECTED] Subject: Strange Problem saving and

Using a key as an argument to bean:message

2003-08-01 Thread Paul McCulloch
Hi, Has anyone got any ideas on how to use a message key as an argument in a bean:message call. e.g. bean:message key=field.lookupbutton arg0Key=customer.label/ At the moment I am using a scriptlet to access the message resources and assign the message for the argument to a page variable. e.g.

simple - import

2003-08-01 Thread Mike Whittaker
How do you get Constants (or anything none scoped ie app/sess/req) into a jsp for use in EL I can do %@ page import=com.blah.Const % %= Const.MY_CONST % but not c:out value=${Const.MY_CONST}/ This probably demonstrates a fundamental none understanding! TIA -- Mike W

RE: simple - import

2003-08-01 Thread Alex Shneyderman
c:set var=yourVar%= Const.MY_CONST %/c:set -Original Message- From: Mike Whittaker [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 7:33 AM To: Struts List Subject: simple - import How do you get Constants (or anything none scoped ie app/sess/req) into a jsp for use in

Re: Using a key as an argument to bean:message

2003-08-01 Thread Nagendra Kumar O V S
hi, u can't send the key as the argument to the bean:message, though u might want to consider this bean:define id="realValue" bean:message key="customer.label" //bean:define bean:message key="field.lookupbutton" arg0="%=realLabel%"/--

RE: simple - import

2003-08-01 Thread Mike Whittaker
c:set var=yourVar%= Const.MY_CONST %/c:set Good grief is this the only way? a/ isn't the aim to do without scriptlets/expressions? b/ all the data exists, server side in the app, why do I have to jump through hoops, copying CONSTANTS over to another variable??? :-( -- Mike W

RE: Using a key as an argument to bean:message

2003-08-01 Thread Paul McCulloch
Thansk - that's ceryainly a lot neater. I keep forgetting that lots of tags can have stuff defined in their body - I always seem to look at example which have no body. cheers, Paul -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 12:47 To:

RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
I think that I may be missing something here. When using struts, how do you load say a html form (using a jsp file) to the user initially without having the Action class actually being processed and then being forwarded to the view? I defintely want to use the Validator class but I only want it

Re: OT - Struts w/EJB

2003-08-01 Thread James Mitchell
Not sure. I'm in this for the money ;) -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 678-910-8017 AIM:jmitchtx - Original Message - From: message message [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 01, 2003 1:48 AM Subject: Re:

Creating JSP's with struts.

2003-08-01 Thread Carlos Urtasun
Hi all. We are a team that develop an online application using struts. Inside the team exists two groups: the software developers and the interface designers. Our designers needs to give expression to the interface accross the JSP's and we want use a WYSIWYG tool. Can you give me a clue or

RE: Using a key as an argument to bean:message

2003-08-01 Thread Krishnakumar N
If you can use jstl, you can also try fmt:message key=field.lookupbutton fmt:param fmt:message key=customer.label/ /fmt:param /fmt:message Cheers, Krishna -Original Message-

RE: Using a key as an argument to bean:message

2003-08-01 Thread Paul McCulloch
Having a look at JSTL is on my todo list:-) -Original Message- From: Krishnakumar N [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 13:10 To: Struts Users Mailing List Subject: RE: Using a key as an argument to bean:message If you can use jstl, you can also try

Re: simple - import

2003-08-01 Thread James Mitchell
Easy way: You can always use the unstandard tags. Works great for me: un:bind type=com.company.project.Const field=SOME_CONST var=yourVar/ c:if test=${$yourVar == 'some value'} c:out value=${yourVar}/ /c:if Not so easy way: --- (by Kris Schneider on taglib-users) Put

Formbean Scope

2003-08-01 Thread Goldy J
Hello, I have JSP1 from which I go to JSP2. The JSP2 should come prepopulated with some values that I set in action class associated with JSP1. I am using the same formbean for both JSP 1 and JSP 2. I set the value that I need in JSP2 in Action class1 and I can see they are getting set in the

AW: Strange Problem saving and retrieving file

2003-08-01 Thread Samuel . Opoku-Boadu
Thanks. I have solved the problem. I was calling a BufferReaeder.readLine() method earlier before loading the InputStream in the database. Cheers!!! -Ursprungliche Nachricht- Von: Jones, Marty B. [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 1. August 2003 13:10 An: Struts Users Mailing

Re: OT - Struts w/EJB

2003-08-01 Thread Alen Ribic
If one is to start another OSS project, what would it be? ;) I think there isn't one idea that hasn't been thought of and put into open source now days. But like James, I'm in it for the money too. What can I say, Love programming and of course $. --Alen - Original Message - From:

RE: DynaValidatorForm question

2003-08-01 Thread Mainguy, Mike
My gut reaction would be to use a depends=required on both fields. This should give you the behavior you desire. -Original Message- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 5:37 PM To: [EMAIL PROTECTED] Subject: DynaValidatorForm question I have a

RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
I currently have that setting that you mentioned. That is exactly the problem that I am seeing. If a user goes directly to the /login url. The LoginAction is being instatiated and the validator trys to validate parameters that the user never had a chance to enter. -Original Message-

Re: Formbean Scope

2003-08-01 Thread David Chelimsky
Try overriding reset() such that it doesn't do anything. Otherwise, the reset() method in ActionForm will set all primitives to their defaults and all objects to null. - Original Message - From: Goldy J [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 01, 2003 7:20 AM

RE: DynaValidatorForm question

2003-08-01 Thread Alex Shneyderman
I think the easiest way is to actually set validate to false on your action and do it manually first thing in your execute: // check for null values if there are just display the page otherwise ActionErrors errors = yourForm.validate (...); If (!errors.isEmpty ()) { return input mapping } //

RE: [OT] XForms

2003-08-01 Thread Mike Jasnowski
Is XForms really going to be the next stage in the evolution of forms on the browser or is it just some hyped up hot air thats really a wild goose chase? IMHO it's hard to say, XForms has been perculating for along time. I think if you speak to some vendors (Like Novell) they think so. But in

RE: DynaValidatorForm question

2003-08-01 Thread Jones, Marty B.
That is what I figured. Thanks for your help. -Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 8:01 AM To: 'Struts Users Mailing List' Subject: RE: DynaValidatorForm question I think the easiest way is to actually set validate to false

Re: simple - import

2003-08-01 Thread David Chelimsky
JSTL won't handle static methods. If you add a method to your Const class that returns a Const instance (ideally a singleton so you don't keep creating these), you can keep a Const on your ActionForm bean and set it in your ActionForm. Then your JSP would look like this: c:out

Re: simple - import

2003-08-01 Thread David Chelimsky
Alternatively, you could load this into session or application scopes and do this: c:out value=${sessionScope.constants.myVal} or c:out value=${applicationScope.constants.myVal} - Original Message - From: David Chelimsky [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED];

Re: Formbean Scope

2003-08-01 Thread Goldy J
Thanks a lot David for the prompt reply . Iam actually not using reset method. I have couple of text fields and combobox in JSP2 which I need to prepopulate from JSP1. Do you still recommend using reset or there is any other way. If you can refer to any working example it would be great.

Re: Formbean Scope

2003-08-01 Thread David Chelimsky
Even if you don't write a reset method, the ActionForm's reset method is called on every request. Your only option (that I'm aware of) is to override it: public void reset(ActionMapping mapping, HttpServletRequest request) {} This will cause reset to do nothing and all your values will remain

RE: validwhen Alternative

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Thanks for the response Imran. plea-for-help I'd rather not do a custom validator if it's not necessary, but if nobody else reponds I might have to bite the bullet and create one... I'm surprised I haven't gotten any other responses, this seems like something that many other people would have run

RE: simple - import

2003-08-01 Thread Mike Whittaker
All these ideas rely on the use of a single class/interface for declaring constants. I don't like this workaround to what SDK1.5 will solve. My constants are in the right places, the classes to which they logically belong. I suppose with 1.5 I will be importing these constants to one class which

white space on jsp compile

2003-08-01 Thread Brown, Melonie S. - Contractor
Mike, The whitespace and formatting really bugged me as well, so I wrote a servlet filter to run the generated html through the Java port of Html tidy (http://sourceforge.net/projects/jtidy/) to format it and clean up the whitespace. [It does have the side effect of not displaying your page,

[OT] Approaches to URL Parameter masking in Struts

2003-08-01 Thread John Cavacas
After reading a somewhat interesting post by Russell Beattie in which he mentions the desire to separate the URL that a user sees from the actual logic and data that it represents, it got me thinking about the approaches that one can take in Struts to achieve something similar. I don't think the

RE: white space on jsp compile

2003-08-01 Thread Alex Shneyderman
What really would be cool if Jasper would have a setting to get rid of those extra whitespaces, but after your first post I looked up jasper's config settings and there does not seem to be one, or maybe there is any Tomcat experts here? I am wondering if other containers have this feature

RE: Formbean Scope

2003-08-01 Thread Paul McCulloch
The implementation of reset in ActionForm is empty. Overriding reset in your descendants to do nothing will have no effect. Paul -Original Message- From: David Chelimsky [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 14:34 To: Struts Users Mailing List Subject: Re: Formbean Scope Even

DynaValidatorBean Error Question

2003-08-01 Thread Jones, Marty B.
I am getting the following error when I try to set the name and type attribute of the html:form tag. I have included a snippet of my login.jsp file and my struts-config.xml file The main reason I am trying to set them is because if I don't set them and let the form tag configure itself with the

HELP ME: my index.jsp is a blank page

2003-08-01 Thread Laurent MARQUEZ
Hi, I m deploying xpetstore sourceforge project on bea weblogic 7.0 But in my client browser threre is a blank page. WHY? Help Me!!! The log: Starting WebLogic Server... 1 ao¹t 03 16:02:53 CEST Notice Management 140005 Loading configuration C:\bea\user_projects\xpetstore\.\config.xml 1 ao¹t

RE: DynaValidatorForm question

2003-08-01 Thread Yansheng Lin
You can forward to a .jsp page directly, i.e., without using an action forward in struts-config. That way the action class won't be called initially. Then by setting the form name and form field the same as the FormBean, you can still submit to whichever action that handles your request.

Downloading files using JSP

2003-08-01 Thread Jagannayakam
How to download attachments using JSPs Regards, Jagan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Logical Server Name (Sybase database)

2003-08-01 Thread OFlaherty, Colm
Chirag, I may be coming in late on this one, but heres what I know on the issue u're experiencing.. When u use most native (or ODBC) Sybase drivers, they go through the Sybase Open Client (CTLIB or DBLIB), doing a translation of the logical server name to the physical server name (and port

RE: Urgent: Editor for JSP in Eclipse

2003-08-01 Thread Ashish Kulkarni
Hi, i was looking at http://black-sun.sourceforge.net/ which is the editor for jsp??? Ashish --- [EMAIL PROTECTED] wrote: Thanx a lot!!! works great for me --mohan I am using the blacksun plugin. It does have a find start/end tag feature. http://black-sun.sourceforge.net/

Re: Formbean Scope

2003-08-01 Thread David Chelimsky
Goldy, Paul is correct (and corrected I stand...). Paul - do you have a recommendation for Goldy's situation? - Original Message - From: Paul McCulloch [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:07 AM Subject: RE: Formbean Scope

RE: Formbean Scope

2003-08-01 Thread Paul McCulloch
Afraid not - I'm a newbie who happened to look at the source for ActionForm yesterday. Sorry. -Original Message- From: David Chelimsky [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 15:54 To: Struts Users Mailing List Subject: Re: Formbean Scope Goldy, Paul is correct (and corrected I

Re: Logical Server Name (Sybase database)

2003-08-01 Thread Chirag Mehta
I think so mate. Thanks for the help! Chirag OFlaherty, Colm wrote: Chirag, I may be coming in late on this one, but heres what I know on the issue u're experiencing.. When u use most native (or ODBC) Sybase drivers, they go through the Sybase Open Client (CTLIB or DBLIB), doing a

RE: Struts 1.1 in Websphere 4.01 on plugin with OS/390

2003-08-01 Thread Gramann, Cindy
I've been able to get Struts working with the Websphere 4.01 plugin on z/OS (recently upgraded from OS/390). We are using JSP 1.1 and Servlet 2.2. The only changes that I needed to make after running the Struts example .war file through wartowebapp were to extract the dtd's under

RE: Struts 1.1 in Websphere 4.01 on plugin with OS/390

2003-08-01 Thread yau-pang . lee
Thks for the info Cindy, I'm trying to check with the admin to see if it's reading the webapp-name.webapp file to initialize itself on startup with our admin(The joy of working with/through an admin). And I'll try extracting the DTD files like you said just in case(as soon as the admin let

javax.servlet.ServletException: BeanUtils.populate

2003-08-01 Thread Yan, Charlene
All, I have been strugling with this for a while. I looked at the archive and found similar questions but no answers there. I have a form that has two fields - a bean and a String field. My jsp displays the two fields. I was able to get to the JSP by calling ssoXref.do?operation=showSsoXref.

RE: Downloading files using JSP

2003-08-01 Thread NYIMI Jose (BMB)
Just provide a link the document, the browser will try to open it, if it can not it will pop up a message to download it. José. -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:33 PM To: Struts Users Mailing List (E-mail) Subject:

RE: Downloading files using JSP

2003-08-01 Thread Yee, Richard K,,DMDCWEST
What do you mean by 'attachment'? Are you talking about an email attachment or something else? -R -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 7:33 AM To: Struts Users Mailing List (E-mail) Subject: Downloading files using JSP How to

Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
I have the following tag declaration in a jsp file: html:form name=loginForm action=/login focus=username method=POST type=com.dailyaccess.actions.LoginBean The jsp compiles correct and views correctly. The issue that I am having is that the action attribute in the html form that is created is

Re: Html Form Tag Question

2003-08-01 Thread Michael Ruppin
I don't know if it was resolved, but this thread should be of interest to you: http://marc.theaimsgroup.com/?l=struts-userm=105943092932593w=2 HTH m --- Jones, Marty B. [EMAIL PROTECTED] wrote: I have the following tag declaration in a jsp file: html:form name=loginForm action=/login

Re: Struts w/EJB

2003-08-01 Thread Erik Price
Martin Naskovski wrote: Hello all. Is there an app that demonstrates the use of Struts EJB as a persistence layer? I checked out Struts-Resume from Matt Raible, but it uses Hibernate... Is there anything available w/EJB's? Thanks. http://xpetstore.sf.net/ There are two implementations of

ActionForm Design Question

2003-08-01 Thread Caroline Jen
Hi, I am building a web site. The primary functions of this site are for authors to submit their research papers. The research papers will go through a screening process (screened by peers in the field). Visiors can view the published articles online. Authors and peers are the registered users

RE: Html Form Tag Question

2003-08-01 Thread Canning, Chuck
Hey, I had the same syptoms and the problem was an incorrect servlet-mapping in my web.xml. We had /*.do instead of *.do. because of that, the RequestUtils.getActionMappingURL() would not parse the action correctly. YOu might want to start looking there. Chuck -Original Message- From:

Re: OT - Struts w/EJB

2003-08-01 Thread Erik Price
message message wrote: How come there is so much free ware available especially from sourceforge ? The whole point of sourceforge is to foster the development of open source/free software by providing web hosting, CVS repositories, mailing lists, and most other needs traditionally used by

RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Thanks for the info. I will take a look. -Original Message- From: Canning, Chuck [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:49 AM To: 'Struts Users Mailing List' Subject: RE: Html Form Tag Question Hey, I had the same syptoms and the problem was an incorrect

RE: Html Form Tag Question

2003-08-01 Thread Bailey, Shane C.
Take out the type and name attributes out of the form tag. They should already be mapped in the struts-config and you don't need them in the JSP. -Original Message- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 11:34 AM To: [EMAIL PROTECTED] Subject:

Re: Struts w/EJB

2003-08-01 Thread Vic Cekvenich
Maybe EJB should be used with JSF (and blue prints http://java.sun.com/blueprints/code/index.html) instead of Struts. Struts is more like this http://ibatis.com/jpetstore/jpetstore.html. .V Erik Price wrote: Martin Naskovski wrote: Hello all. Is there an app that demonstrates the use of

RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Thanks Michael. -Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:40 AM To: Struts Users Mailing List Subject: Re: Html Form Tag Question I don't know if it was resolved, but this thread should be of interest to you:

Date format

2003-08-01 Thread Silverio Wagner Silva(Secorp)
A beginner question: When my date field is shown in my jsp it appears in a different way, although my Locale object is correctly set. Anyone knows how to solve this problem? Thanks. - To unsubscribe, e-mail: [EMAIL

RE: Html Form Tag Question

2003-08-01 Thread Jones, Marty B.
Chuck, Sure enough, that was it. The action attribute is now being set as it should. Thanks for all your help. -Original Message- From: Canning, Chuck [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:49 AM To: 'Struts Users Mailing List' Subject: RE: Html Form Tag Question

RE: Date format

2003-08-01 Thread Tamia Ramírez
with type is your date, java.sql or java.util? -Original Message- From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:27 AM To: 'Struts Users Mailing List' Subject: Date format A beginner question: When my date field is shown in my jsp it

RES: Date format

2003-08-01 Thread Silverio Wagner Silva(Secorp)
java.util.Date -Mensagem original- De: Tamia Ramírez [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 1 de agosto de 2003 13:33 Para: Struts Users Mailing List Assunto: RE: Date format with type is your date, java.sql or java.util? -Original Message- From: Silverio Wagner

NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Hey everyone, I'm working on a custom validator right now, and all the validation method does is return false. That means it fails that validation, right? Anyway, when I submit the form, I get a NoSuchMethod error. What would cause this? All of my regular validations work, just not this custom

question about data formating using display taglib

2003-08-01 Thread victor gusz
Hi, Has anyone used display taglib from the following address: http://edhill.its.uiowa.edu/ It seems this tag does not have data-formating ability to align titles or data. Does anyone konw a workaround about this? regards, __ Do you Yahoo!? Yahoo! SiteBuilder

RE: Date format

2003-08-01 Thread Tamia Ramírez
THIS CODE BECOME A JAVA.UTIL.DATE WITH FORMAT: dd/MM/ to a date MMM dd, : SimpleDateFormat dateFormatter = new SimpleDateFormat(MMM dd, ); String new_Date = dateFormatter.format(myDate); reservacion.setFechaSalString(new_Date); you may need to import java.text first. I hope it can

Conversion to 1.1 troubles

2003-08-01 Thread Slattery, Tim - BLS
I'm trying to swich from version 1.0.2 to version 1.1 of Struts. I've downloaded the new version and replaced the *.tld files in my web-inf directory, and the *.jar files in web-inf\lib. When I try to run my system, I get a strange error. This system uses bean:define... tags, which worked fine

Using Struts Validator on Map-backed ActionForms

2003-08-01 Thread Cordingley, Charles
Hi, I am trying to use the Struts Validator to generate Javascript validation on a Map-backed action form, but I keep getting type is null or not an object javascript error (I am using Struts 1.1). Non map-backed properties on the form work fine. In the JSP I am creating text boxes using:

Re: Conversion to 1.1 troubles

2003-08-01 Thread Craig R. McClanahan
On Fri, 1 Aug 2003, Slattery, Tim - BLS wrote: Date: Fri, 1 Aug 2003 13:13:56 -0400 From: Slattery, Tim - BLS [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts User List ([EMAIL PROTECTED]) [EMAIL PROTECTED] Subject: Conversion to 1.1 troubles I'm

RE: Using Struts Validator on Map-backed ActionForms

2003-08-01 Thread Yansheng Lin
I don't think this is legal, i.e., you can not have a bracket inside of property attribute: field property=volume() You form should have the getter method for getVolume(). -Original Message- From: Cordingley, Charles [mailto:[EMAIL PROTECTED] Sent: August 1, 2003 11:24 AM

nested forms

2003-08-01 Thread imran ali
HI All I have a form which contains an array of other forms along with other data. I am putting this form in session. when I submit I am writing data to database and then removing the form from session. and going to another page. Now if user hit on BACK button of browser, It takes him

RE: question about data formating using display taglib

2003-08-01 Thread Yansheng Lin
Yes it does. style type=text/css .tableRowHeader { align:center; } .tableRowOdd { align:center; } .tableRowEven { align:center; } ... /style -Original Message- From: victor gusz [mailto:[EMAIL PROTECTED] Sent: August 1, 2003

RE: Conversion to 1.1 troubles

2003-08-01 Thread Slattery, Tim - BLS
I'm trying to swich from version 1.0.2 to version 1.1 of Struts. I've downloaded the new version and replaced the *.tld files in my web-inf directory, and the *.jar files in web-inf\lib. When I try to run my system, I get a strange error. This system uses bean:define... tags, which worked

Calling a tiles definition from a jsp?

2003-08-01 Thread David Erickson
We've got all our tiles definitions in tiles-def.xml in the web-inf folder, and we were wondering if it is possible to somehow call a definition and load it from a jsp? For example if a user comes to our site thats not logged in we wanted to direct him to a jsp that uses one of our tiles def's

RE: question about data formating using display taglib

2003-08-01 Thread victor gusz
Thanks, Does it? How do you use this stylesheet in its display:table display:column tags? The following stylesheet is used in its examples' html pages, its not in its jsp source, just because its tags cannot format data? Maybe I am just not clear about this, please clarify. regards, Victor

another question display taglib: its requestURI

2003-08-01 Thread victor gusz
Hi, Has anyone used display taglib from the following address: http://edhill.its.uiowa.edu/ How do you specify the requestURI parameter of display:table if I want to display multiple pages if number of results is huge? The taglib's examples seem to link results pages to different pages,

RE: question about data formating using display taglib

2003-08-01 Thread Yansheng Lin
It's the default classname for the rows and columns, etc. if you take a look at the source code. Presentation in html should be separated from the content, that's what css is all about:). Try CSS, you will discover the power of it. Use the style anywhere you want, external, internal, as long

RE: Calling a tiles definition from a jsp?

2003-08-01 Thread Mike Jasnowski
You could put the tile-def on the JSP -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 2:11 PM To: Struts Mailing List Subject: Calling a tiles definition from a jsp? We've got all our tiles definitions in tiles-def.xml in the web-inf

RE: JSTL and Struts

2003-08-01 Thread Stephen Brown
Since you are relying on the browser anyways, I'd use javascript for this. The numbers would stay formatted as you change them then. As a caveat, you really need to check the values on the server side afterwards. Steve -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED]

RE: question about data formating using display taglib

2003-08-01 Thread victor gusz
Thanks, You are right. But it seems it only renders internal stylesheets. regards, --- Yansheng Lin [EMAIL PROTECTED] wrote: It's the default classname for the rows and columns, etc. if you take a look at the source code. Presentation in html should be separated from the content,

2 different submits on a single JSP - how?

2003-08-01 Thread yan
Not sure how best to set this up and indeed, if it is possible so any advice would be appreciated. I have an ActionForm called 'RegisterForm' that allows a new user to enter their details (name, email, school name and school address) or, an existing registered user to edit these fields.

Re: ActionForm Design Question

2003-08-01 Thread Jing Zhou
- Original Message - From: Caroline Jen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:42 AM Subject: ActionForm Design Question Hi, I am building a web site. The primary functions of this site are for authors to submit their research papers. The research

RE: 2 different submits on a single JSP - how?

2003-08-01 Thread Marcos Oliva
Yan, Why not use a windowpop up javascript for your school search and then set the school var on the parent page then submit the form marcos -Original Message- From: yan [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: 2 different

RE: 2 different submits on a single JSP - how?

2003-08-01 Thread James Childers
Use JavaScript to change the submit action based upon the criteria you listed: function doSubmit() { if (someCondition) { document.yourForm.action = 'html:rewrite action=/actionNumeroUno /'; } else { document.yourForm.action = 'html:rewrite

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Well, so much for the helpfulness of this list. I politely asked a few completely reasonable questions in the past few days, and they were questions that could easily be of interest to others as well. They were also pretty simple issues that I'm sure other people have encountered or would have

RE: 2 different submits on a single JSP - how?

2003-08-01 Thread Tamia Ramírez
Give a different value to every submit... in your form make just one submit and ask for its value, so you can know with one they chosse: input type=submit value=Login input type=submit value=request -Original Message- From: yan [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003

Re: 2 different submits on a single JSP - how?

2003-08-01 Thread Gregory F. March
On Aug 1, 2003, yan [EMAIL PROTECTED] wrote: |My query is this: I am aware that I have 2 html: form action =someAction |'s, one for the 'Find School' submit button and one for the 'Register |Me/Update Details' submit button. The way I did this was to use a LookupDispatchAction and have both

RE: NoSuchMethodException

2003-08-01 Thread Yee, Richard K,,DMDCWEST
How about supplying more information like the name of the method that is not being found? Regards, Richard -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 12:00 PM To: 'Struts Users Mailing List' Subject: RE:

RE: NoSuchMethodException

2003-08-01 Thread Kamholz, Keith (corp-staff) USX
Hey, Thanks a bunch for the reply. It's the validateRange method that's not being found, the one responsible for doing the validation. Has anyone else run into anything like this while trying to do custom validation? - Keith -Original Message- From: Yee, Richard K,,DMDCWEST

RE: NoSuchMethodException

2003-08-01 Thread Alex Shneyderman
Just a quick guess your paramaters are probably messed up? This is what you have in your descriptor java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field,

RE: NoSuchMethodException

2003-08-01 Thread Yee, Richard K,,DMDCWEST
Keith, Yes, I think you are missing the javax.servlet.ServletContext in your method signature Or your methodParams has an extra parameter. -Richard -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 12:07 PM To: 'Struts

RE: Please Help With Simple Tiles Problem

2003-08-01 Thread Terry Brick
Thanks for your response David. Correct me if I'm wrong, but isn't this exactly what I had in my example? Maybe I'm just not grasping something... It looks to me like I'm still having to add two definition blocks for each form I want to add. Under your form_page definition you point to form1

RE: NoSuchMethodException

2003-08-01 Thread Yansheng Lin
I can see there are several issues here. First I think you might want to supply the ServletContext as well. Second, you want to add the error to Errors collection by adding: errors.add(field.getKey(), ValidatorUtil.getActionError(servletContext, request, va, field)); before the return

RE: Date format

2003-08-01 Thread Daniel H. F. e Silva
Hi all, Well, i recommend using JSTL tag formatNumber with type='currency'. You can do this way: %@ taglib uri=http://java.sun.com/jstl/fmt; prefix=fmt % fmt:setLocale value=pt_BR/ fmt:formatNumber value=${your_property} type=currency/ It worked for me. Regards, Daniel Silva ---

  1   2   >