Struts in loadbalanced enviroment

2005-09-05 Thread Fritsch, Andre
Hello to everyone in the struts user-group! In our productive environment we have a problem concerning struts redirects behind our load balanced servers. Queries to the running struts applications are sent by https protocol towards the load balancer which receives the query, terminates ssl and

writting File through jsp

2005-09-05 Thread d d
Using FO i am generating a pdf report. The code for this is in a JSP (which is obviously generated dynamically). Now i want to save a copy of this generated pdf on server. Any idea how this can be done??

about create myself ActionForward

2005-09-05 Thread fenris
In my sub class for the action.java , I want to return a ActionForward created by myself (use new ActionForward(path)) in the function execute. (because I want forward a URL which is not declared in the struts-config.xml. can I ? ) But it throw a Exception. I don't know why ?

Re: Metadata for namespace /web-inf/struts-html not loaded

2005-09-05 Thread starki78
Ciao Wendy, Thanks for your answer! we are using JDeveloper 10: This is the part of my web-xml: /WEB-INF/struts-bean.tld /WEB-INF/struts-bean.tld /WEB-INF/struts-layout.tld /WEB-INF/struts-layout.tld this is a part of a jsp: <[EMAIL PROTECTED] uri="/WEB-INF/struts-lay

Re: Example code for blobs

2005-09-05 Thread David Haynes
[EMAIL PROTECTED] wrote: On Mon, 2005-09-05 at 22:09 -0400, Frank W. Zammetti wrote: Murray Collingwood wrote: Hello again I'm on the hunt for some sample code that will show me how to use my SQL Blob fields to store images or documents. Here's something on the Wiki to get yo

Re: Example code for blobs

2005-09-05 Thread amos
On Mon, 2005-09-05 at 22:09 -0400, Frank W. Zammetti wrote: > Murray Collingwood wrote: > > Hello again > > > > I'm on the hunt for some sample code that will show me how to use my SQL > > Blob fields > > to store images or documents. > > Here's something on the Wiki to get you started: > > ht

Re: Example code for blobs

2005-09-05 Thread Frank W. Zammetti
Murray Collingwood wrote: Hello again I'm on the hunt for some sample code that will show me how to use my SQL Blob fields to store images or documents. Here's something on the Wiki to get you started: http://wiki.apache.org/struts/StrutsFileDownload The sample app posted there includes ser

Example code for blobs

2005-09-05 Thread Murray Collingwood
Hello again I'm on the hunt for some sample code that will show me how to use my SQL Blob fields to store images or documents. For a while I entertained the idea of keeping the images and documents in a sub- directory and simply referencing the file names but then I realised I was going to get

Re: basics of struts

2005-09-05 Thread netsql
The link is an example of it runing (as is 1Up, and a few other clients. Cool thing about WHO is that it's set up.exe that install's struts, tomcat, db, etc. and runs). In order to get the book, you have to read the insrutctions about attachment at botom of page. .V James Mitchell wrote: S

Dealing with nulls

2005-09-05 Thread Murray Collingwood
Hi all Just like to say I really appreciate the help you guys provide us newbies. I'm looking forward to the day I will be able to help others... What convention do people normally use for dealing with NULL values from an SQL database? I can retrieve them okay. I can store them in my form cl

Re: basics of struts

2005-09-05 Thread James Mitchell
Someone should recheck the link from the wiki page, it points to "World Health Organization (WHO) HIV/AIDS Toolkits on the Web and CD-ROM", which I doubt was the intended target. Thanks. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech,

Re: Error

2005-09-05 Thread Adam Hardy
Hi Laurindo, generally you get a faster and better response if you give more info than just a stack trace. For instance, when the error occurs, with what parameters, are you using dynaforms, are you using validation etc etc Just looking at it, it looks like a bean utils PropertyUtils problem -

Re: Error

2005-09-05 Thread James Mitchell
Yes, there is a problem with some of your code that is being called as part of populating the form bean. You need to figure out which action this happening on, and look at which form bean is used, then trace through the jsp that was displaying just before this happens. You've got some nest

struts jsr 168 portlet URI problem WP 5.1

2005-09-05 Thread kunjal shah
Hi, I am new to the Struts Framework. I am developing a Struts based JSR 168 portlet on WepSphere Portal 5.1 platform. I needed some help with an error I am getting in generating Portlet URI's within the struts Action class. I am using this method to generate struts action url mentioned in the

int range validation

2005-09-05 Thread msemenkin
Hi! I need to validate integer value entered in 'year' field. This filed can be empty as well. I use following rule in validation.xml min 1900 max 2100 But such rule does

Error

