Actually, it's not a bug in weblogic, I just found out how to make 
this work.  Apparently the onclick of the anchor tag does something 
bad and moving the code to the href does work.

Bad:
<a href="javascript:void(0)" onclick="submitAction()" >Click Here</a>


Good:
<a href="javascript:void(submitAction())" >Click Here</a>

Thanks,
Michelle


--- In [EMAIL PROTECTED], "mpopovits.rm" <[EMAIL PROTECTED]> wrote:
> I think it's a bug in Weblogic 6.1 SP3.
> 
> I have created a basic test application (non struts) and was able 
to 
> reproduce the error.  It's easy to reproduce after submitting a 
form 
> through the onclick of an anchor tag the serverside code can not 
> perform a requestdispatcher.forward.
> 
> I've sent my sample webapp to bea, I hope to hear from them soon.
> 
> Thanks for your support :)
> 
> -Michelle
> --- In [EMAIL PROTECTED], Jamie M <[EMAIL PROTECTED]> wrote:
> > hi,
> > 
> > I've experienced something similar to this, and it was
> > caused by some dodgy javascript which caused a servlet
> > to be called twice in rapid succession (on websphere,
> > not weblogic, but thats probably not significant). 
> > The second call interrupted the browser's first call
> > and an IOException was thrown (although I realise
> > you're not getting an IOException).
> > 
> > Does this happen with just one browser? (the problem I
> > experienced was browser-dependent).
> > 
> > Post some more of your html/javascript and it may make
> > it easier for others to provide you with help (e.g.
> > form and the submitAlphaSearchByLetter function, or at
> > least the part of it that posts to the servlet).
> > 
> > regards,
> > 
> > jamie
> > 
> > --- "mpopovits.rm" <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > 
> > > I get the following exception after I return forward
> > > (at the end of 
> > > my action dispatch method):
> > > java.net.SocketException: Software caused connection
> > > abort: socket 
> > > write error
> > > 
> > > I seems to happen after I invoke a javascript
> > > function to perform a 
> > > submit from an <A> anchor tag:
> > > 
> > > <a class="alphalink" href="javascript:void(0)" 
> > > onclick="submitAlphaSearchByLetter('E');">E</a>
> > > 
> > > If I were to invoke the javascript function, say
> > > from the onclick of 
> > > an <img> Image tag it works fine.  But the
> > > particular functionality 
> > > I'm working with now needs to use an anchor tag's
> > > onclick.
> > > 
> > > Does anyone have any idea why this might be
> > > happening?
> > > 
> > > I am running Weblogic 6.1 SP3 on Win2k with Tiles on
> > > Struts 1.0
> > > 
> > > Thanks,
> > > Michelle
> > > 
> > > 
> > > <Aug 1, 2002 4:57:31 PM EDT> <Error> <HTTP>
> > > <[WebAppServletContext
> > > (9890043,admin,/admin)] Servlet fa
> > > iled with IOException
> > > java.net.SocketException: Software caused connection
> > > abort: socket 
> > > write error
> > >         at
> > > java.net.SocketOutputStream.socketWrite0(Native
> > > Method)
> > >         at java.net.SocketOutputStream.socketWrite
> > > (SocketOutputStream.java:92)
> > >         at java.net.SocketOutputStream.write
> > > (SocketOutputStream.java:126)
> > >         at
> > >
> > weblogic.servlet.internal.ChunkUtils.writeChunkTransfer
> > > (ChunkUtils.java:224)
> > >         at
> > > weblogic.servlet.internal.ChunkUtils.writeChunks
> > > (ChunkUtils.java:200)
> > >         at
> > > weblogic.servlet.internal.ChunkOutput.flush
> > > (ChunkOutput.java:274)
> > >         at
> > > weblogic.servlet.internal.ChunkOutputWrapper.flush
> > > (ChunkOutputWrapper.java:154)
> > >         at
> > >
> > weblogic.servlet.internal.ServletOutputStreamImpl.flush
> > > (ServletOutputStreamImpl.java:123)
> > > 
> > >         at
> > >
> > weblogic.servlet.internal.ServletOutputStreamImpl.commit
> > > (ServletOutputStreamImpl.java:483
> > > )
> > >         at
> > >
> > weblogic.servlet.internal.RequestDispatcherImpl.forward
> > > (RequestDispatcherImpl.java:276)
> > >         at
> > >
> > org.apache.struts.tiles.ActionComponentServlet.doForward
> > > (ActionComponentServlet.java:389)
> > > 
> > >         at 
> > >
> > 
org.apache.struts.tiles.ActionComponentServlet.processActionForward
> > > (ActionComponentServle
> > > t.java:109)
> > >         at
> > > org.apache.struts.action.ActionServlet.process
> > > (ActionServlet.java:1595)
> > >         at
> > > org.apache.struts.action.ActionServlet.doPost
> > > (ActionServlet.java:509)
> > >         at javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:760)
> > >         at javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:853)
> > >         at
> > >
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > > (ServletStubImpl.java:265)
> > >         at
> > > weblogic.servlet.internal.TailFilter.doFilter
> > > (TailFilter.java:21)
> > >         at
> > > weblogic.servlet.internal.FilterChainImpl.doFilter
> > > (FilterChainImpl.java:27)
> > >         at 
> > >
> > 
> 
com.worldinsure.adminWs.presentation.struts.user.SimpleFilter.doFilter
> > > (Unknown Source)
> > >         at
> > > weblogic.servlet.internal.FilterChainImpl.doFilter
> > > (FilterChainImpl.java:27)
> > >         at 
> > >
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet
> > > (WebAppServletContext.java:25
> > > 52)
> > >         at
> > > weblogic.servlet.internal.ServletRequestImpl.execute
> > > (ServletRequestImpl.java:2260)
> > >         at weblogic.kernel.ExecuteThread.execute
> > > (ExecuteThread.java:139)
> > >         at
> > >
> > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> > > >
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > > <mailto:struts-user-unsubscribe@j...>
> > > For additional commands, e-mail:
> > > <mailto:struts-user-help@j...>
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - Feel better, live better
> > http://health.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@j...>
> > For additional commands, e-mail: <mailto:struts-user-help@j...>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@j...>
> For additional commands, e-mail: <mailto:struts-user-help@j...>


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

Reply via email to