Re: Create button instead of html:link to JSP page

2001-10-28 Thread David M. Karr

> "martin" == martin cooper <[EMAIL PROTECTED]> writes:

martin> In that case, do you really need to use the  tag? Wouldn't the
martin> regular HTML  tag meet your needs instead?

I thought that html:form transparently handles URL rewriting (or something
related to that).  Is that not the case?

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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




logic:foward results in IllegalStateException

2001-10-28 Thread Calvin Lau

I currently have a welcome page that requires an action be
done to grab announcements from the db.  On my welcome page,
"index.jsp", I have:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



Under struts-config.xml's global fowards, I have:


And under struts-config-xml's action-mappings I have:

  


When I hit my homepage, it loads fine but I find this in the
log file:
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp
threw exception
java.lang.IllegalStateException
 at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:159)

 at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)

 at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)

 at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)

 at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:176)

 at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198)

 at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193)

 at org.apache.jsp.index$jsp._jspService(index$jsp.java:89)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

This only happens with the forwarding.  Anyone know how I
can fix this?

Calvin


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




Re: To Strut or not to Strut that is the question?

2001-10-28 Thread Ted Husted

iT meDic wrote:
> Can you please give me pros / cons of using struts and examples of major
> websites using it.

The known public examples are listed at 

http://husted.com/struts/resources.htm#sites


> How can i make debugging easier for the senior developers(ability to find
> the classes rapidly rather than look at struts.xml / jsp page to find which
> classes they are looking for)?

A property designed Struts application will list *everything* in the
Struts-config, which I think is a great advantage over any other
approach. You can also see where the flow is going ~without~ consulting
the source for dozens of classes. Sometimes, it's just hard to put new
wine in old bottles ;-)


> And how can i convince my development director that it will not break
> just before the final release of the website?

It's open source, and can be reviewed just like the rest of your code.
(And it is also better *documented* than most of the "production" code
I've seen.)

The primary Struts developer, Craig McClanahan, not only wrote most of
Tomcat 4, he is now the implementation engineer for Sun's new Web
Services package. I'd think most development directors would like to
have people like Craig on their "team". ;-)


> Who do we call if we find bugs?(rather than posting message on the boards)

There are a number of Struts consultants listed at 

http://husted.com/struts/resources.htm#consultants

It's also important to remember that since it's open source, you can
make any fixes you deem necessary without anyone's help ;-)


>they are saying that it is open source therefore it is impossible to 
incorporate it on a production release

The Apache License permits use of the software in a commercial release.
No worries there!


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

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




newbie got struck with error!!

2001-10-28 Thread Abhishek Srivastava

Hello all,

I tried my first action mapping sample today and I am facing the following
problem.

-
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:888)
at org.apache.struts.digester.SetNextRule.end(SetNextRule.java:156)
at org.apache.struts.digester.Digester.endElement(Digester.java:409)
at
org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java
:347)
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
lidator.java:1480)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1809)
---

I have copied the struts.jar into the web-inf/lib directory.

Attached is a zip file with the code of my application. I would very greatly
appreciate any help.

regards,
Abhishek.

 test.zip

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


Tiles Problem

2001-10-28 Thread Darryl Pentz

Hi all,

I sent this email yesterday but it doesn't seem to have gotten through to 
the list, so I'm resending. Basically, I have a problem with Tiles execution 
of templates (components). I'm using the design where the main body of the 
page is inline to the  tag. In other words. I have:


   
   
   

   ... main body HTML here ...

   


This helps me eliminate the need for duplication of the pages. I thought it 
was working fine when I got the first page of my search page functionality 
to work. However when I re-run the search, the page simply redisplays the 
results of the first search, even though the Struts Action class correctly 
goes off and retrieves the results of the second search and places the 
result in the session.

I placed a simple <% System.out.println("Top of page reached."); %> above 
the insert tag and it is displayed on the console on the search retry, so it 
seems like somethings hanging trying to execute the template tags for the 
second time. One time, in frustration, I hit the 'Search' button numerous 
times, and when I Ctrl-C'ed the app server, a whole bunch of 'Connection 
reset by peer' stack traces appeared before the app server shut down, 
indicating that my requests were waiting somewhere. Where? I don't know.

So if someone has some idea where things might be going wrong, I'd 
appreciate any pointers. Cedric? Is there something in my code I should look 
for. It's not hanging at a point that it could be due to my code having a 
threadlock so I'm confused.

thanks in advance,
Darryl Pentz

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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