2005-09-05 Thread Laurindo De Andrade
Someone knows how fix this error??? java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( Delega

RE: basics of struts

2005-09-05 Thread Ankit Pancholi
Hey guys It worked with the String argument. Its passing the "value" property of the checkbox to the setter fn. Thanks a lot. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, September 05, 2005 7:20 PM To: Struts Users Mailing List Subject: Re: basics of strut

Re: action.do not found on this server

2005-09-05 Thread Emmanuel.Leguy
I am not very proud of it but i solved my problem. Since apache web server produced a 404 error because it couldn't find the file /path/to/mywebapp/action.do, i created it as a empty file. And it works. If someone knows a more academic solution... Manu. Emmanuel.Leguy a écrit : Hi, When i

request attribute in jsp

2005-09-05 Thread Rivka Shisman
Hello friends I have an EditStudent.jsp page in which I have a form. Before the form tag I get a request attribute called 'listIndex'. But, when my validate() method fails on field validation it returns back to the above mentioned jsp page with an appropriate message. That is o.k. - the problem

Re: action.do not found on this server

2005-09-05 Thread Emmanuel.Leguy
Hi, When i access: https://myserver/mywebapp I get a 404 error. If I define an apache alias directive like this: Alias /mywebapp /path/to/mywebapp It is OK because apache can make the relation between the URL and the real directory. I think that I have the same error with my action URL:

Re: basics of struts

2005-09-05 Thread Frank W. Zammetti
What do you mean by "argument type" exactly? An argument is part of a method signature, so are you referring to the setter/getter in an ActionForm? Or, as I suspect, you really mean the data type of the fields in your ActionForm (which of course *would* affect the argument type of the getter/

RE: basics of struts

2005-09-05 Thread Bob Arnott
Ankit Pancholi wrote: > Hey thanks a lot. Changing classpath to servlet.jar helped. Can you > tell me the argument type for check box. I tried Boolean considering > it as on or off but it didn't work. Try "boolean", not "Boolean"... -- Bob Arnott --

Re: basics of struts

2005-09-05 Thread Wendy Smoak
From: "Ankit Pancholi" <[EMAIL PROTECTED]> Can you tell me the argument type for check box. I tried Boolean considering it as on or off but it didn't work. We're not going to be able to help without more information. When you say it didn't work... what happened? What does the Form bean look

RE: basics of struts

2005-09-05 Thread Ankit Pancholi
Hey thanks a lot. Changing classpath to servlet.jar helped. Can you tell me the argument type for check box. I tried Boolean considering it as on or off but it didn't work. Thnx again for the help. bbye -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, September

Re: basics of struts

2005-09-05 Thread Wendy Smoak
From: "Ankit Pancholi" <[EMAIL PROTECTED]> I am a very new user of struts. Making my first pgm and wanted to know what will be the argument type in the setter function for a checkbox, listbox, combo button. I use Boolean for checkbox, (String will also work,) String[] for (I assume) a select

Re: basics of struts

2005-09-05 Thread netsql
There is a 30 hour tutorial on struts wiki: http://wiki.apache.org/struts (search book) I wonder if that would help you. (it's meant for instructors ... but maybe you try it). Ankit Pancholi wrote: Hi guys I am a very new user of struts. Making my first pgm and wanted to know what will be t

Re: Shocking about Netbeans 4.2

2005-09-05 Thread netsql
Yes. Legolas Woodland wrote: are you Victor Cen. who post in TSS ? On 9/5/05, netsql <[EMAIL PROTECTED]> wrote: http://www.javalobby.org/java/forums/t44901.html .V -- thx, .V roomity.com is the broadband portal cell: 917 825 3035 in DFW email: netsql

Re: action.do not found on this server

2005-09-05 Thread Emmanuel.Leguy
Jeff Beal a écrit : What does your struts-config look like? Here is the mapping for action.do. I don't use any form-bean because I don't need it. I have to access directly to my action with the url: https://myserver/path/action.do Struts Configuration 1.1//EN" "http://jakarta.apache.org

basics of struts

2005-09-05 Thread Ankit Pancholi
Hi guys I am a very new user of struts. Making my first pgm and wanted to know what will be the argument type in the setter function for a checkbox, listbox, combo button. Another thing is when I am trying to compile my basic java code for the form bean and action class it is giving me that javax.

Re: action.do not found on this server

2005-09-05 Thread Emmanuel.Leguy
Nafise Dianatizade a écrit : have you defined the ActionServlet in web.xml ? action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml - Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mo

Re: Metadata for namespace /web-inf/struts-html not loaded

2005-09-05 Thread Wendy Smoak
From: "starki78" <[EMAIL PROTECTED]> I can compile and run the project but I get this error-message (or better advice) and I cannot imagine where it comes from. Has anyone an idea? My guess is that it's coming from something related to the taglibs. Many people still put tags in web.xml, and

Currency Formatter...

2005-09-05 Thread Iyanu, Rajasekaran
Hi All, Though this question is not applicable to this forum, thought, some of our struts champs will be able to help me.. I've a requirement to format the amount value in 9,999.99 syntax. (ie, 5000 USD => 5,000.00 USD ) Do you know any utility to do this..? I

Re: Shocking about Netbeans 4.2

2005-09-05 Thread Legolas Woodland
hi thank you very much. rooomity is a very nice idea and i hope i could bring all of my question there for some day Another question ? are you Victor Cen. who post in TSS ? On 9/5/05, netsql <[EMAIL PROTECTED]> wrote: > > http://www.javalobby.org/java/forums/t44901.html > > .V > > > > -

Re: logout problem

2005-09-05 Thread Tremal Naik
2005/9/5, Adam Hardy <[EMAIL PROTECTED]>: > Fourthly I think the work involved in making something track all > sessions like this and then inactivate any that stop would be > considerable. At least I can't think of a suitable algorithm off the top > of my head. I had the same problem: avoiding dup

Re: DAOs in service methods

2005-09-05 Thread Adam Hardy
Christian Bollmeyer on 01/09/05 18:19, wrote: my suggestion would be to have a closer look at the Spring framework. IoC / dependency injection is really cool once you get a grasp of it. Instead of having the service look up a DAO instance, you simply inject the fitting implementation class into

Re: logout problem

2005-09-05 Thread Adam Hardy
Leon Rosenberg on 31/08/05 13:17, wrote: On Wed, 2005-08-31 at 12:46 +0100, Adam Hardy wrote Emmanouil Batsis on 31/08/05 12:37, wrote Sławek Tuleja wrote: question: but how to evoke Logoff action when user closes browser? In general you dont :-) You just wait for the session to expire usin