AW: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-23 Thread Roland Berger
Hi all If I'm right the initial question of Andrej was also how to do type conversion between Value Objects and Action Forms (i.e property type in VO is Date but in AF it is of type String). I don't have an elegant answer to this but would also be interested to get this question answered. Not

RE: Design question - Action Form vs Business Delegates/Value Objects

2001-11-23 Thread Rey Francois
I've had the same problem as you describe and like yourself have created a mapper framework, see http://husted.com/struts/resources/mapper.zip. It can handle validation, conversion and transfer of data, all this based on XML configuration. The framework is not dependent on Struts, but can easily

Action does not get executed

2001-11-23 Thread Abhishek Srivastava
Hello All, I have a menu, in which I put the a hyperlink to a jsp. When this jsp is displayed, some of the fields should have data pre-populated in it. This data which is used to pre-populate the form is fetched from ejbs. Now, I have written a struts Form class and a struts Action class and

Re: dynamic images

2001-11-23 Thread Sean Owen
I think you will need to do this: html:img src=%=card.getImageLink()% ... As far as I know you can't nest tags like this. If someone has a better way I'd like to see it! Sean - Original Message - From: Henrick Chua [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL

Re: Action does not get executed

2001-11-23 Thread Gitanjali_Singh
hi, To prepopulate the data,u need to call the Action class first,which will get the data from EJB , and redirect to the jsp.This jsp will read the values from bean and show them.For doing this,in struts-config.xml, you shouldn't use input attribute of the action tag,becoz first Action class

Action and Jsp / passing Parameters

2001-11-23 Thread Mohammed
Hello everybody, In my web application I decided not to use frames and so I am using a table in a jsp file. my question is as follow: in the jsp file I want to know which action forwarded to this jsp file so that I will accordingly run the right code? Is der a way I could pass a Parameter from

Re: Action and Jsp / passing Parameters

2001-11-23 Thread Jin Bal
In you action class you can set an object into the request using request.setAttribute(). This object could be of a generic type that you could examine in the jsp using a jsp:usebean tag to extract the object from the request. The action class always forwards the request object it has back to

AW: Design question - Action Form vs Business Delegates/Value Objects

2001-11-23 Thread Roland Berger
Hi Francois Will yor mapper framework become a part of jakarta commons? What are the plans? When should I use David Winterfeld's validation framework and when yours? Can they work in parallel? TIA Roland -Ursprüngliche Nachricht- Von: Rey Francois [mailto:[EMAIL PROTECTED]] Gesendet:

RE: Design question - Action Form vs Business Delegates/Value Objects

2001-11-23 Thread Rey Francois
There is no plan to have it within the Jakarta commons, although it wouldn't be a bad thing. The mapper framework offers the same functionality as David's validation framework, except for the javascript generation. Having them work in parallel is definitely possible, however you'll have two

Re: How to remove/reset Request Parameters in action?? - is thispossible??

2001-11-23 Thread Andras Balogh
Hi, I don't know if is the best solution but you can specify redirect=true forward name=success path=/EventDisplay.do redirect=true/ Andras. On Fri, 2001-11-23 at 01:24, Greg Callaghan wrote: Hi, Is it possible to clear request parameters. Either remove them, or at least reset them

RE: design question

2001-11-23 Thread Maris Orbidans
It is quite tricky to answer your question as you did not mention additional info i.e best practices is also depend on the application size ( how much client it will cater and for what purpose ) anyway this is what I hope you'll get something from my assumption :- 1) if the number of client is

Basic Question About custom Tags

2001-11-23 Thread Alvin Kutttikkat Antony
Hello All, What are the steps to create a Application specific custom Tag? Plz help! Thanks, Alvin alvin kuttikkat antony Internet und Virtuelle Hochshule Directory Universität München Leopoldstr .3 80802 München Germany Office Tel + 49.89.21025979 Office Fax + 49.89.21025980

RE: Action does not get executed

2001-11-23 Thread Tom Klaasen (TeleRelay)
Point the hyperlink to the action specified in struts-config.xml (suffixed with .do). This will call the action. so your hyperlink will have href=/myAction.do and struts-config.xml will contain something like action path=/myAction class=blah ... forward name=/myJsp.jsp/ /action

RE: Basic Question About custom Tags

2001-11-23 Thread Tom Klaasen (TeleRelay)
(-) create a tld (-) put the tld in the classpath (-) create a class for the tag (-) put the tag definition in your jsp (-) compile and run have a look at (e.g.) struts-html.tld to get a grasp on this hth, tomK -Original Message- From: Alvin Kutttikkat Antony [mailto:[EMAIL

RE: Action does not get executed

2001-11-23 Thread Abhishek Srivastava
Thank you Gitangali for your reply. I removed the input attribute from the action element. My menu points towards my jsp. html:link href='/jsp/applist.jsp'applications list/html:link if I click on it, the my action does not get executed. and the no values are prefilled when the jsp comes up.

Re: dynamic images

2001-11-23 Thread Erik Hatcher
I'd recommend a custom tag for URL's that get pulled from the DB for a couple of reasons - it probably won't be long before you'll want to offload them from serving directly from the DB, so the URL could switch, scriptlets are *bad* (in a Struts environment). You'll want to direct the URL to a

RE: Action does not get executed

2001-11-23 Thread Gitanjali_Singh
To remove the dummy jsp page,u need to point to the action class directly instead of the jsp page and on success of this action forward ur request to the jsp page. regards, gitanjali. Abhishek Srivastava [EMAIL PROTECTED] on 11/23/2001 10:43:57 PM Please respond to Struts Users Mailing

Re: Request.setAttribute() and jsp

2001-11-23 Thread Viet Kevin
Check if in the forwards of your action you do not write a thing like this forward path=*** redirect=true/ Mohammed [EMAIL PROTECTED] wrote: Hello, in my action class I am setting in my request an object as follow: SourceBean sourcebean= new SourceBean(); sourcebean.setSource(

RE: Action does not get executed

2001-11-23 Thread Abhishek Srivastava
YAHHOOO IT WORKS!! Thank you Gitangali for your help. I really appreciate it. regards, Abhishek. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 23, 1999 6:04 PM To: [EMAIL PROTECTED] Subject: RE: Action does not get executed

Re: VAJ 3.5.3 and framework Struts -- PROBLEM

2001-11-23 Thread Danny Collins
The problem is that VAJ uses the wbapp file and the Struts framework uses the web.xml file. The funny thing is that they are the same file just in a slightly different format. I can't tell you why, I just know that's what's going on. So instead of altering ActionServlet, just make sure you have

Request.setAttribute() and jsp

2001-11-23 Thread Mohammed
Hello, in my action class I am setting in my request an object as follow: SourceBean sourcebean= new SourceBean(); sourcebean.setSource( Longon); request.setAttribute(source ,sourcebean); And in my jsp file try to get a refererence % SourceBean sourcebean =

RE: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-23 Thread Sobkowski, Andrej
Michelle, thanks, now I got it. The problem I see with the approach you describe is that it forces all the data conversions inside the ActionForm EmployeeVO // the following must be Date to make the VO a business object +getDateOfBirth:Date +setDateOfBirth(Date in):void EmployeeForm

RE: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-23 Thread Sobkowski, Andrej
Dimitri, Struts can handle automatic population via nested (a.property) and indexed (a[0].property) properties, you will not have to do it manually. With the example below (EmployeeForm and EmployeeVO), you can use your Struts Taglibs to point directly to the employeeVO variables (this will

Re: VAS 3.5.3 and framework Struts -- PROBLEM

2001-11-23 Thread Francois-Xavier Bonnet
What you need to do to have Struts work with VAJ 3.5.3 : 1) Get a parser that corresponds to the JAXP API and works with Struts, but does not conflict with the IBM XML4Java parser that the WTE requires. In order to do that : - Download JAXP 1.01 at http://java.sun.com/xml/archive.html - Unzip

VAS 3.5.3 and framework Struts -- PROBLEM

2001-11-23 Thread nicolas muller
Hi, I have a pb with VAS 3.5.3 and Struts... I try to do all the modifications found in the web site of IBM but it wasn't work... I don't understand the use of the file web.xml It seems that we only use the .webapp and not the web.xml is it right with the norm of VAS ? web.xml is only for

Re: Request.setAttribute() and jsp

2001-11-23 Thread Mohammed
No I am not setting the redirect attribute in the forward. Should I set this attribute to false or true? (I set it to true but it didn't work either). Mohammed - Original Message - From: Viet Kevin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November

RE: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-23 Thread Michelle Popovits
You're probably right. So far I have only used it for Strings and numbers for which no special mapping was required. In this case it was simple to implement. Michelle From: Sobkowski, Andrej [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Jakarta Struts (User)

RE: design question

2001-11-23 Thread Alexander Jesse
Hi, encapsulating client info into a system-state-bean call ClientInfo will make it easier to pass it eventually to a business-logic-class that needs access to the info. So I would recommend that. If the size is big, make it persistant and store just a key in the http-session, else store it

RE: Action does not get executed

2001-11-23 Thread Abhishek Srivastava
Ahh I am still missing it I tried to configure my menu the 2 ways but both gave errors 1. I put the class of the Action in the href html:link href='/my-app/WEB-INF/classes/com/abhi/html/apps/action/AppLi stAction.class'App list /html:linkbr/ Resutl is that the tomcat says that it

RE: Action does not get executed

2001-11-23 Thread Tom Klaasen (TeleRelay)
-Original Message- From: Abhishek Srivastava [mailto:[EMAIL PROTECTED]] Sent: vrijdag 23 november 2001 13:31 To: Struts-User (E-mail) Subject: RE: Action does not get executed Ahh I am still missing it ... 2. Put the Action (same as what I put in the action of the dummy

RE: Weblogic pains...

2001-11-23 Thread Alexander Jesse
Hi, has weblogic problems with the TLD being under WEB-INF? try moving the tld to a directory not underneath WEB-INF, update the jsp and retry regards Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 12:28 PM To: [EMAIL

Re: Request.setAttribute() and jsp

2001-11-23 Thread Mohammed
Thanks kevin . now it is working Mohammed - Original Message - From: Viet Kevin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 23, 2001 3:24 PM Subject: Re: Request.setAttribute() and jsp Check if in the forwards of your action you do not

Actionmapping bafflement

2001-11-23 Thread Ryan Townshend
Hello all I am new to jsp in general and struts in specific, and working through the examples. I seem to be having a problem seeing how the paths relate to each other in the actionmappings. What this is supposed to be is a forward from index.jsp in /webapps/tactics to tipsindex.jsp in /pages/tips

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-23 Thread Ted Husted
John Yu wrote: Struts is clever enough to call myEmployeeBean.getEmployeeVO().getName(). Something to watch is that Struts is also clever enough to populate any String or boolean public property property on employeeVO from a query string. So if employeeVO had another property, like role,