Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Jose A. Corbacho
I meant, yep, using the plugin provided for jQuery.

On Wed, Oct 6, 2010 at 10:40 AM, Hantsy Bai  wrote:

>  There is a project which integrated JQuery into Struts2...
> http://code.google.com/p/struts2-jquery/
>
> The dojo plugin shipped with Struts 2 is too old...
>
> Hantsy
>
> 于 2010/10/6 11:28, Jose A. Corbacho 写道:
>
>  I changed to jQuery not long time ago and I have to say the system has
>> improved its performance (I was using before the dojo plugin) as well as
>> the
>> code being cleaner. You'll still need to do some "javascripting" but using
>> jQuery API that is, as said, cleaner.
>>
>> On Wed, Oct 6, 2010 at 10:05 AM, Yanto Bong  wrote:
>>
>>  Hi All,
>>>
>>> We've use Struts 2+Spring+Hibernate as our framework and use JSP as the
>>> UI.
>>> After we review the application, our application having quite a lot Java
>>> Script that cause certain form not working propertly in one of the
>>> browser.
>>>
>>> Any suggesstion how we can reduce Java Script in the JSP ?
>>> is the JQuery is a good option ?
>>>
>>> Best Regards
>>> Yanto
>>>
>>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Jose A. Corbacho
I changed to jQuery not long time ago and I have to say the system has
improved its performance (I was using before the dojo plugin) as well as the
code being cleaner. You'll still need to do some "javascripting" but using
jQuery API that is, as said, cleaner.

On Wed, Oct 6, 2010 at 10:05 AM, Yanto Bong  wrote:

> Hi All,
>
> We've use Struts 2+Spring+Hibernate as our framework and use JSP as the UI.
> After we review the application, our application having quite a lot Java
> Script that cause certain form not working propertly in one of the browser.
>
> Any suggesstion how we can reduce Java Script in the JSP ?
> is the JQuery is a good option ?
>
> Best Regards
> Yanto
>


Re: Form submit always redirects to the action page instead of the target div

2010-03-06 Thread Jose A. Corbacho
I already had tried with sx:submit but I got the same problem

On Fri, Mar 5, 2010 at 2:45 PM, Johannes Geppert  wrote:

>
> i think you must use
>
> 
>
>
> instead of
>
> 
>
> Best Regards
>
> Johannes Geppert
>
>
> mccorby wrote:
> >
> > Hi all,
> > All the forms in my application redirect to the the action associated
> > instead of the target div.
> >
> > I'm using Struts 2.1.6
> >
> > Here is the code:
> >
> > 
> >
> > 
> > 
> >
> > I also try with
> > 
> >
> > having
> >
> > 
> > 
> >
> > Doing it using   works but it's not what I'm looking for.
> >
> >  is defined in the pages
> >
> > Thanks
> >
> >
>
>
> -
> ---
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
> --
> View this message in context:
> http://old.nabble.com/Form-submit-always-redirects-to-the-action-page-instead-of-the-target--div-tp27790299p27790804.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: WARNING: No configuration found for the specified action:

2010-03-04 Thread Jose A. Corbacho
Remove ".action" from wrote:

>
> Hi ,
>  I am getting the following log in geronimo for few action classes only :
> Geronimo log shows:
> 2010-03-01 2:01:53,582 WARN  [Form] No configuration found for the
> specified
> action: 'SubmitSearchText.action' in namespace: '/text'. Form action
> defaulting to 'action' attribute's literal value.
>
> Following is struts.xml :
>
>  class="com.presentation.action.SearchAction">
>text
>/WEB-INF/jsp/search/search.jsp
> name="input">/WEB-INF/jsp/search/search.jsp
> type="redirect-action">ResultsText
>
> 
>
> Following is the form set in jsp:
>  namespace="/text">
>
> Kindly help me to remove the warnings from the server log.
>
> Thanks,
> SGupta
>
> --
> View this message in context:
> http://old.nabble.com/WARNING%3A-No-configuration-found-for-the-specified-action%3A-tp23112439p27790799.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Form submit always redirects to the action page instead of the target div

2010-03-04 Thread Jose A. Corbacho
Hi all,
All the forms in my application redirect to the the action associated
instead of the target div.

I'm using Struts 2.1.6

Here is the code:


   



I also try with


having




Doing it using   works but it's not what I'm looking for.

 is defined in the pages

Thanks


Re: InvalidPathException processing form

2010-02-21 Thread Jose A. Corbacho
Hi

Try using this:

"
type="text/css"/>

On Mon, Feb 22, 2010 at 11:01 AM, Jim Kennedy wrote:

> OK, this is solved, but I'm not sure why changing this line of code solved
> the problem.  I will explain.
>
> I have a page called default.jsp and it contains the form as shown in my
> previous email.  This page/form has never had an issue displaying.  I only
> see the error stack trace when I submit the form causing validation to
> fire.
> In the head of this page I have the following:
>
> 
>
> This is the line causing the issue because the path is wrong (I guess???).
> When I change the line to
>
> 
>
> my logs are clean and the problem disappears (since the href is corrected).
> Very odd why a simple html tag like  causes issues with struts.
> And, Yes, the 2nd version of the link tag is correct because I am not
> deploying off the root.
>
> Anyone know why this could happen.  thanks
>
> -Original Message-
> From: Jim Kennedy [mailto:jgkenn...@mindspring.com]
> Sent: Sunday, February 21, 2010 6:37 PM
> To: 'Struts Users Mailing List'
> Subject: InvalidPathException processing form
>
> I have a fairly simple form at this point and I am getting the above
> referenced exception when validation fails.  Full exception is at the
> bottom
> of this email.  When my servlet-mapping is set to /run/* I get this
> exception in my logs, but application seems to work.  If I change my
> servlet-mapping to something like *.do and the form action to /quick.do,
> the
> application continues to work and I DON'T get the exception.  These don't
> look critical, but I am not used to seeing this type of
> exception/error/warning and want to understand what is going on here.
>
> It should be perfectly acceptable for me to use either technique.  I am
> using struts 1.3.10.
>
> web.xml:
>
>
>   action
>
> org.apache.struts.action.ActionServlet
>   
> config
> /WEB-INF/struts-config.xml
>   
>   2
>
>
>
>
>
>  action
>  /run/*
>
>
> struts.xml:
>   
>
> type="com.rentworx.subsite.sc.struts.QuickSearchForm"/>
>
>
>
> 
>
>
>
>
>path="/Welcome"
>forward="/welcome.jsp"/>
>
>path="/search**"
>type="com.rentworx.subsite.sc.struts.SearchAction">
>
>
>
>path="/idx/*"
>
> type="com.rentworx.subsite.sc.struts.IDXSearchAction">
>
>
>
>path="/quick"
>
> type="com.rentworx.subsite.sc.struts.ProcessSearchAction"
>name="quickSearchForm"
>scope="request"
>input="/default.jsp"
>validate="true">
> path="/results.jsp">
>
>
>
>
>
> default.jsp:
>
>
>
> />:
>
>
> header="" footer="" prefix="" suffix=""/>
>
>county name:
> 
> header="" footer="" prefix="" suffix=""/>
>
>
>
>
>
> Exception:
>
> 
> *
> 2010-02-21 18:34:23,273 WARN
> [org.apache.struts.chain.commands.AbstractExceptionHandler] Unhandled
> exception
> org.apache.struts.chain.commands.InvalidPathException: No action config
> found for the specified url.
>at
>
> org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelect
> Action.java:71)
>at
>
> org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase
> .java:51)
>at
> org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
>at
>
> org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:30
> 5)
>at
> org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
>at
>
> org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequest
> Processor.java:283)
>at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:290)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:206)
>at
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
> va:96)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDo

Re: Content DIV update strategy

2010-02-20 Thread Jose A. Corbacho
Finally fixed it as follows:

In the main page:






Links that have to display contents target "contenDiv"

Thanks!

On Sat, Feb 20, 2010 at 9:49 AM, Martin Gainty  wrote:

>
> i would suggest including handler attribute e.g.
>
> 
> function handler(widget,node) {
>  node.innerHtml="new content goes here";
> }
> 
>
>  handler="hander" >
> 
>
> i would suggest reading and studying XMLHttpRequest for an understanding of
> Asynchronous Request Model as implemented by AJAX..
>
> Saludos Cordiales,
> Martin Gainty
> __
> Porfavor no modifica o interrupta esta communicacion/Please dont interrupt
> or modify this transmission.
>
> > From: mcco...@gmail.com
> > Date: Sat, 20 Feb 2010 09:20:25 +0700
> > Subject: Content DIV update strategy
> > To: user@struts.apache.org
> >
> > Hi all,
> > I would like your advise for a problem I'm facing with sx:div.
> >
> > I'm using JDK 1.5, Struts 2.1.6 and Firefox 3.0.18 under Ubuntu.
> >
> > In our application, we have a central sx:div in the Main action page
> where
> > the content is displayed. It is declared as follows:
> >
> >  > executeScripts="true">
> >  > executeResult="true"/>  
> > 
> >
> >
> > Then, the action ListOwnProjects displays as follows:
> >
> > 
> > 
> > 
> > 
> >   
> >  
> >
> >
> > This means (or so is my understanding) that the content div should be
> > updated from an element inside itself. This, however, brings the whole
> page
> > (Main) into "contentDiv" and not the content of "ViewOwnProject" action.
> >
> > The different JSPs are placed correctly and struts.xml associates the
> > actions with the proper files (everything is ok if I call these actions
> > separately).
> >
> >  is set and working in other places of the code.
> >
> > Any hint?
> > Thanks,
> >
> > Jose A. Corbacho
>
> _
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> http://clk.atdmt.com/GBL/go/201469226/direct/01/
>


Content DIV update strategy

2010-02-19 Thread Jose A. Corbacho
Hi all,
I would like your advise for a problem I'm facing with sx:div.

I'm using JDK 1.5, Struts 2.1.6 and Firefox 3.0.18 under Ubuntu.

In our application, we have a central sx:div in the Main action page where
the content is displayed. It is declared as follows:


  



Then, the action ListOwnProjects displays as follows:





  
 


This means (or so is my understanding) that the content div should be
updated from an element inside itself. This, however, brings the whole page
(Main) into "contentDiv" and not the content of "ViewOwnProject" action.

The different JSPs are placed correctly and struts.xml associates the
actions with the proper files (everything is ok if I call these actions
separately).

 is set and working in other places of the code.

Any hint?
Thanks,

Jose A. Corbacho