RE: How to call an array setter

2002-09-27 Thread Adrian Brown
Hi, A String cannot be handed in when it expects a String array. Try public String[] getMessageCode() { return new String[] { string here }; } Adrian --- mail [EMAIL PROTECTED] wrote: getMessageCode() returns a String. The error message I get is: setMsgCode(java.lang.String[]) in

RE: How to call an array setter

2002-09-27 Thread Adrian Brown
for this, try: return new String[] { string1, string2, string3, string4, string5, string6, string7 }; Adrian --- mail [EMAIL PROTECTED] wrote: I placed this in the Action class and everything compiled, but it moved everything iteration of gridDetermination MessageCodes into only the

Re: Is httpServletRequest available in the ActionForm

2002-09-26 Thread Adrian Brown
Hi Scott, I think what you want to do is initialise the form values? If so, use a request parameter to define an initialise call on your Action, like this say: http://yourapp/upload.do?action=initialise check for this action parameter in your perform() method of your action, and then fill in

Re: Is httpServletRequest available in the ActionForm

2002-09-26 Thread Adrian Brown
, the solution is to use an action rather than trying to do this from the actionForm? Scott - Original Message - From: Adrian Brown [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 10:45 PM Subject: Re: Is httpServletRequest

Re: deploying to jboss/embedded tomcat

2002-09-21 Thread Adrian Brown
Hi Vincent, I'd suggest you might want to check out Ant for your deployment problems. I think you'll be pleased. Export your code from your Forte workspace and then use Ant to compile and jar/war/ear it up for you, then place the war/ear in the required directory in JBoss.

Apple Web Objects

2002-09-10 Thread Adrian Brown
Noting the spirit of open comment and criticism on Struts-alternative products in the J2EE community, I was mildly surprised to search the archives of theserverside and the Struts users list and find no reference to 'Apple Web Objects'. I was wondering if anyone had come across them in their

Re: How to use logic:present

2002-09-09 Thread Adrian Brown
Hi Keven, A trick for young players is that you may not have put in the line for the logic tags at the top of your jsp. Check you have this: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % If you do in fact have this, and you have the ability to set break points in your Struts code,

Re: Tiles and VAJ in WTE.

2002-09-03 Thread Adrian Brown
Hi Lee, I suggest you try grabbing the Tomcat plugin for VAJ, have a look in the archives for posts on that topic. Once you have Tomcat going under VAJ, getting tiles going is a breeze. Adrian --- struts user [EMAIL PROTECTED] wrote: Hello everyone, I would like to know if there is

Re: want to have errors to be dispalyed in diffrent page

2002-09-02 Thread Adrian Brown
Hi Jenny, In case no one else answered this, you need to put some errors in your session before they can be captured and displayed by the errorpage.jsp. Try the following code in your action: ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, new

Re: please, help! debugging Struts with VisualAge for Java and Tomcat

2002-08-26 Thread Adrian Brown
Hi Patria, I found this article by Sheldon Wosnick to be of great assistance. http://www7.software.ibm.com/vad.nsf/data/document2389?OpenDocument Let me know if you need any other help. Adrian --- Patria Lukman [EMAIL PROTECTED] wrote: Hello everyone I really don't want to bother you

Re: Problem with Proxy Pass

2002-08-22 Thread Adrian Brown
delete the 'pageContext' bit). Hope that is not to confusing! Adrian --- Adrian Brown [EMAIL PROTECTED] wrote: Hi Billy, What I had in mind was not really a silver bullet, but rather doing something like looking for a server property set in your web.xml file for the *actual* name

Re: action mapping error (2nd post)

2002-08-22 Thread Adrian Brown
Hi Frederic, Usually when I get this error it means something is amiss in the web.xml file, either it cannot be parsed because of unexpected elements or cannot be found at all. Check the output from the console where you started tomcat from, it should give you some clues. Adrian --- Frederic

Re: Problem with Proxy Pass

2002-08-21 Thread Adrian Brown
- Original Message - From: Adrian Brown [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 7:51 PM Subject: Re: Problem with Proxy Pass Hi Billy, This might not be optimal for you, but try altering

Re: Problem with Proxy Pass

2002-08-20 Thread Adrian Brown
Hi Billy, This might not be optimal for you, but try altering the org.apache.struts.taglib.html.BaseTag to generate the altered server name, this is one way to get it to work. You might want to control it using a properties lookup of some sort. If you want more details, let me know. Adrian

RE: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Adrian Brown
1. Check for ampersands () is your struts-config.xml file or other problems in your struts-config.xml file. 2. Remove them. Worked for me, good luck. --- Harinath [EMAIL PROTECTED] wrote: When the Exception javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans

Re: multiple values to check in logic tag?

2002-04-28 Thread Adrian Brown
This probably isn't what you want to hear, but this sounds like a great time to extend the logic tags in your own application and create your own Custom tag. There are a couple of examples in the example application. Adrian --- Rick Reumann [EMAIL PROTECTED] wrote: Is there a way to check

Re: I have entered the struts twilight zone --

2002-04-21 Thread Adrian Brown
Hi Team Gasoline, I found that I had to change the ErrorsTag to fix this. Try changing the following lines in the doStartTag() method of org.apache.struts.taglib.hmtl.ErrorsTag // Render header iff this is a global tag or there is an error for this property boolean