Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 9 Aug 2008 06:34:17 -0000 Issue 8186

user-digest-help

2008-08-09


Author LoginPost Reply

user Digest 9 Aug 2008 06:34:17 -0000 Issue 8186

Topics (messages 189854 through 189869):

Re: configuration doc for struts 1.3,tiles with Rad 7.5
 189854 by: sam thothi

Re: prepare called before "setId"
 189855 by: Torsten Krah

Re: problem with <s:text>
 189856 by: Muralidhar Y
 189857 by: Nils-Helge Garli Hegvik
 189858 by: Dave Newton
 189869 by: Muralidhar Y

Re: <s:action/> redirect does not work with Tiles.
 189859 by: Griffith, Michael *
 189860 by: Griffith, Michael *

Re: struts2 select onchange to trigger ajax call
 189861 by: Markus Doring

Problem executing scripts after AJAX request
 189862 by: oscar perez

Simple validation does not work
 189863 by: Anton Bashmakov
 189864 by: holod

Re: Popup window
 189865 by: Roger
 189866 by: Frans Thamura

[S2] general question about cookies and namespace
 189867 by: Pierre Thibaudeau
 189868 by: Pierre Thibaudeau

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

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

Attachment: user_189854.ezm (zipped)
Can i get struts 1.3 configuration document list if anyone has it.



On 8/7/08, sam thothi <samthothi@(protected):
>
> Dave,
>  i have all the s1.3 dependencies. i have a question in the doctypes for
> the strutscofig.xml
>
> Rightnow , i am running the application with the doctype in
> strutsconfig.xml as
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 1.1//EN" "
> http://struts.apache.org/dtds/struts-config_1_1.dtd">
>
> If i change it to 1.3 , then i get the following error in the tiles plugin
>
>
> <
> plug-in className=*"org.apache.struts.tiles.TilesPlugin"*>
>
> <set-property *property="definitions-config"* value=*
> "/WEB-INF/tiles-defs.xml"* />
>
> <set-property *property="definitions-parser-validate"* value=*"true"* />
>
> <set-property property=*"moduleAware"* value=*"true"* />
>
> </plug-in>
>
> The error would be Attribute-property has a runtime value of
> definitions-config. Property must reference a valid Java identifier.
>
>
>
> I doubt it may be the reason .
>
> Thanks in advance for the help.
>
>
>
>
>
>
>
> On 8/7/08, Dave Newton <newton.dave@(protected):
>>
>> Have you turned up logging and checked the logs to see if it says what
>> class you're missing? Do you have all the S1.3 dependencies?
>>
>> Dave
>>
>>
>> --- On Thu, 8/7/08, sam thothi <samthothi@(protected):
>>
>> > From: sam thothi <samthothi@(protected)>
>> > Subject: Re: configuration doc for struts 1.3,tiles with Rad 7.5
>> > To: "Struts Users Mailing List" <user@(protected)>,
>> newton.dave@(protected)
>> > Date: Thursday, August 7, 2008, 2:13 PM
>> > I am getting two errors while configuring
>> > when i change the class loader to multiple which is
>> > default , it's saying
>> >
>> > The JSP container failed to load the TagExtraInfo class
>> > [org.apache.struts.taglib.tiles.UseAttributeTei] from
>> > /WEB-INF/struts-tiles.tld
>> >
>> > [8/7/08 11:49:16:525 CDT] 0000000d FfdcProvider I
>> > com.ibm.ws.ffdc.impl.FfdcProvider logIncident *FFDC1003I*:
>> > FFDC Incident
>> > emitted on C:\Program
>> >
>> Files\IBM\SDP75Beta\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_1dfd1dfd_08.08.07_11.49.16.50912499.txt
>> > com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet
>> > 218
>> >
>> > [8/7/08 11:49:16:525 CDT] 0000000d extension W
>> > com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor
>> > createServletWrapper Servlet action is currently
>> > unavailable: *SRVE0203E*:
>> > Servlet [action]: org.apache.struts.action.ActionServlet
>> > was found, but is
>> > missing another required class.
>> >
>> > SRVE0206E: This error typically implies that the servlet
>> > was originally
>> > compiled with classes which cannot be located by the
>> > server.
>> > i change the class loader to single and it works fine. I
>> > want to know any
>> > jars i am missing to include struts 1.3 to work . If i
>> > change to single, my
>> > struts actions are working and tiles didn't work and
>> > throws class not found
>> > exception.
>> >
>> > would be great if you let me know anything i should add
>> > changing from struts
>> > 1.2 to struts 1.3.
>> >
>> > Thanks in advance for you help
>> >
>> >
>> > On 8/7/08, Dave Newton <newton.dave@(protected):
>> > >
>> > > --- On Thu, 8/7/08, sam thothi
>> > <samthothi@(protected):
>> > > > Any one can provide me with the configuration
>> > docs for
>> > > > struts 1.3,tiles with Rad 7.5.
>> > >
>> > > Configuration docs? Like what? The app is configured
>> > like any other RAD
>> > > app, and like any other Struts 1 app, AFAIK.
>> > >
>> > > Dave
>> > >
>> > >
>> > >
>> > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail:
>> > user-unsubscribe@(protected)
>> > > For additional commands, e-mail:
>> > user-help@(protected)
>> > >
>> > >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment: user_189855.ezm (zipped)
nvm, did find the anwer myself, i need to use the paramsPrepareParamsStack
interceptor stack instead of the default one.

--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a
completely unintentional side effect."
 -- Linus Torvalds

Attachment: smime.p7s (zipped)
Attachment: user_189856.ezm (zipped)
Hi dave here is my complete jsp code

<%@(protected)"
  pageEncoding="ISO-8859-1"%>
<%@(protected)"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
 <title><s:text name="P_Search_Page" /></title>
</head>
<body>
 <s:form action="executePoPSearch.action" >
   <table>
     <tr>
       <td><s:textfield name="searchText"
value="enter search keywords here" size="100"  /></td>
       <td><s:submit value="search" /></td>
     </tr>
   </table>  
 </s:form>
</body>
</html>


The result html page is as below



<html>
<head>
<title>search page | myPoPProject, by Paradigm PoP</title>
<link rel="stylesheet" href="/pop/struts/css_xhtml/styles.css"
type="text/css" />
<script type="text/javascript">
  // Dojo configuration
  djConfig = {
    baseRelativePath: "/pop/struts/dojo",
    isDebug: false,
    bindEncoding: "UTF-8",
    debugAtAllCosts: true // not needed, but allows the Venkman debugger
to work with the includes
  };
</script>
<script type="text/javascript"
    src="/pop/struts/dojo/dojo.js"></script>
<script type="text/javascript"
    src="/pop/struts/simple/dojoRequire.js"></script>
<script language="javascript" type="text/javascript"
src="/pop/scripts/prototype-1.6.0.2.js"></script>
<link rel="stylesheet" type="text/css" href="/pop/styles/pop.css" />

 
 

</head>
<body>
<div class="main">
<div class="header">
<h1>search page</h1>
</div>
<div class="content">
       
<form id="executePoPSearch" onsubmit="return true;"
action="executePoPSearch.action" method="post">
   <table>
      <tr>
          <td><div id="wwgrp_executePoPSearch_searchText"
class="wwgrp">

<div id="wwctrl_executePoPSearch_searchText" class="wwctrl">
<input type="text" name="searchText" size="100" value="enter search keywords
here" id="executePoPSearch_searchText"/></div> </div>
</td>
             <td><div align="right"
id="wwctrl_executePoPSearch_0"><input type="submit" id="executePoPSearch_0"
value="search"/>
</div> </td>
     </tr>
   </table>  
 </form>




</div>
</div>
<div class="footer">





<p>(c) 2008 Paradigm PoP. ALL INFORMATION PRESENTED HERE IS
CONFIDENTIAL.</p>
</div>
</body>
</html>



Warm regards,
Muralidhar Y
muralidhary@(protected)

US Main: 877 KENSIUM (536.7486)
India Main: +91 9949495511
India Fax:  +91 9949495522
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606


Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.

________________________________



-----Original Message-----
From: Dave Newton [mailto:newton.dave@(protected)]
Sent: Friday, August 08, 2008 4:25 PM
To: Struts Users Mailing List
Subject: Re: problem with <s:text>

--- On Fri, 8/8/08, Muralidhar Y <muralidhary@(protected):
> when I use
> <head>
>  <title><s:text name="P_Search_Page" /></title>
> </head>
>
> it also adding a header in the body tag like
>
> <div class="header">
> <h1>search page</h1>
> </div>

I find it unlikely that the <s:text.../> tag is adding an element to your
body element. AFAIK the text tag has no ability to do this. I'd suggest
posting more information about the source JSP, your configuration, etc.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Attachment: user_189857.ezm (zipped)
If "P_Search_Page" resolves to "search page | myPoPProject, by
Paradigm PoP" then "<h1>search page</h1>" can't be the same resource,
and therefore not from the same s:text. Are you using Tiles or
SiteMesh or something? (Other filters?) Seems to me that there's some
kind of templating going on, or you're not working on the JSP that you
think you're doing (for instance, where does the javascript come
from?)...

Nils-H

On Fri, Aug 8, 2008 at 2:42 PM, Muralidhar Y <muralidhary@(protected):
> Hi dave here is my complete jsp code
>
> <%@(protected)"
>   pageEncoding="ISO-8859-1"%>
> <%@(protected)"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
>     <title><s:text name="P_Search_Page" /></title>
> </head>
> <body>
>     <s:form action="executePoPSearch.action" >
>           <table>
>                <tr>
>                     <td><s:textfield name="searchText"
> value="enter search keywords here" size="100"  /></td>
>                     <td><s:submit value="search" /></td>
>                </tr>
>           </table>
>     </s:form>
> </body>
> </html>
>
>
> The result html page is as below
>
>
>
> <html>
> <head>
> <title>search page | myPoPProject, by Paradigm PoP</title>
> <link rel="stylesheet" href="/pop/struts/css_xhtml/styles.css"
> type="text/css" />
> <script type="text/javascript">
>   // Dojo configuration
>   djConfig = {
>     baseRelativePath: "/pop/struts/dojo",
>     isDebug: false,
>     bindEncoding: "UTF-8",
>     debugAtAllCosts: true // not needed, but allows the Venkman debugger
> to work with the includes
>   };
> </script>
> <script type="text/javascript"
>     src="/pop/struts/dojo/dojo.js"></script>
> <script type="text/javascript"
>     src="/pop/struts/simple/dojoRequire.js"></script>
> <script language="javascript" type="text/javascript"
> src="/pop/scripts/prototype-1.6.0.2.js"></script>
> <link rel="stylesheet" type="text/css" href="/pop/styles/pop.css" />
>
>
>
>
> </head>
> <body>
> <div class="main">
> <div class="header">
> <h1>search page</h1>
> </div>
> <div class="content">
>
> <form id="executePoPSearch" onsubmit="return true;"
> action="executePoPSearch.action" method="post">
>           <table>
>             <tr>
>                 <td><div id="wwgrp_executePoPSearch_searchText"
> class="wwgrp">
>
> <div id="wwctrl_executePoPSearch_searchText" class="wwctrl">
> <input type="text" name="searchText" size="100" value="enter search keywords
> here" id="executePoPSearch_searchText"/></div> </div>
> </td>
>                     <td><div align="right"
> id="wwctrl_executePoPSearch_0"><input type="submit" id="executePoPSearch_0"
> value="search"/>
> </div> </td>
>                </tr>
>           </table>
>     </form>
>
>
>
>
> </div>
> </div>
> <div class="footer">
>
>
>
>
>
> <p>(c) 2008 Paradigm PoP. ALL INFORMATION PRESENTED HERE IS
> CONFIDENTIAL.</p>
> </div>
> </body>
> </html>
>
>
>
> Warm regards,
> Muralidhar Y
> muralidhary@(protected)
>
> US Main: 877 KENSIUM (536.7486)
> India Main: +91 9949495511
> India Fax:  +91 9949495522
> Kensium
> 200 S Wacker Dr, Suite 3100
> Chicago, IL 60606
>
>
> Confidentiality Note:
> -----------------------------
> The information contained in this e-mail is strictly confidential and for
> the intended use of the addressee only. Any disclosure, use or copying of
> the information by anyone other than the intended recipient is prohibited.
> If you have received this message in error, please notify the sender
> immediately by return e-mail and securely discard this message.
>
> ________________________________
>
>
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@(protected)]
> Sent: Friday, August 08, 2008 4:25 PM
> To: Struts Users Mailing List
> Subject: Re: problem with <s:text>
>
> --- On Fri, 8/8/08, Muralidhar Y <muralidhary@(protected):
>> when I use
>> <head>
>>  <title><s:text name="P_Search_Page" /></title>
>> </head>
>>
>> it also adding a header in the body tag like
>>
>> <div class="header">
>> <h1>search page</h1>
>> </div>
>
> I find it unlikely that the <s:text.../> tag is adding an element to your
> body element. AFAIK the text tag has no ability to do this. I'd suggest
> posting more information about the source JSP, your configuration, etc.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_189858.ezm (zipped)
The extra markup is most certainly not coming from S2.

I don't know what paradigm pop is, or myPoPProject, and paradigmpop.org doesn't respond, but your answer lies there.

Dave


--- On Fri, 8/8/08, Muralidhar Y <muralidhary@(protected):

> From: Muralidhar Y <muralidhary@(protected)>
> Subject: RE: problem with <s:text>
> To: "'Struts Users Mailing List'" <user@(protected)
> Date: Friday, August 8, 2008, 8:42 AM
> Hi dave here is my complete jsp code
>
> <%@(protected)"
> contentType="text/html; charset=ISO-8859-1"
>   pageEncoding="ISO-8859-1"%>
> <%@(protected)"
> uri="/struts-tags"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>  
>  <title><s:text name="P_Search_Page"
> /></title>
> </head>
> <body>
>  <s:form action="executePoPSearch.action" >
>    <table>
>      <tr>
>        <td><s:textfield name="searchText"
> value="enter search keywords here"
> size="100"  /></td>
>        <td><s:submit value="search"
> /></td>
>      </tr>
>    </table>  
>  </s:form>
> </body>
> </html>
>
>
> The result html page is as below
>
>
>
> <html>
> <head>
> <title>search page | myPoPProject, by Paradigm
> PoP</title>
> <link rel="stylesheet"
> href="/pop/struts/css_xhtml/styles.css"
> type="text/css" />
> <script type="text/javascript">
>   // Dojo configuration
>   djConfig = {
>      baseRelativePath: "/pop/struts/dojo",
>      isDebug: false,
>      bindEncoding: "UTF-8",
>      debugAtAllCosts: true // not needed, but allows the
> Venkman debugger
> to work with the includes
>   };
> </script>
> <script type="text/javascript"
>    
> src="/pop/struts/dojo/dojo.js"></script>
> <script type="text/javascript"
>    
> src="/pop/struts/simple/dojoRequire.js"></script>
> <script language="javascript"
> type="text/javascript"
> src="/pop/scripts/prototype-1.6.0.2.js"></script>
> <link rel="stylesheet"
> type="text/css"
> href="/pop/styles/pop.css" />
>
>  
>  
>
> </head>
> <body>
> <div class="main">
> <div class="header">
> <h1>search page</h1>
> </div>
> <div class="content">
>        
> <form id="executePoPSearch"
> onsubmit="return true;"
> action="executePoPSearch.action"
> method="post">
>    <table>
>       <tr>
>           <td><div
> id="wwgrp_executePoPSearch_searchText"
> class="wwgrp">
>
> <div id="wwctrl_executePoPSearch_searchText"
> class="wwctrl">
> <input type="text" name="searchText"
> size="100" value="enter search keywords
> here"
> id="executePoPSearch_searchText"/></div>
> </div>
> </td>
>              <td><div align="right"
> id="wwctrl_executePoPSearch_0"><input
> type="submit" id="executePoPSearch_0"
> value="search"/>
> </div> </td>
>      </tr>
>    </table>  
>  </form>
>
>
>
>
> </div>
> </div>
> <div class="footer">
>
>
>
>
>
> <p>(c) 2008 Paradigm PoP. ALL INFORMATION PRESENTED
> HERE IS
> CONFIDENTIAL.</p>
> </div>
> </body>
> </html>
>
>
>
> Warm regards,
> Muralidhar Y
> muralidhary@(protected)
>
> US Main: 877 KENSIUM (536.7486)
> India Main: +91 9949495511
> India Fax:  +91 9949495522
> Kensium
> 200 S Wacker Dr, Suite 3100
> Chicago, IL 60606
>
>
> Confidentiality Note:
> -----------------------------
> The information contained in this e-mail is strictly
> confidential and for
> the intended use of the addressee only. Any disclosure, use
> or copying of
> the information by anyone other than the intended recipient
> is prohibited.
> If you have received this message in error, please notify
> the sender
> immediately by return e-mail and securely discard this
> message.
>
> ________________________________
>
>
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@(protected)]
> Sent: Friday, August 08, 2008 4:25 PM
> To: Struts Users Mailing List
> Subject: Re: problem with <s:text>
>
> --- On Fri, 8/8/08, Muralidhar Y
> <muralidhary@(protected):
> > when I use
> > <head>
> >  <title><s:text
> name="P_Search_Page" /></title>
> > </head>
> >
> > it also adding a header in the body tag like
> >
> > <div class="header">
> > <h1>search page</h1>
> > </div>
>
> I find it unlikely that the <s:text.../> tag is
> adding an element to your
> body element. AFAIK the text tag has no ability to do this.
> I'd suggest
> posting more information about the source JSP, your
> configuration, etc.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_189869.ezm (zipped)
Thank you so much.

Warm regards,
Muralidhar Y
muralidhary@(protected)

US Main: 877 KENSIUM (536.7486)
India Main: +91 9949495511
India Fax:  +91 9949495522
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606


Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.

________________________________



-----Original Message-----
From: Nils-Helge Garli Hegvik [mailto:nilsga@(protected)]
Sent: Friday, August 08, 2008 6:22 PM
To: Struts Users Mailing List
Subject: Re: problem with <s:text>

If "P_Search_Page" resolves to "search page | myPoPProject, by
Paradigm PoP" then "<h1>search page</h1>" can't be the same resource,
and therefore not from the same s:text. Are you using Tiles or
SiteMesh or something? (Other filters?) Seems to me that there's some
kind of templating going on, or you're not working on the JSP that you
think you're doing (for instance, where does the javascript come
from?)...

Nils-H

On Fri, Aug 8, 2008 at 2:42 PM, Muralidhar Y <muralidhary@(protected)>
wrote:
> Hi dave here is my complete jsp code
>
> <%@(protected)"
>   pageEncoding="ISO-8859-1"%>
> <%@(protected)"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
>     <title><s:text name="P_Search_Page" /></title>
> </head>
> <body>
>     <s:form action="executePoPSearch.action" >
>           <table>
>                <tr>
>                     <td><s:textfield name="searchText"
> value="enter search keywords here" size="100"  /></td>
>                     <td><s:submit value="search" /></td>
>                </tr>
>           </table>
>     </s:form>
> </body>
> </html>
>
>
> The result html page is as below
>
>
>
> <html>
> <head>
> <title>search page | myPoPProject, by Paradigm PoP</title>
> <link rel="stylesheet" href="/pop/struts/css_xhtml/styles.css"
> type="text/css" />
> <script type="text/javascript">
>   // Dojo configuration
>   djConfig = {
>     baseRelativePath: "/pop/struts/dojo",
>     isDebug: false,
>     bindEncoding: "UTF-8",
>     debugAtAllCosts: true // not needed, but allows the Venkman
debugger
> to work with the includes
>   };
> </script>
> <script type="text/javascript"
>     src="/pop/struts/dojo/dojo.js"></script>
> <script type="text/javascript"
>     src="/pop/struts/simple/dojoRequire.js"></script>
> <script language="javascript" type="text/javascript"
> src="/pop/scripts/prototype-1.6.0.2.js"></script>
> <link rel="stylesheet" type="text/css" href="/pop/styles/pop.css" />
>
>
>
>
> </head>
> <body>
> <div class="main">
> <div class="header">
> <h1>search page</h1>
> </div>
> <div class="content">
>
> <form id="executePoPSearch" onsubmit="return true;"
> action="executePoPSearch.action" method="post">
>           <table>
>             <tr>
>                 <td><div id="wwgrp_executePoPSearch_searchText"
> class="wwgrp">
>
> <div id="wwctrl_executePoPSearch_searchText" class="wwctrl">
> <input type="text" name="searchText" size="100" value="enter search
keywords
> here" id="executePoPSearch_searchText"/></div> </div>
> </td>
>                     <td><div align="right"
> id="wwctrl_executePoPSearch_0"><input type="submit"
id="executePoPSearch_0"
> value="search"/>
> </div> </td>
>                </tr>
>           </table>
>     </form>
>
>
>
>
> </div>
> </div>
> <div class="footer">
>
>
>
>
>
> <p>(c) 2008 Paradigm PoP. ALL INFORMATION PRESENTED HERE IS
> CONFIDENTIAL.</p>
> </div>
> </body>
> </html>
>
>
>
> Warm regards,
> Muralidhar Y
> muralidhary@(protected)
>
> US Main: 877 KENSIUM (536.7486)
> India Main: +91 9949495511
> India Fax:  +91 9949495522
> Kensium
> 200 S Wacker Dr, Suite 3100
> Chicago, IL 60606
>
>
> Confidentiality Note:
> -----------------------------
> The information contained in this e-mail is strictly confidential and for
> the intended use of the addressee only. Any disclosure, use or copying of
> the information by anyone other than the intended recipient is prohibited.
> If you have received this message in error, please notify the sender
> immediately by return e-mail and securely discard this message.
>
> ________________________________
>
>
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@(protected)]
> Sent: Friday, August 08, 2008 4:25 PM
> To: Struts Users Mailing List
> Subject: Re: problem with <s:text>
>
> --- On Fri, 8/8/08, Muralidhar Y <muralidhary@(protected):
>> when I use
>> <head>
>>  <title><s:text name="P_Search_Page" /></title>
>> </head>
>>
>> it also adding a header in the body tag like
>>
>> <div class="header">
>> <h1>search page</h1>
>> </div>
>
> I find it unlikely that the <s:text.../> tag is adding an element to your
> body element. AFAIK the text tag has no ability to do this. I'd suggest
> posting more information about the source JSP, your configuration, etc.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Attachment: user_189859.ezm (zipped)
Struts 2.0.11
Tiles 2.0.6

-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@(protected)]
Sent: Friday, August 08, 2008 1:37 AM
To: Struts Users Mailing List
Subject: Re: <s:action/> redirect does not work with Tiles.

2008/8/7 Griffith, Michael * <Michael.Griffith@(protected)>:
> I cannot make <s:action/> result go to a new page. Chaining the
result
> does work, but the response shows my entire tile set showing up in the
> inside tile, which is not what I want either.

Version of Struts and Tiles?

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Attachment: user_189860.ezm (zipped)
Jeromy,

Thanks for the replies.

>>In cases where I've needed this behaviour I've referenced the JSP
>>instead of a Tile.

Do you mean your result redirects to a JSP instead of a struts action?

MG


-----Original Message-----
From: Jeromy Evans [mailto:jeromy.evans@(protected)]
Sent: Friday, August 08, 2008 6:40 AM
To: Struts Users Mailing List
Subject: Re: <s:action/> redirect does not work with Tiles.

Griffith, Michael * wrote:
> Hello All,
>
>
>
> I cannot make <s:action/> result go to a new page. Chaining the
result
> does work, but the response shows my entire tile set showing up in the
> inside tile, which is not what I want either.
>
>  

Assuming Struts2, the s:action tag can only execute an action and
execute where that result can be included within the current
outputstream (eg. including a JSP fragment).

I redirect result makes no sense in this context as the output stream is

already open and written to.

I can confirm that a Tiles result (Struts2 result of type tiles) does
not work in this context either as it throws an exception that the
outputstream has already been opened (or something like that; I can't
recall exactly but it's in JIRA somewhere under the Tiles2 plugin).

In cases where I've needed this behaviour I've referenced the JSP
instead of a Tile.

Hope that helps,
Jeromy Evans


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Attachment: user_189861.ezm (zipped)

A little addition to my last post...

It all seemed to work fine, but some of my html content that got back had |
pipe symbols in image urls and Dojo did not seem to like that. My AJAX call
was brining back statistics images based on Google Charts. And those URLs
use | as dataset separators for labels. E.g. one of my response uses
"Nigde|Antalya|Adana|Mugla|Ïsparta / Konya|Karaman|Ïzmir" and looks like
that (look at underlying html if you are interested in the call):

http://chart.apis.google.com/chart?cht=p&chs=320x160&chl=Nigde|Antalya|Adana|Mugla|Ïsparta
/
Konya|Karaman|Ïzmir&chts=000000,16&chco=76A4FB,D7E9F5,18427D,80C65A,CA3D05,B4C24B,FF7C0A&chd=e:UeSkIUHrFIB7AA


As soon as there were pipe symbols in the image source url the image did not
get displayed. I couldnt figure out what exactly happened, but I am quite
certain it must be the struts bundled Dojo.

Therefore I finally went for plain self coded prototype javascript. Which
surprisingly for me is not much more complex. All I had to do was this bit
of scripting:

function updateByRegion(){
 var url = '<s:property value="imgByRegionUrl"/>';
 var params = { region: $F("regionClass") };
 var target = 'imgByRegion';  
 var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters:
params});
};


In context with the jsp page it looks like this (no need for struts ajax
divs anymore):

<s:form id="regionClassForm">
 <s:select id="regionClass" name="region" list="regionClasses" value="3"
theme="simple"/>
</s:form>
<s:url id="imgByRegionUrl" action="occResourceStatsByRegion"
namespace="/ajax"/>
<div id="imgByRegion">
 <s:action name="occResourceStatsByRegion" namespace="/ajax"
executeResult="true"/>
</div>

<script>
function updateByRegion(){
 var url = '<s:property value="imgByRegionUrl"/>';
 var params = { region: $F("regionClass") };
 var target = 'imgByRegion';  
 var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters:
params});
};
$('regionClass').observe('change', updateByRegion);
</script>  



works very fine and I have to say I am impressed how easy prototype is.
Markus






Markus Doring wrote:
>
> Thanks Dave, that works!
>
> I finally also found a working example here:
> http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html
>
> You can actually get rid of any javascript functions and just publish the
> topic in the onchange and use die struts div tag to do the rest:
>
>
> <s:form id="regionClassForm" theme="ajax"
> action="occResourceStatsByRegion" namespace="/ajax">
>  <s:hidden name="resource_id" value="%{resource_id}" />
>  <s:select name="region" list="regionClasses" value="region"
> onchange="dojo.event.topic.publish('imgByRegion_topic');return false;"
> theme="ajax"/>
> </s:form>
> <s:url id="imgByRegionUrl" action="occResourceStatsByRegion"
> namespace="/ajax" includeParams="none"/>
> <s:div id="imgByRegion" href="%{imgByRegionUrl}" formId="regionClassForm"
> listenTopics="imgByRegion_topic" theme="ajax"></s:div>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189862.ezm (zipped)
Hi all,
I am using struts 2.1.2 and I have a problem when I try to execute scripts
in the returned content when using sx tags. The scripts do not seem to run
even though executeScripts is set to true. This occurrs if I have sx tags
within the return content. If I only have plain html and the scripts, the
scripts run fine. I have been facing many problems with scripts and sx tags
and I was wondering if there is a way to call a javascript function after
the request has been processed and rendered. afterNotifyTopics does not
assure that the content has been rendered already and if I include the
scripts in the returned snippet those are not run if there is sx tags on it
so I really dont know whether there is a solution for my problem...
Br,
Oscar

Attachment: user_189863.ezm (zipped)
Hi,
I have strange situation, here is my form :

  <body>
    <s:form action="Colors" >
       <s:textfield label="Name" name="name" />
       <s:submit />
    </s:form>

  </body>

Here is the action :

public class Colors extends ActionSupport {

  private String name;

  @Override
  public String execute() throws Exception {
    return SUCCESS;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
}

Here is the part of struts.xml :

    <action name="Colors_*" method="{1}"
class="com.anton.noname.actions.Colors" >
       <result type="redirectAction">/Welcome</result>
       <result name="input">/Colors.jsp</result>
    </action>

and finally Colors-validation.xml :

<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">

<validators>
  <field name="name">
    <field-validator type="requiredstring">
       <message>You must enter a name</message>
    </field-validator>
  </field>
</validators>

And there is stake trace that I get :

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

javax.servlet.ServletException: Filter execution threw an exception
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96)

*root cause*

java.lang.ExceptionInInitializerError
 com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs (ValidatorFileParser.java:192)
 com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (ValidatorFileParser.java:72)
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (AnnotationActionValidatorManager.java:361)
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs (AnnotationActionValidatorManager.java:252)
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs (AnnotationActionValidatorManager.java:340)


org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java:504)
 org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:419)
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96)

*root cause*

java.lang.IllegalArgumentException: URI scheme is not "file"
 java.io.File.<init>(File.java:366)
 com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators (ValidatorFactory.java:314)
 com.opensymphony.xwork2.validator.ValidatorFactory.<clinit>(ValidatorFactory.java:224)
 com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs (ValidatorFileParser.java:192)
 com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (ValidatorFileParser.java:72)
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (AnnotationActionValidatorManager.java:361)


Can somebody tell me why the simplest validation show this behavior?
--
Best regards,
Bashmaкov Anton

Attachment: user_189864.ezm (zipped)

If you are using IBM WebSphere 6.x, that's ok.
I've faced the same problem: http://jira.opensymphony.com/browse/XW-651

So, I've simply checked out branch of x-work, packaged it using Maven and
now stupid IBM App server allows me to use validation.

Anyway, you you aren't WebSphere user, I suggest you to perform the same
operation.

P.S.

I prefer to use annotations. They are more comfortable.



JAnton wrote:
>
> Hi,
> I have strange situation, here is my form :
>
>   <body>
>      <s:form action="Colors" >
>         <s:textfield label="Name" name="name" />
>         <s:submit />
>      </s:form>
>
>   </body>
>
> Here is the action :
>
> public class Colors extends ActionSupport {
>
>   private String name;
>
>   @Override
>   public String execute() throws Exception {
>      return SUCCESS;
>   }
>
>   public String getName() {
>      return name;
>   }
>
>   public void setName(String name) {
>      this.name = name;
>   }
> }
>
> Here is the part of struts.xml :
>
>      <action name="Colors_*" method="{1}"
> class="com.anton.noname.actions.Colors" >
>         <result type="redirectAction">/Welcome</result>
>         <result name="input">/Colors.jsp</result>
>      </action>
>
> and finally Colors-validation.xml :
>
> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
> 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
>
> <validators>
>   <field name="name">
>      <field-validator type="requiredstring">
>         <message>You must enter a name</message>
>      </field-validator>
>   </field>
> </validators>
>
> And there is stake trace that I get :
>
> *type* Exception report
>
> *message*
>
> *description* *The server encountered an internal error () that prevented
> it
> from fulfilling this request.*
>
> *exception*
>
> javax.servlet.ServletException: Filter execution threw an exception
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96)
>
> *root cause*
>
> java.lang.ExceptionInInitializerError
>
> com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs (ValidatorFileParser.java:192)
>
> com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (ValidatorFileParser.java:72)
>
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (AnnotationActionValidatorManager.java:361)
>
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs (AnnotationActionValidatorManager.java:252)
>
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs (AnnotationActionValidatorManager.java:340)
>
>
> org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java:504)
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:419)
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96)
>
> *root cause*
>
> java.lang.IllegalArgumentException: URI scheme is not "file"
>  java.io.File.<init>(File.java:366)
>
> com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators (ValidatorFactory.java:314)
>
> com.opensymphony.xwork2.validator.ValidatorFactory.<clinit>(ValidatorFactory.java:224)
>
> com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs (ValidatorFileParser.java:192)
>
> com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs (ValidatorFileParser.java:72)
>
> com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile (AnnotationActionValidatorManager.java:361)
>
>
> Can somebody tell me why the simplest validation show this behavior?
> --
> Best regards,
> Bashmaкov Anton
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189865.ezm (zipped)
On Friday 08 August 2008 07:51:01 Frans Thamura wrote:
> On Fri, Aug 8, 2008 at 9:08 AM, mujoko mujoko
<mujoko.mujoko@(protected):
> > Dear Struts 2 users
> >
> >
> > I'm trying to create poup window in struts 2,
> > Could you please to give sample code for this task in struts 2?
>
> taka a look our cimande project
>
> http://www.sf.net/projects/cimande
>
> we use a lot of popup reference there
>

"Invalid Project" ?

Attachment: user_189866.ezm (zipped)
On Sat, Aug 9, 2008 at 3:49 AM, Roger <roger.varley@(protected):

> On Friday 08 August 2008 07:51:01 Frans Thamura wrote:
> > On Fri, Aug 8, 2008 at 9:08 AM, mujoko mujoko
> <mujoko.mujoko@(protected):
> > > Dear Struts 2 users
> > >
> > >
> > > I'm trying to create poup window in struts 2,
> > > Could you please to give sample code for this task in struts 2?
> >
> > taka a look our cimande project
> >
> > http://www.sf.net/projects/cimande
> >
> > we use a lot of popup reference there
> >
>
> "Invalid Project" ?
>



work

or this

http://sourceforge.net/projects/cimande

F

Attachment: user_189867.ezm (zipped)
Struts: 2.1.2
browser: Firefox 3.0, with Firebug add-on

Strange phenomenon involving cookies. I don't know who to blame: my code,
Struts or Firefox...

I am running a copy of my application locally on my own local Tomcat server
(on localhost). After several operations on the webapplication (among which
would be logging in), four cookies are set in the browser:
* JSESSIONID (dealt with by tomcat; not my doing, of course)
* language (the user's last selection of language)
* password
* username

However, when I study the net requests through firebug, I notice that
Firefox includes only the first of these cookies in the following requests'
header. Accordingly, if I start a new session, the language of the previous
session is read as it should from the "language" cookie, but the auto-login
interceptor fails to find the "username" and "password" cookies (even though
they are present to the browser).

On the other hand, things work fine on Safari.

This seems strange to me. The only formal distinction I can find between,
say, the "language" cookie and the "username" cookie is the "path":
* Firefox report the path of the "language" cookie as: /mywebapp/
* but it reports the path of the "username" cookie as: /mywebapp/users/

Is it possible that Firefox is overstrict with which cookie to provide back
to a given action, and the different namespace of the "username" cookie
becomes problematic? The actions that register my auto-login interceptor
are all in the "/" namespace (that is, the same namespace as reported by the
"language" cookie). Has anyone come accross anything like this?

Attachment: user_189868.ezm (zipped)
I just tested my theory about namespaces:

If I change the namespace of the login action to "/" rather than "/users",
the auto-login interceptor (called by an action from the "/" namespace)
reads it back without any problem.

Is that Firefox being too strict (or is it "by the book" according to
cookies specifications)?
Is there a way around this issue? Can I retain the "/users" namespace for
my login action and yet get the auto-login interceptor (with an action in
the "/" namespace) to read it back?


2008/8/9 Pierre Thibaudeau <pierre.thibaudeau@(protected)>

> Strange phenomenon involving cookies. I don't know who to blame: my code,
> Struts or Firefox...
>
>
©2008 gg3721.com - Jax Systems, LLC, U.S.A.