Re: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread Reinhard Spisser
struts-menu.sourceforge.net

The Description says:
Web menuing framework for JSP and Struts based applications. Menus can
be defined in an XML file and displayed through the use of JSP tags.
Support for dynamic javascript menus is included.

Reinhard

Il ven, 2002-11-15 alle 12:07, Zsolt Koppany ha scritto:
> Hi,
> 
> what is struts-menu? Where can I find more info about it?
> 
> Zsolt
> 
> On Thursday 14 November 2002 23:30, Karr, David wrote:
> > I noticed the same problem when I tried this casually a couple of days ago.
> >  I haven't had the chance to get any more detailed information, or debug
> > it.  I'm using Tomcat 4.1.12.
 
> >
> > > -Original Message-
> > > From: Jeff Born [mailto:jborn@;gr.com]
> > > 
> > > Sounds interesting to me also.  I am using Struts 1.1b2... The readme
> > > included in the file is actually an almost exact version of 
> > > the message I
> > > found using google (There was a huge thread in Dynamic select 
> > > menu in JSP on
> > > when not to post) That prior post in struts-dev just 
> > > refered to struts
> > > 0.5, so it was an old post.
> > >  
> > > Given all that; In the StrutsMenu-1.1.zip in the 
> > > StrutsMenu-1.1\webapps
> > > directory is a file called struts-menu.war.  I hoped I would 
> > > be able to
> > > deploy this to Tomcat and have it just work.  It didn't.
> > >  
> > > I also found reference to basebeans, so I went there and they 
> > > get the same
> > > error message as when I deploy it to Tomcat 4.1.
> > >  
> > >  
> > > 
> > >   -Original Message- 
> > >   From: Eddie Bush [mailto:ekbush@;swbell.net] 
> > >   Sent: Thu 11/14/2002 5:06 PM 
> > >   To: Struts Users Mailing List 
> > >   Cc: 
> > >   Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1
> > >   
> > >   
> > > 
> > >   That's odd.  The README in the 1.1 version says it 
> > > requires Struts
> > > 1.1.
> > >Perhaps you downloaded the wrong archive?
> > >   
> > >   http://sourceforge.net/projects/struts-menu/
> > >   http://sourceforge.net/project/showfiles.php?group_id=48726
> > >   
> > >   I haven't used it - just downloaded it because it sounded
> > > interesting.
> > >The version I got said it required 1.1.
> > >   
> > >   Jeff Born wrote:
> > >   
> > >
> > >   >
> > >   >
> > >   >I found a message in struts-dev about struts-menu, but 
> > >
> > > seems rather
> > > old
> > >
> > >   >refers to Struts 0.5.  From that though I believe I 
> > >
> > > need to load the
> > >
> > >   >menu-config.xml via an Extended Action Servlet.  So 
> > >
> > > far I've had no
> > > luck
> > >
> > >   >doing this.
> > >   >
> > >   >
> > >   >
> > >   >Thanks,
> > >   >
> > >   >jb
> > >   >
> > >   >-Original Message-
> > >   >From: V. Cekvenich [mailto:vicc@;users.sourceforge.net]
> > >   >Subject: Re: Dynamic select menu in JSP
> > >   >
> > >   >
> > >   >Regarding menus, I use struts - menu from sourceforge.
> > >   >You can see struts menu runing at baseBeans.com live.
> > >   >.V
> > >   >
> > >
> > >   --
> > >   Eddie Bush
> > >   
> > >   
> > >   
> > >   
> > >   --
> > >   To unsubscribe, e-mail:
> > > 
> > >   For additional commands, e-mail:
> > > 
> > >   
> > >   
> > > 
> > > 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-14 Thread Reinhard Spisser
Struts-menu requires 1.1 of struts; you need to configure it as a
plugin.

Struts-menu is a very interesting plugin, it saved us a lot of work  in
handling menus. 



Reinhard

Il gio, 2002-11-14 alle 23:06, Eddie Bush ha scritto:
> That's odd.  The README in the 1.1 version says it requires Struts 1.1. 
>  Perhaps you downloaded the wrong archive?
> 
> http://sourceforge.net/projects/struts-menu/
> http://sourceforge.net/project/showfiles.php?group_id=48726
> 
> I haven't used it - just downloaded it because it sounded interesting. 
>  The version I got said it required 1.1.
> 
> Jeff Born wrote:
> 
> >
> >
> >I found a message in struts-dev about struts-menu, but seems rather old
> >refers to Struts 0.5.  From that though I believe I need to load the
> >menu-config.xml via an Extended Action Servlet.  So far I've had no luck
> >doing this.
> >
> >
> >
> >Thanks,
> >
> >jb
> >
> >-Original Message-
> >From: V. Cekvenich [mailto:vicc@;users.sourceforge.net]
> >Subject: Re: Dynamic select menu in JSP
> >
> >
> >Regarding menus, I use struts - menu from sourceforge.
> >You can see struts menu runing at baseBeans.com live.
> >.V
> >
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: StrutsTestCase + overriding setUp without calling super.setUp()ERROR

2002-11-14 Thread Reinhard Spisser
You need to call super.setUp()  before super(testname) .

I found that adding the following code:

 public void setUp() {
try{
super.setUp();
}
catch(Exception e){
}

   
}

made it work correctly.

Il gio, 2002-11-14 alle 11:58, Maarten Volders ha scritto:
> Hi, i'm just starting to use the wonderfull world of extra work :) using
> the StrutsTestCase. But when I try the test a rather basic program then
> I get the error (see at the end of the page) that I'm overriding the
> setUp methode and, but I'm NOT overriding it??? I have tried to override
> the setUp methode, including the super.setUp() method, but he still
> gives the same error??? 
> 
> Has anyone had this problem before?
> 
> Thx
> 
> using JUnit 3.7 and Tested it on StrutsTestCase v1.8 and 1.9, but the
> same problem on each of the versions.
> 
> - Begin code -
> import servletunit.struts.MockStrutsTestCase;
> 
> public class SearchXtantActionTest extends MockStrutsTestCase {
> 
> public SearchXtantActionTest(String testName) {
> super(testName);
> }
> 
> public void testLogonSuccess() {
> System.out.println("test 123");
> }
> 
> public static void main(String[] args) {
> junit.textui.TestRunner.run(SearchXtantActionTest.class);
> }
> }
> - end code -
> 
> 
> - Begin error -
> warning(junit.framework.TestSuite$1)junit.framework.AssertionFailedError
> : Exception in constructor: testLogonSuccess
> (junit.framework.AssertionFailedError: You are overriding the setUp()
> method without calling super.setUp().  You must call the superclass
> setUp() method in your TestCase subclass to ensure proper
> initialization.
>   at
> servletunit.struts.MockStrutsTestCase.init(MockStrutsTestCase.java:91)
>   at
> servletunit.struts.MockStrutsTestCase.setConfigFile(MockStrutsTestCase.j
> ava:337)
>   at
> be.milieuinfo.cbb.ui.SearchXtantActionTest.(SearchXtantActionTest.
> java:9)
>   at java.lang.reflect.Constructor.newInstance(Native Method)
>   at
> be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja
> va:18)
> )
>   at
> be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja
> va:18)
> - End error -
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




NullpointerException in ActionForms

2002-11-07 Thread Reinhard Spisser
Hi all,

i was wondering how to handle correctly the following behaviour:
if a user calls directly from the url an action that has a Jsp in his
input and validate=true, i get a Nullpointerexception inside the
validate().

I think that this happens because the FormBean has never been
initialized with the values from the Jsp (the jsp has not been
displayed). All values in the FormBean are nulls.


I have added an instruction at the beginning of the validate() that
checks if one of the text fields are null, the validate returns null. 

Is there a better way to handle this? 

Thanks 

Reinhard




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




validate() in ActionForms

2002-11-07 Thread Reinhard Spisser
Hi all,

we're using Struts 1.1b2 to develop a Web Application.

we're having a  strange behaviour. One of our Actions (ModifyUser) works
as follows:

modifyuser.do 
   - inizializes a new ModifyUserForm();
   - reads the data from db and fills out the  fields
   - puts the ModifyUserform() in session
   - forward to /jsp/user/modify/jsp.

After the user modifies some data and submits the form, the validate()
is called. As expected, struts shows the form if some errors occured;
but the form is not filled in with the latest modifications from the
user. Struts shows the form with the values from the bean inizialized in
modifyUser.do.

What is a correct solution for this? 

Thanks

Reinhard 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Get ans Set automatic

2002-10-25 Thread Reinhard Spisser
Netbeans 3.4 (www.netbeans.org) supports this feature. Netbeans is free.

Reinhard

Il ven, 2002-10-25 alle 09:49, BARADAT Benoit ha scritto:
> Hello,
> 
> I'm looking for a tool that do the java code for get and set automaticly.
> 
> Where can I find it ?
> 
> TIA
> 
> 

> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JDK 1.4 and struts

2002-10-22 Thread Reinhard Spisser
I'm using Struts 1.1b2, jdk1.4.1_01 without problems on my laptop
running RedHat 8.0. 

We've been working with Struts 1.1b2 and jdk 1.4, both on Linux (7.3,
8.0) and Windows 2000 since July and we didn't have any problems with
it.


Reinhard 

Il dom, 2002-10-20 alle 02:21, email ha scritto:
> 
> There were a couple of messages the other day concerning Struts failing
> to work correctly under the 1.4 JDK. I'd like to add some evidence to that.
> 
> Sun's 1.4 JDK (at least the Linux version) seems to have serious
> problems w/ the classpath. After upgrading to 1.4.0_01, and then
> 1.4.1_01, Struts no longer works on my machine. Specifically, when
> dispatching to an Action subclass, the JVM cannot seem to find
> org.apache.struts.action.Action -- despite knowing all about
> ActionServlet and a bunch of other classes in the struts.jar file. 
> 
> 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?
> 
> ---
> John Byrd
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: