Re: Database pool full.

2004-01-15 Thread virupaksha
Thanks max for your suggestions, Yah, there was a connection leak in a mthod, so that leades to system slow down. Now it's OK, I am monitoring my application performance , then, we are using Resin connection pool class. any more suggestions? Regards, Viru - Original Message - From: Max

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
Without seeing any of your code, one possibility is that the case of your property names isn't properly matching your Form. For instance, the property lastname isn't going to match setLastName() in your form, but lastName will. I believe i've tried every possible case combination.

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
Are you casting the ActionForm in to your own form in your save action? like: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,

RE: report in struts

2004-01-15 Thread Edgar P Dollin
JasperReports on sourceforge is pretty good with a decent base of support. Edgar -Original Message- From: Hari_s [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 8:25 PM To: Struts Users Mailing List Subject: report in struts Hi all is there any reporting tools (for creating

Re: Included port numbers in web links e.g. 8080

2004-01-15 Thread Mark Lowe
Thats quite weird.. what about switching the catalina server off in server.xml? We use apache and tomcat with jk and never had this. On 14 Jan 2004, at 20:31, Dan Snider wrote: If mod jk to working and configured then requests over port 80 for .do will be forwarded to mod_jk. Yes, that works.

RE: ActionForm is not automatically popluated.

2004-01-15 Thread Martin Sturzenegger
if you have getAmount() and setAmount() methods, you address the according property in you jsp as amount and not as Amount !!! silly, but these are the rules... hope this helps martin -- Urspruengliche Nachricht -- Von: Andre Risnes [EMAIL PROTECTED]

Thread-safe in Action.execute()

2004-01-15 Thread Ralf Bode
Hi list, just a question about threadsafty with actions. okay they are safe if i use only exe() and local vars in it... but if i have access to OJB inside an execute() and two or more request at same moment happened to that exe(), how can i ensure the threadsafty, or does OJB deal with this? i

SV: ActionForm is not automatically popluated.

2004-01-15 Thread Andre Risnes
if you have getAmount() and setAmount() methods, you address the according property in you jsp as amount and not as Amount !!! silly, but these are the rules... hope this helps martin Doh! I was sure i'd tried that. Yes, that definately helps. Thanks André Risnes

Back and Refresh Button Effect

2004-01-15 Thread Gede Indrawan
Hi all, In building struts web appl, what are the deep concern we must have to the browser back and refresh button effect? TIA -GI. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

All values null after Validate

2004-01-15 Thread Søren Blidorf
Hi. I am using struts and I am doing a form validate. When the user types in more than on thing and one of them fails validation, all the values is returned blank. Is there anyway to keep the values when validate error? BR Soren

AW: All values null after Validate

2004-01-15 Thread Oliver Thiel
Hi Søren, IF you use [extends ActionForm] you can use: input type=text name=username value=bean:write name=basicForm property=username / (in your jsp) OR: IF you use [extends ValidatorForm] you can use: html:text property=username/ (in your jsp) Hope that helps Oliver -Ursprüngliche

Problem accessing database and html:options

2004-01-15 Thread Christian Froemel
Hello, I am a newbie with Struts and JSP-Programming. I want to program the following: I want to access a database (oracle) and want to get the results (i.e. firstname and lastname). I connect to the database with JDBC-Calls within the execute-method in the Action-Class ( or should I use the

AW: All values null after Validate

2004-01-15 Thread Otto, Frank
Hi Oliver, You can use html:text property=username/ in [extends ActionForm] too. Regards, Frank -Ursprüngliche Nachricht- Von: Oliver Thiel [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. Januar 2004 11:21 An: 'Struts Users Mailing List' Betreff: AW: All values null after Validate

SV: All values null after Validate

2004-01-15 Thread Søren Blidorf
That's great. Thanks both I'll try that right away Soren -Oprindelig meddelelse- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 15. januar 2004 11:35 Til: 'Struts Users Mailing List' Emne: AW: All values null after Validate Hi Oliver, You can use html:text property=username/ in

Where are my ActionErrors ?

2004-01-15 Thread Gleichmann, Mario
Hello all, i have a problem when i'm trying to retrieve my ActionErrors in a JSP: In my Action i do the following: ... ActionErrors errors = new ActionErrors(); errors.add( INFORMATION, new ActionError( product.message.test ) ); saveErrors( request, errors );

global forwards and update problems

2004-01-15 Thread Mathieu Grimault
Hello everyone ! I've got a page A with a form with several fields, the fields are populated via the reset() method in a corresponding ActionForm, datas are holding in the session. After filling/modifying the datas in the form a user push a submit and is lead to a screen B. The Action

RE: Where are my ActionErrors ?

2004-01-15 Thread Andrew Hill
Did you do a redirecting or non-redirecting forward to the JSP? -Original Message- From: Gleichmann, Mario [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 January 2004 18:44 To: 'Struts Users Mailing List' Subject: Where are my ActionErrors ? Hello all, i have a problem when i'm trying to

AW: Where are my ActionErrors ?

2004-01-15 Thread Gleichmann, Mario
Thanks, this should be the solution, since the request-object is a new one if using a redirect (gosh) ... ;o) Will take a look at my struts-config ... Thanks and regards, mario -Ursprüngliche Nachricht- Von: Andrew Hill [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. Januar 2004

RE: Back and Refresh Button Effect

2004-01-15 Thread Richard Hightower
pragma no cache, transaction tokens. -Original Message- From: Gede Indrawan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 3:01 AM To: Struts Users Mailing List Subject: Back and Refresh Button Effect Hi all, In building struts web appl, what are the deep concern we must

RE: Problem accessing database and html:options

2004-01-15 Thread Richard Hightower
html:select /, html:option /, html:options /, html:optionsCollection / The html:select / tag renders a drop down selection or list box to the end user. You can specify the options for the html:select/ tag with html:select /, html:option /, html:options /, html:optionsCollection / tags. The

Struts and Action errors

2004-01-15 Thread Vinicius Carvalho
Hi there! I'm a newbie to Struts, and this question may be a little silly, sorry. How exactly do I use action errors? How do I render them? In my app, I control the session via RequestProcessor using processPreProcess method. If the session is invalid, I create a new error using ActionErrors

How to enable Text formatting in Text area using struts html tagshtml:TextArea...

2004-01-15 Thread N.N.S.S Ravi Krishna
Hi, I am using html:textarea .I want to format the text written in the given text area i.e. enabling characters bold, Italics,underline etc., as in windows .doc format. Please help me how do I achieve this using struts tagshtml:textarea --Ravi Krishna

Tomcat error with compiling JSPs

2004-01-15 Thread Claire Wall
hi, I am trying to install my application on another server (Tomcat 4.1). I have built a WAR file from an ANT build file but when I install it on Tomcat and try to access it I get the following error: HTTP Status 500 -

Re: How to enable Text formatting in Text area using struts html tagshtml:TextArea...

2004-01-15 Thread James Mitchell
You know, you'll be lucky if you don't get flamed for asking a question like that here. I'll take the high road today ;) I would highly suggest you do one of the following: - purchase a book on HTML - go through an HTML tutorial - search google - search mail-archive.com Please post back if

SV: Struts and Action errors

2004-01-15 Thread Claus Weng Madsen - TELMORE
Hi there Use the saveErrors method in Action, before forwarding to jsp. Med venlig hilsen Claus Weng Madsen, Teamleder TELMORE A/S Carl Gustavsgade 3, 2630 Taastrup Telefon 70218700, Mobil 30242875 www.telmore.dk -Oprindelig meddelelse- Fra: Vinicius Carvalho [mailto:[EMAIL

Re: SV: Struts and Action errors

2004-01-15 Thread Vinicius Carvalho
Ok, I got it. But what about the other questions? if I'm in a ActionForm, or a requestprocessor ... At 10:18 15/1/2004, you wrote: Hi there Use the saveErrors method in Action, before forwarding to jsp. Med venlig hilsen Claus Weng Madsen, Teamleder TELMORE A/S Carl Gustavsgade 3, 2630

Re: Is there any master list of deprecated methods, and custom tag attributes? RE: low priority question about html:form

2004-01-15 Thread Kris Schneider
I think the closest thing is probably in the release notes. For 1.1, it's here: http://jakarta.apache.org/struts/userGuide/release-notes-1.1.html#diff But since the tag handler methods associated with the deprecated tag attributes are not also deprecated, they don't show up in the list (at least

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Claire Wall
i see what you're saying, but I've got about 6 applications running on Tomcat on this server and they all work fine with no problems. This is the first time that this has occured so I'd really like to understand what could be causing this to happen. I'm assuming that it can't be anything coded

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Max Cooper
This seems telling: [javac] javac: invalid flag: C:\Program It seems like some kind of path with a space in it is being passed to the compiler, but it is not being quoted properly. javac -classpath C:\Program Files\somelib\lib.jar ... (should be: javac -classpath C:\Program

Re: Struts and iframes

2004-01-15 Thread Adam Hardy
If you're going to use a form in one frame to submit to another frame, then you should expect that! You could set the action mapping 'input' parameter to an error page instead of the form itself. That way, the 2nd frame will display an error message instead of a form. Adam On 01/14/2004

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Claire Wall
the classpath of the server only points to the bin folder of the JDK. It still doesn't explain why this application isnt working and all of the rest are, since all our applications are installed via a WAR file and I do not change or set a class path for each application - I only change the paths

RE: Tomcat error with compiling JSPs

2004-01-15 Thread Kevin A. Palfreyman
This is a known problem in some versions of Tomcat, due to a known problem in some versions of ANT, due to a known problem with command-line length on windows. It relates to the path length that is used by ANT when compiling your JSP. If the path is longer than the max, then the initial '' is

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Martin Gainty
I ran into this exact error when I installed IBM JDK with Websphere and all of a sudden my JSP wouldnt compile on Tomcat What is your JAVA_HOME pointing to? Regards, -Martin - Original Message - From: Claire Wall [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Claire Wall
sorry, i lied before - the JAVA_HOME variable is pointing to the bin folder of the JDK. we have just reinstalled Tomcat (4.1.2) again to a path that has no spaces and it now works. However, this doesnt solve the problem because as stated before, we cannot dictate what path our client has their

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Claire Wall
we are using 4.1.24 and are pretty certain that what you say is exactly what is happening. The path that the app was installed in was quite long + then there's the package names on top of that and they are pretty lengthy too - up to 7 folders in depth. Thanks for your help! I'm going to try it

html:radio

2004-01-15 Thread Otto, Frank
Hello, I want to disable a radio with attribute disabled=true. But I get this error: Attribute disabled invalid according to the specified TLD' Has anyone an idea? Regards, Frank

SV: All values null after Validate

2004-01-15 Thread Søren Blidorf
Hi again. I am doing it like this: bean:define name=element id=myDate property= myDate / INPUT NAME=myDate TYPE=text SIZE=30 value=%= getDateFormatted(myDate) % Is it possible then? Soren -Oprindelig meddelelse- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 15. januar 2004 11:35

Form submission

2004-01-15 Thread Raman
I want to implement something like this: Conditional checks: for form submission to different Actions logic:equal value=MP name=userQuestionaireForm property=filterConstant html:form action=/UpdateUserQstMP /logic:equal logic:notEqual value=MP name=userQuestionaireForm property=filterConstant

RE: html:radio

2004-01-15 Thread Schabus Michael
Hi Frank! Maybe your TLD is malformed. Check out the TLD-File (struts-html.tld (default)) what it is saying. We use for example this code-line in one of our JSP pages and it is working: html:radio property=user.role value=%= HtmlConstants.OP_INTERN % disabled=true/ Maybe have a look into your

Re: Form submission

2004-01-15 Thread Mark Lowe
logic:equal ... bean:define id=action ... .. html:form action=%= action % or c:choose c:when test=${myForm.prop} c:set var=action value=/foo.do / /c:when c:otherwise c:set var=action value=/bar.do / /c:otherwise /c:choose

AW: Form submission

2004-01-15 Thread Martin Sturzenegger
html:form action=/UpdateUserQstMP/ instead of html:form action=/UpdateUserQstMP this might help martin -- Urspruengliche Nachricht -- Von: Raman [EMAIL PROTECTED] Antworten an: Struts Users Mailing List [EMAIL PROTECTED] Datum: Thu, 15 Jan 2004 19:38:55

MockStruts error

2004-01-15 Thread Mehran Zonouzi
Hi, I have the following mock test code. When I run it I get the below error message. Any ideas? java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at

[OT] Classloader troubles

2004-01-15 Thread Nicolas De Loof
Hi all, I'm posting on Struts list because I know they're is lot's of J2EE experts here. I want to test my webapp on Tomcat, but it depends on some external system. I've got a jar that emulates it. When I package it with the webapp (WEB-INF/lib) it works fine. I would like to test the webapp

accessing an image outside my webapp

2004-01-15 Thread Alain Van Vyve
I have a JSP where I would like to show an image located outside my webapp (e.g. in a c:\photo directory) ... How to do that with the html:img Struts tag ?? Thanks Alain - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
You'll probably want an action that gets the image and then streams it to the html:img tag or c:url html:img page=/image.do / This way you wont be confined to the webapp. e.g response.setContentType(image/jpeg); response.setHeader(Cache-Control, no-cache); OutputStream ou =

RE: Tiles scope problem

2004-01-15 Thread Yogi_Shridhare/BCBSRI
Richard Thanks for you reply. I don't set it to true as you can see below. This is part of my struts-config.xml action path=/providers/Eligibility type=org.bcbsri.thinui.struts.actions.EligibilityAction name=EligibilityForm scope=request

RE: Struts and Action errors

2004-01-15 Thread Richard Hightower
Did you put the messages in the resource bundle? -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 4:24 AM To: [EMAIL PROTECTED] Subject: Struts and Action errors Hi there! I'm a newbie to Struts, and this question may be a

RE: How to enable Text formatting in Text area using struts html tagshtml:TextArea...

2004-01-15 Thread Richard Hightower
Java Applet or ActiveX control. -Original Message- From: N.N.S.S Ravi Krishna [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 4:28 AM To: 'struts users' Subject: How to enable Text formatting in Text area using struts html tagshtml:TextArea... Hi, I am using html:textarea

RE: accessing an image outside my webapp

2004-01-15 Thread Richard Hightower
seems like an odd request... but here goes... html:img href=file://c:/photo directory/foo.gif/ html:img supports three attributes for specifyin the location of an image forward (referes to a global forward), page (relative to the current web context), and href (any valid URL). Rick Hightower

RE: Back and Refresh Button Effect

2004-01-15 Thread Guillermo Meyer
As ther is no way to disable browser's back button, I've made a tricky javascript that I place in my base template (or tile) that is as follows: script language=JavaScript !-- window.history.forward(window.history.length); //-- /script Additionally, I use tokens and pragma no cache, but

RE: How to enable Text formatting in Text area using struts html tagshtml:TextArea...

2004-01-15 Thread Guillermo Meyer
I saw an open source product to use in formating HTML WYSIWYG fashion: http://www.fredck.com/FCKeditor/ There are many other products like this. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Jueves, 15 de Enero de 2004 09:18 a.m. To: Struts Users Mailing List;

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
by jingo. it only works!! just src rather than href html:img src=file:///test.jpg / I thought tomcat wouldn't have access to anything outside the webapp. On 15 Jan 2004, at 15:03, Richard Hightower wrote: seems like an odd request... but here goes... html:img href=file://c:/photo

Re: [OT] Classloader troubles

2004-01-15 Thread Kris Schneider
If ExternalSystemMockImpl is contained in a JAR file that's in $CATALINA_HOME/common/lib, I don't see why the app wouldn't be able to load it. For example, I've got a JAR file for the Oracle JDBC driver in common/lib and I can do the following just fine in a JSP: % ClassLoader cl =

RE: accessing an image outside my webapp

2004-01-15 Thread Robert Nocera
I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system. It will work fine if you are only running locally, but it won't work if you try to access that link from a browser on another machine unless that machine

Re: SV: Struts and Action errors

2004-01-15 Thread Daniel H. F. e Silva
Hi Vinicius, I think you are a bit lost regarding Struts. Take a look at www.reumann.net. Very good tutorials. They will help you to understand better how to use Struts properly. By the way, i'd like to invite you to a very good struts chatroom. Point your IRC client to irc.darkmyst.org and

Re: accessing an image outside my webapp

2004-01-15 Thread Martin Gainty
Robert The client browser is making a request to a webserver using a relative address I think it would be best to understand the difference between relative addressing and absolute addressing I invite you to read http://www.drizzle.com/~slmndr/tutorial/relabs.html -Martin - Original Message

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
that makes a bit more sense now, so my original suggestion wasn't just the crack talking then :) On 15 Jan 2004, at 15:25, Robert Nocera wrote: I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system. It

RE: accessing an image outside my webapp

2004-01-15 Thread Robert Nocera
Actually Martin, if the link is file:///test.jpg, as in the message, it isn't a relative request. If it was just /test.jpg it would be relative to the context of the web-app, but it's not. -Rob -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, January

Re: [OT] Classloader troubles

2004-01-15 Thread Nicolas De Loof
the webapp hasn't trouble to load ExternalSystemMockImpl. It uses reflexion to do it from some configuration data that is use to set implementation (production | mock). The problem is that the resulting object has to be casted to an interface from the API : IExternalSystem: (1)Class clazz

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
I think robert it right, i've just tested it too. And i don't think that anyone is confused between absolute and relative addressing. http://www.peevish.co.uk/slang/c.htm see chocolate fireguard On 15 Jan 2004, at 15:28, Martin Gainty wrote: Robert The client browser is making a request to

RE: Struts Validator overriding cache-control?

2004-01-15 Thread Brown, James
Just to follow up with a few questions, based on the following statement: It is my assumption in this scenario that the browser (IE) has cached the URL and data posted to said URL, thus it is able to redisplay the page with the data the user has entered. 1. Is this a correct assumption?

RE: Question: How do I put iterated radio buttons in the same gro up?

2004-01-15 Thread Eric Hodges
Thanks for the advice, but I can't get that to work. I have to add a value attribute to get it to compile, so I changed it to this: html:radio property=master idName=account value=master/ That causes this run-time exception: javax.servlet.jsp.JspException: No getter method available for

Bean:write arg0 substitution problem

2004-01-15 Thread Mark Nichols
Good Morning All, I am trying to complete the following code: logic:greaterThan name=FSCalcOutputForm property=foodstampAllotmentUnformatted value=0 bean:message key=fs.calc.result.eligible arg0=bean:write name=FSCalcOutputForm property=foodstampAllotment/ / /logic:greaterThan logic:equal

Re: Tomcat error with compiling JSPs

2004-01-15 Thread Martin Gainty
I expect politicians to lie not engineers! *Glad that solved your problem* Martin - Original Message - From: Claire Wall [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:56 AM Subject: Re: Tomcat error with compiling JSPs sorry, i lied

Re: accessing an image outside my webapp

2004-01-15 Thread Alain Van Vyve
I think It is an intersting debate about relative versus absolute addressing ... but I'm not relatively but absolutely lost ... Here is my jsp source ... What do I have to change ? Thanks td img src='bean:write name=HotelListForm

global forward, wrong display

2004-01-15 Thread Mathieu Grimault
Hello all !! Seens my question wasn't well explained... I've got a form with several text fields on a screen A witch display an object stored in the session. When a submit the form, all is good, i replace the old session object with a new one. It works. The problem is that when i use a global

Re: [OT] Classloader troubles

2004-01-15 Thread Kris Schneider
Where is the JAR file that contains IExternalSystem? Quoting Nicolas De Loof [EMAIL PROTECTED]: the webapp hasn't trouble to load ExternalSystemMockImpl. It uses reflexion to do it from some configuration data that is use to set implementation (production | mock). The problem is that the

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
Have an action that write the image to the response response.setContentType(image/jpeg); response.setHeader(Cache-Control, no-cache); OutputStream ou = response.getOutputStream(); String imageStr = /path to image; java.net.URI imgUri = new java.net.URI(imageStr); File imageFile = new

JSP Protection

2004-01-15 Thread Jürgen Scheffler
Hi, how do i block URL guessing? if someone requests abc.com/secret_page.jsp he gets it. In my Action i check if the user object has the right rights for this action and then i forward him. But if guesses the jsp, he opens it. Help me! Jürgen

Notify a user if he is in a screen and the contents of that screen is updated by another user

2004-01-15 Thread Vinay Kumar Munikuntla
Hi I am trying to come up with best possible solution for Notify a user if he is in a screen and the contents of that screen is updated by another user. Thanks in Advance Vinay Kumar Munikuntla - This email, including any attachments, is for the

RE: JSP Protection

2004-01-15 Thread Yee, Richard K,,DMDCWEST
Jürgen, Put the JSP under the WEB-INF directory. Once there, it will only be accessible from within your web application. -Richard -Original Message- From: Jürgen Scheffler [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:15 AM To: [EMAIL PROTECTED] Subject: JSP Protection

Re: [OT] Classloader troubles

2004-01-15 Thread Nicolas De Loof
Api is in a separate jar (api.jar) that is both in webapp commons : when I don't put it in commons, I get a NoClassDefFoundError from line (1) : Class clazz = Class.forName(className); I can't exclude it from webapp (WEB-INF/lib) as it is part of webapp with the production implementation

RE: JSP Protection

2004-01-15 Thread Hookom, Jacob
It depends on your web container if that's actually allowed. You should check your container spec before moving all of your JSP's into the WEB-INF folder. The other alternative is to create a filter that will get/put requests to /jsp/* in your app. (Weblogic for example will not compile JSP's

Re: Struts + xdoclet

2004-01-15 Thread Raj Atchutuni
Can some tell where you want me to research on xdoclet + struts + maven. I would like to generate xdoclet for STRUTS Dynaforms , Action Mappings. FYI : I completed my project in Struts (w/ Dynaforms, Actions etc). Now i want to implement xdoclet and also xdoclet for maven to it. Thanks Raj

Re: Struts + xdoclet

2004-01-15 Thread Matt Raible
XDoclet and Struts works very nicely together - throwing Maven into it has only brought me headaches and I found it easier to just do it in Ant. Why try to do it in Maven just because Maven is cool? ;-) You might checkout my AppFuse project with uses Ant/XDoclet/Struts/Hibernate.

Struts throws exception during load testing

2004-01-15 Thread Abhishek Srivastava
Hello All, My application works fine when I test it with my browser. But if I run load test on it (25 parallel users) I start getting this exception periodically. However in the stack trace I cannot see any of my code. Why is the struts code generating this exception? That too only under minor

Re: forward on https

2004-01-15 Thread Raj Atchutuni
May be this helps action path=/viewSignUp type=com.someapp.action.ViewSignUpAction parameter=secure forward name=success path=signupPage.jsp / /action Foux [EMAIL PROTECTED] wrote:Hi, Is there any parameter to define a forward should be done over https

forward on https

2004-01-15 Thread Foux
Hi, Is there any parameter to define a forward should be done over https instead of the http protocol? I mean, is there something like this (which is not working) : forward name=logon path=/jsp/logon.jsp protocol=https/ or forward name=logon path=/jsp/logon.jsp secure=true/ ? Thanks.

Re: forward on https

2004-01-15 Thread Alain Van Vyve
I had the same need last week and I started a Thread called Mix protocols transparently in Struts Have a look at this ... You will need the Struts SSL Switching Extension hosted at sourceforge: http://sourceforge.net/projects/sslext/ Alain At 17:27 15/01/2004 +0100, you wrote: Hi, Is there

Re: forward on https

2004-01-15 Thread Mark Lowe
IMO your best doing this with you webserver e.g apache rather than at the container level otherwise you have to setup https shite just to run a development environment. mod_rewrite does the job nicely. I post an example a week or so ago. Cheers Mark On 15 Jan 2004, at 16:27, Foux wrote: Hi,

RE: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
You can do this so long as the parameter expects an output stream of some sort. How that stream gets there is of no consequence, so long as whatever you use as the src etc. is sufficient to tell the server what to send back. You can give a standard server URL and trust in the server to

Re: accessing an image outside my webapp

2004-01-15 Thread Alain Van Vyve
that assumes you are not working with jsp anymore for that page ... I cannot do that because my page contains a lot of other things ... Do you think it is possible to integrate that code in my jsp page ? At 15:59 15/01/2004 +, you wrote: Have an action that write the image to the response

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
?? I'm not sure what you mean, you don't forward with this action just return null. You can pass what you need as parameters, I just gave you an example with the perhaps naive expectation that you might work the rest out. On 15 Jan 2004, at 16:42, Alain Van Vyve wrote: that assumes you are

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
This is not quite right. The only thing you have to do is to give the server whatever it needs to retrieve the data. This can be a relative or absolute url or a protocol you develop on your own. The idea is that you have to tell the server what to do. That will depend on your set up. My

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
The issue, again, is not about absolute versus relative addressing. The issue is whether you are giving the server the information it needs to return the resource. That can be accomplished in innumerable ways. At 07:45 AM 1/15/2004, Alain Van Vyve wrote: I think It is an intersting debate

RE: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
The truth is that relative and absolute are not that helpful. The thing to understand is that there are protocols or ways of telling the computer what to do. http://www.amazon.com/CHUCKLES.do?forty=twenty involves lots of protocols, for example. What they are depends upon the setup on the

Re: accessing an image outside my webapp

2004-01-15 Thread Mark Lowe
I kind of thought the example i gave did that, although i did just have dummy text for the path to image. Passing a few parameters or setting the directory name in a properties file not a huge leap to make (at least i thought not). Any links explaining all this facade business? On 15 Jan

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
Actually, this does not require that the page be JSP. This solution works with HTML just as well. So long as you have some mechanism for notifying the server that the request should go to a controller, then HTML and JSP work the same. The controller, not the page handles the Java, so the

Re: accessing an image outside my webapp

2004-01-15 Thread Michael McGrady
The Facade is just a pattern. A simple use of it in this case. If you want the code, request it at [EMAIL PROTECTED] At 09:07 AM 1/15/2004, you wrote: I kind of thought the example i gave did that, although i did just have dummy text for the path to image. Passing a few parameters or setting

Hi

2004-01-15 Thread Yajamanyam Venugopal
Hi , Can anybody help me when we get the following exception ActionFormBeans collection]: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798) Action mappings are avialable My context

Can I use template library tags directly with struts-faces?

2004-01-15 Thread Diego Louzán Martínez
I'm porting a Struts application to JSF using struts-faces. Thisapplication uses the template tags from Struts and for now I don'twant to migrate them to Tiles. My question is: can I use template tagsdirectly with the implementation of the request processor ofstruts-faces (FacesRequestProcessor)

RE: Form submission

2004-01-15 Thread Gopalakrishnan, Jayesh
You cannot nest these tags, inner tags must close b4 you close the outer ones.. You could give this a try, bean:define id=suffix name=userQuestionaireForm property=filterConstant html:form action=%=(suffix.equals(MP)) ? /UpdateUserQstMP : /UpdateUserQst% You get the idea right... -jayash

RE: Hi

2004-01-15 Thread Gopalakrishnan, Jayesh
try with html:form action=/techinicalStructure The context root the url mapping(.do) for struts will be taken care of. -jayash -Original Message- From: Yajamanyam Venugopal [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 9:23 AM To: [EMAIL PROTECTED] Subject: Hi Hi ,

action-path question

2004-01-15 Thread Ciaran Hanley
Hey, Is it possible to use the same action path for two different inputs action path=/user type=com.myweb.application.actions.UserAction name=userForm scope=request input=? attribute=userForm / Id like the input to come from addUser.jsp if its an add and

RE: action-path question

2004-01-15 Thread Saul Q Yuan
I don't think input accepts dynamcic values, but you can do the following to accomplish the same thing. You can define two forwards instead inside your action mapping, say, forward name=addInput path=/addUser.jsp / forward name=updateInput path=/updateUser.jsp / And in your action class, check

Q: html:img question

2004-01-15 Thread Jim Anderson
I'm converting a perl web app to Java/Struts and have run into a couple of problems converting html files. First, I started converting img tags to html:img but discovered that a number of them use the name attribute with javascript to implement mouseover popup menus, e.g. img

RE: Tomcat error with compiling JSPs

2004-01-15 Thread David Friedman
I have mine installed and working fine with a CATALINA_HOME of D:\Program Files\Apache Group\Tomcat 4.1. I had trouble with the J2SDK and JASPER until I changed those environmental variables/paths to be the short names of the paths (i.e. without spaces). Those can be seen using the command dir

Re: action-path question

2004-01-15 Thread Mark Lowe
you could have a /user/add and a /user/update. If you're reusing the same form then have the action as a variable. cheers mark On 15 Jan 2004, at 21:01, Ciaran Hanley wrote: Hey, Is it possible to use the same action path for two different inputs action path=/user

Re: action-path question

2004-01-15 Thread Michael McGrady
input is really more where it goes back to rather than where it came from. You can make it go back to wherever you like by the appropriate use of forward classes. At 02:32 PM 1/15/2004, you wrote: you could have a /user/add and a /user/update. If you're reusing the same form then have the

RE: Notify a user if he is in a screen and the contents of that s creen is updated by another user

2004-01-15 Thread Nicholson, Robb
With a fat client, it would be relatively easy. In the stateless request/response world of web applications, your choices are going to be fairly limited. If I had to do that, the choices I would initially think of are: 1. Wait until user submits that form to the server to check. Easiest for

  1   2   >