Re: about images and db

2002-10-20 Thread Antoni Reus
A Diumenge 20 Octubre 2002 15:34, kiuma va escriure: thx , for your reply but I meant if was possible something like html ... hello!img src=''/ .. /html using only custom tags Then, the are 2 different requests, the one that returns the html and the one that returns the image (you

How to add a pre-action

2002-10-20 Thread Howard Miller
Hi, Can somebody kindly help me with the following... I want to add a path and an Action class. The action class will then preload data into a bean and then forward (do I mean forward) to the jsp that displays the bean. That's it. I want this action to be in *addition* to the *normal*

Re: JDK 1.4 and struts

2002-10-20 Thread John Byrd
Well, I tried this on a whim, and it WORKED: I expanded the struts.jar file in the WEB-INF/classes directory. I believe there is an issue w/r/t resolving classpaths either in Sun's JDK1.4 or in Tomcat 4.1.x, or possibly both. Problem is, IBM doesn't HAVE a 1.4 for Intel machines. Struts

Re: about images and db

2002-10-20 Thread kiuma
Thanks a lot! Antoni Reus wrote: A Diumenge 20 Octubre 2002 15:34, kiuma va escriure: thx , for your reply but I meant if was possible something like html ... hello!img src=''/ .. /html using only custom tags Then, the are 2 different requests, the one that returns the html and the

Re: about images and db

2002-10-20 Thread Antoni Reus
Hi, A Diumenge 20 Octubre 2002 11:47, kiuma va escriure: What could you suggest to me to display images stored in a database. When I get them in a bean what could I do to show them on a web d. page? You can: 1. In a Action: response.setContentType( the type of the image );

A better practice: environment entry vs. initialization parameter?

2002-10-20 Thread Vernon Wu
A few of email addresses needed to be accessed from time to time in my current project. They can be definited either as initialization parameters or environment entries. I can see some pros and cons of those two implementations. Do someone have some experience with those two implementation

RE: about images and db

2002-10-20 Thread Frederic Laub
Hi, I'm also interested in the two cases. The first case is clear to me, writing the byte data directly to out. The second case, I would appreciate if you could clarify. What do you mean by holding the content type in the bean. An example of the second option would be wonderful! Thanks in

about images and db

2002-10-20 Thread kiuma
What could you suggest to me to display images stored in a database. When I get them in a bean what could I do to show them on a web d. page? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: about images and db

2002-10-20 Thread kiuma
thx , for your reply but I meant if was possible something like html ... hello!img src=''/ .. /html using only custom tags Antoni Reus wrote: Hi, A Diumenge 20 Octubre 2002 11:47, kiuma va escriure: What could you suggest to me to display images stored in a database. When I get them

best praktice: preview of a form

2002-10-20 Thread rainer juenger
Hi, I am thinking of a concept how to best realize a WYSIWYIG preview of filed in form values. what's the job? after a struts-from was validated and everything is filled in okay I want to preview the values in a JSP-Site that shows the just filed in values for final verification by the User. If

Re: Struts - migrating to JSTL

2002-10-20 Thread David M. Karr
flare == flare [EMAIL PROTECTED] writes: flare well.. I've read the specs and now I (strongly) want to use JSTL with struts 1.02 ;) flare Any recommendation? flare I'm going to use struts html + core + fmt jstl. The only problems I can think of is how to set flare the same

Re: JDK 1.4 and struts

2002-10-20 Thread flare
Someone stated recently that Struts DOES WORK w/ JDK1.4. Which OS is that? And does anyone have positive experience using Struts w/ JDK1.4 on Linux? me, Sun JDK1.4.1 (I usually prefere the Blackdown one but it is still beta), Linux TSL Kernel 2.2.22, Resin 2.1.5, Struts 1.02 (I haven't

Re: How to add a pre-action

2002-10-20 Thread David M. Karr
Howard == Howard Miller [EMAIL PROTECTED] writes: Howard Hi, Howard Can somebody kindly help me with the following... Howard I want to add a path and an Action class. The action class will then preload data into Howard a bean and then forward (do I mean forward) to the jsp

Re: How to add a pre-action

2002-10-20 Thread Howard Miller
I think I'm seriously missing the point here! I have looked at the example application in some detail and it appears to add a parameter (eg, ?action=new) to tell the action for a form to perform an initialising action. I don't see it using a pre- action. I am incredibly stuck with the concept

Re: JDK 1.4 and struts

2002-10-20 Thread Melissa L Kelley
I've started using Struts 1.1 on Linux (Redhat 7.2) using Tomcat 4.1.12 with Sun's JDK 1.4.1. So far, I haven't run into any problems, but I have only been working on it for a couple of days. And the struts-example.war deployed like a champ. This is with one of the more recent nightly builds of

Re: i18n messages in javascript js file

2002-10-20 Thread sridhar
Thanks James, That's how we had implemented for now, but is it right to have just javavascript code in a separate jsp and include it in all the other jsp's. is there any better solution ? sridhar - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing

Re: JDK 1.4 and struts

2002-10-20 Thread Xue-Feng Yang
I tried Struts 1.1b2 with Tomcat 4.1.12 on win2k and Redhat 7.3. I haven't met any problem. I will try on Redhat 8.0 in next a few days. --- email [EMAIL PROTECTED] wrote: There were a couple of messages the other day concerning Struts failing to work correctly under the 1.4 JDK. I'd like

Struts - migrating to JSTL

2002-10-20 Thread flare
well.. I've read the specs and now I (strongly) want to use JSTL with struts 1.02 ;) Any recommendation? I'm going to use struts html + core + fmt jstl. The only problems I can think of is how to set the same resource bundle of struts in jstl and the i18n stuff (how can I switch locale in

Re: JDK 1.4 and struts

2002-10-20 Thread Xue-Feng Yang
Forgot to mention that I use Sun Java 1.4.1. --- Xue-Feng Yang [EMAIL PROTECTED] wrote: I tried Struts 1.1b2 with Tomcat 4.1.12 on win2k and Redhat 7.3. I haven't met any problem. I will try on Redhat 8.0 in next a few days. --- email [EMAIL PROTECTED] wrote: There were a couple of

Tiles Idea

2002-10-20 Thread Dan Ritchey
I recently completed an addon to Struts/Tiles that allows to one determine at runtime which tiles definition should be displayed based on the incoming HttpServletRequest and the ServletContext. I created a Struts PlugIn/RequestProcessor that descends from the Tiles PlugIn/RequestProcessor and

Re: logic:present return false

2002-10-20 Thread Daniel Jaffa
A off hand response, try changing the scope of the object maybe to request in both the action and the jsp page. Also in the action try to put a name like nameOfObject in session.setAttribute(nameOfObject, employeeList ); - Original Message - From: Tuan H. Le [EMAIL PROTECTED] To:

Re: logic:present return false

2002-10-20 Thread David M. Karr
Tuan == Tuan H Le [EMAIL PROTECTED] writes: Tuan -Original Message- Tuan From: David M. Karr [mailto:dmkarr;earthlink.net] Tuan Sent: Sunday, October 20, 2002 12:45 PM Tuan == Tuan H Le [EMAIL PROTECTED] writes: Tuan session.setAttribute( USER_EMPLOYEE_LIST_KEY,

RE: PLEASE HELP - struts-tiles no longer work

2002-10-20 Thread Tuan H. Le
Micael, Thanks for your help! I corrected my mistake by using the String equals() method, and it works fine. Tuan -Original Message- From: micael [mailto:caraunltd;harbornet.com] Sent: Saturday, October 19, 2002 12:21 AM To: Struts Users Mailing List Subject: Re: PLEASE HELP -

Re: about images and db

2002-10-20 Thread Antoni Reus
Hi, A Diumenge 20 Octubre 2002 17:09, Frederic Laub va escriure: Hi, I'm also interested in the two cases. The first case is clear to me, writing the byte data directly to out. The second case, I would appreciate if you could clarify. What do you mean by holding the content type in the

logic:present return false

2002-10-20 Thread Tuan H. Le
Hi, In my Action class I set an object in one of the session attribute before forwarding to a JSP view. But, the logic:present in the JSP view always return false on that object. Below is my code. Do you know what I'm missing? employeeList is an ArrayList object. If I use a for loop below

RE: i18n messages in javascript js file

2002-10-20 Thread James Mitchell
Have you taken a look at using the validator (its part of core struts now)? By using this validation framework, you can add both client side and server side validations to your web application. You can get up to speed by reading the docs or (as I prefer) run the struts-example and 'take a look

Re: logic:present return false

2002-10-20 Thread David M. Karr
Tuan == Tuan H Le [EMAIL PROTECTED] writes: Tuan Hi, Tuan In my Action class I set an object in one of the session attribute before forwarding to a JSP view. But, the logic:present in the JSP view always return false on that object. Tuan My Action code

RE: Newbie Question

2002-10-20 Thread Todd Pierce
Sorry about the late reply. Mail problems. I found http://jsptags.com/tags/navigation/pager/ to be a good start. It needs a bit of tweaking if you're using global forwards or page templates... but I'm not going to complain about free resources! ; ) - Todd -Original Message- From: CJ

RE: logic:present return false

2002-10-20 Thread Tuan H. Le
Hi David, Thanks for your response! IConstants.USER_EMPLOYEE_LIST_KEY is a string of value com.xyz.key.USER. I'm not sure that's the issue, because the session.getAttribute returned a correct ArrayList object employeeList and the for loop works fine. Any ideas? Thanks, Tuan -Original

RE: about images and db

2002-10-20 Thread Tero P Paananen
What could you suggest to me to display images stored in a database. When I get them in a bean what could I do to show them on a web d. page? How is this related to Struts? Did you Google for answers before posting? -TPP winmail.dat-- To unsubscribe, e-mail:

RE: logic:present return false

2002-10-20 Thread Tuan H. Le
Hi David, My bad and you saved my day! Thanks for your help! Tuan -Original Message- From: David M. Karr [mailto:dmkarr;earthlink.net] Sent: Sunday, October 20, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: Re: logic:present return false Tuan == Tuan H Le [EMAIL PROTECTED] writes:

[BOOK ANN] Struts: Practical Guide now available

2002-10-20 Thread Sue Spielman
Hi, Everyone: I'm very pleased to announce that... The Struts Framework: Practical Guide for Java Programmers (Morgan-Kaufmann) is now available. The Struts Framework: Practical Guide for Java Programmers is written for Java programmers who need to understand, build, and deploy Struts

Re: How to add a pre-action

2002-10-20 Thread Phil Steitz
Howard Miller wrote: I think I'm seriously missing the point here! I have looked at the example application in some detail and it appears to add a parameter (eg, ?action=new) to tell the action for a form to perform an initialising action. I don't see it using a pre- action. I am incredibly

Re: How to add a pre-action

2002-10-20 Thread Howard Miller
That helps a lot... just one question if you don't mind... can I check how you would forward from the prepareListBookAction to the bookSearch.jsp. I assume you are just using mapping.findForward( success ). That didn't work for me... which is really why I started thinking that I was doing

Re: about images and db

2002-10-20 Thread kiuma
Of course I din't know if it was related with struts Now I know that struts doesn't have any kind of facilitation for this task. (I mean jsp tags), and I know how to put dyna imgs in my pages. Anyway I prefer mailarchive, I think it was better old dejanews Tero P Paananen wrote: What could you

Re: How to add a pre-action

2002-10-20 Thread Phil Steitz
Howard Miller wrote: That helps a lot... just one question if you don't mind... can I check how you would forward from the prepareListBookAction to the bookSearch.jsp. I assume you are just using mapping.findForward( success ). That didn't work for me... which is really why I started thinking

Re: access ApplicationResource from ActionForm

2002-10-20 Thread Arion Yu
Hi all, for ApplicationResource, check ActionForm.getServlet.getResources for the locale, however, the variable is protected and you have no way to access it in this way. One of the way to accomplish it is pre-create the form in Action (before going to JSP) and set the locale during the Action

[ANNOUNCE] SVT 0.5.0-beta released

2002-10-20 Thread Shinya Kasatani
Hello, I am pleased to announce that I have released a first version of SVT (Struts Validation Toolkit). SVT is a form validation framework for Struts. You can write a simple validating code in Java, rather than writing validation.xml files. For example, if the form bean has properties name and

Book Opinions

2002-10-20 Thread Nat Papovich
Hello All - I'm a recent addition to this list, while I begin learning Struts. Not only am I beginning to learn Struts, I'm beginning to learn all things Java. I come from a ColdFusion/Fusebox background, but as a leader in that community, I have secretly wanted more structure from a framework,

Re: Book Opinions

2002-10-20 Thread Vernon Wu
Nat, I am thinking about walking the opposite direction as you do. After playing about the Pet Market from Macromedia MX, I wish my Java Web application have the degree of rich UI. You might be able to tell me how to add the MX on the top of Struts, or similar MVC Java web application: