The place to submit a question like this would be the Struts USER list. Also try to start with a new message addressed to [EMAIL PROTECTED] so that it doesn't get mixed in with another thread.

Meanwhile, Struts itself doesn't require JavaScript. The controller doesn't really even know that JavaScript exists. You can submit a form anyway you like and Struts will take what it gets.

The optional Validator package has an optional JavaScript validation mode, but you are not required to use that if you prefer not.

Changing text as users move down the list and such is a pure client-side issue. Whatever works without Struts will work just the same with Struts. Our main focus here is the part of the cycle where the request is submitted and a response is selected.

But, again, questions like this are best submitted to the USER list.

-Ted.

Raghu.Ramakrishnan wrote:

Hi,


I would be obliged if someone could help me out:

1) I would like to know how to submit a form using struts without using
Java Script.

2) I would like to know how to display text, when the user moves through
a select box. When the user moves down, I would like to display text in
the side.=20

Thanks, Raghu


-----Original Message-----
From: adam kramer [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:10 PM
To: Struts Developers List
Subject: Re: Problems with exercise-taglib, link tag, or modules?



On Wed, 22 Jul 2003, David M. Karr wrote:


I've been working on some minor updates to Struts-EL, to match recent changes to the base tag library, so I've been running through some tests. I'm using WebLogic 8.1 for these tests.

I first noticed that the strutsel-exercise-taglib application dies with the following stack trace:

-----------------
java.lang.NullPointerException
       at

org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1591)


at

org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:536)


at

org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:431)


at

org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)


at

org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)


at


org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:675)


-----------------

Line 1591 is the following (after I added a couple of debugging lines):

String pagePattern = moduleConfig.getControllerConfig().getPagePattern();

I found that "moduleConfig" is null here, but I don't know why.


 Actually, I noticed computeURL has a backward compatibility hack that
gets the default app module config and stores it in the request scope if
one isn't already there. If you do have a recent version of struts
built, perhaps the webapp has an older version of struts installed.
Maybe replacing it with a fresh struts.jar would work.  It looks as
though this should not be happening. It doesn't happen when requesting
html-link.jsp in struts exercise-taglib webapp, but i havent installed
struts-el.

-adam k.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--
Ted Husted,
  Junit in Action  - <http://www.manning.com/massol/>,
  Struts in Action - <http://husted.com/struts/book.html>,
  JSP Site Design  - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to