Author Login
Post Reply
user Digest 21 Jul 2008 13:44:57 -0000 Issue 8151
Topics (messages 189097 through 189126):
Re: Error global-Forwards
189097 by: Dani
189099 by: Lukasz Lenart
189100 by: Dani
189101 by: Lukasz Lenart
189104 by: Dani
189106 by: Lukasz Lenart
189118 by: Dani
189121 by: Lukasz Lenart
Re: struts2 bis prospectus
189098 by: Frans Thamura
Re: Struts2 Fileupload user defined messages
189102 by: Joachim Rohde
Re: [S2] current URL in ValueStack?
189103 by: Pierre Thibaudeau
189111 by: Jeromy Evans
189112 by: Pierre Thibaudeau
Re: <s:include> not working
189105 by: Chase
189116 by: aum strut
[S2] Possible issue w/ S2.1.3
189107 by: Dave Newton
189108 by: Musachy Barroso
189109 by: Dave Newton
189110 by: Musachy Barroso
189113 by: Jeromy Evans
189115 by: Dave Newton
189117 by: Don Brown
Re: issue with ajax submit
189114 by: Jeromy Evans
disabling textfield....problem
189119 by: Narayana S
189120 by: ManiKanta G
189122 by: Jishnu Viswanath
Form Submission of arrays
189123 by: Dimitris Mouchritsas
Execute and wait interceptor and calling an action more than once
189124 by: Burak Doðruöz
189125 by: Jeromy Evans
189126 by: Giovanni Azua
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_189097.ezm (zipped)Lukasz Lenart escribió:
> Hi,
>
> Could you paste your struts-config here?
>
>
> Regards
>
Hi,
This is the whole struts-config file. As fas as i can see, the problem
has nothing to do with the actionClass itself, because I only put a
simple forward in the action, and the result is the same as with the
code i must program. The browser gets stucked in the action *.do, as if
it would enter in a loop.No errors are shown in the Tomcat console nor
the logs. In the navigator bar and the window title (where the name of
the actual jsp page is displayed) appears the same name as in the nav
bar: http://localhost:8080/gentaiw/mostrarusuario.do , (mostrarusuario
means showuser) instead of mostrarUsuario.jsp
More info , the global forward "<forward name="irMostrarTest"
path="/mostrarConfigurarTest.do" />" works fine.
Best regards,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD
Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources>
<data-source type="
org.apache.commons.dbcp.BasicDataSource"
key="usuario" >
<set-property property="driverClassName"
value="
com.mysql.jdbc.Driver" />
<set-property property="url"
value="jdbc:mysql://localhost:3306/gentaidb?autoReconnect=true" />
<set-property property="username" value="root" />
<set-property property="password" value="admin" />
<set-property property="maxActive" value="10" />
<set-property property="maxWait" value="5000" />
<set-property property="defaultAutoCommit" value="false" />
<set-property property="defaultReadOnly" value="false" />
<set-property property="validationQuery" value="SELECT COUNT(*)
FROM usuario" />
</data-source>
</data-sources>
<form-beans >
<form-bean
name="UserLogin2Form"
type="com.gentaiw.struts.form.UserLogin2Form"/>
<form-bean
name="CrearUsuarioForm"
type="com.gentaiw.struts.form.CrearUsuarioForm"/>
<form-bean
name="EliminarUsuarioForm"
type="com.gentaiw.struts.form.UserLogin2Form"/>
<form-bean name="ConfigurarTestForm"
type="com.gentaiw.struts.form.ConfigurarTestForm" />
<form-bean name="MostrarUsuarioForm"
type="com.gentaiw.struts.form.MostrarUsuarioForm" />
</form-beans>
<global-exceptions />
<global-forwards >
<forward name="irLogin" path="/userLogin.jsp" />
<forward name="irInicio" path="/inicio.jsp" />
<forward name="irCrearUsuario" path="/crearUsuario.jsp" />
<forward name="irEliminarUsuario" path="/eliminarUsuario.do" />
<forward name="irActualizarUsuario" path="/actualizarUsuario.jsp" />
<forward name="irMostrarTest" path="/mostrarConfigurarTest.do" />
<forward name="irConfigurarTest" path="/configurarTest.jsp" />
<forward name="irAdminMenu" path="/adminLoginSuccess.jsp" />
<forward name="irUsuario" path="/mostrarUsuario.do" />
</global-forwards>
<action-mappings >
<action
path="/userLogin"
input="/userLogin.jsp"
name="UserLogin2Form"
scope="session"
attribute="listausuario"
type="com.gentaiw.struts.action.UserLoginAction"
validate="false">
<forward name="userlogin" path="/userLogin.jsp" />
<forward name="usuario" path="/userLoginSuccess.jsp" />
<forward name="admin" path="/adminLoginSuccess.jsp" />
</action>
<action
path="/crearUsuario"
input="/crearUsuario.jsp"
name="CrearUsuarioForm"
scope="session"
type="com.gentaiw.struts.action.CrearUsuarioAction"
validate="false">
<forward name="success" path="/usuarioCreado.jsp" />
</action>
<action
attribute="MostrarUsuarioForm"
name="MostrarUsuarioForm"
path="/mostrarUsuario"
scope="request"
type="com.gentaiw.struts.action.MostrarUsuarioAction"
validate="false">
<forward name="success" path="/mostrarUsuario.jsp" />
</action>
<action
input="/adminLoginSuccess.jsp"
path="/eliminarUsuario"
scope="request"
type="com.gentaiw.struts.action.EliminarUsuarioAction"
validate="false">
<forward
name="success"
path="/eliminarUsuario.jsp" />
</action>
<action
attribute="ConfigurarTestForm"
name="ConfigurarTestForm"
path="/mostrarConfigurarTest"
scope="request"
validate="false"
type="com.gentaiw.struts.action.MostrarConfigurarTestAction">
<forward name="success" path="/mostrarConfiguracionTest.jsp" />
</action>
<action
attribute="ConfigurarTestForm"
input="/configurarTest.jsp"
name="ConfigurarTestForm"
path="/configurarTest"
scope="request"
type="com.gentaiw.struts.action.ConfigurarTestAction"
validate="true">
<forward name="success" path="/configuracionGuardada.jsp" />
<forward name="error" path="/errorConfigurar.jsp" />
<forward name="input" path="/configurarTest.jsp" />
</action>
</action-mappings>
<message-resources
null="false"
parameter="ApplicationResources" />
<plug-in className="
org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathname2" value="/WEB-INF/validation.xml" />
<set-property property="pathname1"
value="/WEB-INF/validator-rules.xml" />
</plug-in>
</struts-config>

Attachment:
user_189099.ezm (zipped)> navigator bar and the window title (where the name of the actual jsp page is
> displayed) appears the same name as in the nav bar:
> http://localhost:8080/gentaiw/mostrarusuario.do , (mostrarusuario means
> showuser) instead of mostrarUsuario.jsp
This is correct behavior, you should never see any *.jsp in url, you
should also consider to request your global forwards jsp through
action and not directly.
Ok, back to you problem, the config looks ok, could you try access you
action with CamelHumps, as you configured in struts-config.xml?
http://localhost:8080/gentaiw/mostrarUsuario.do
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_189100.ezm (zipped)Lukasz Lenart escribió:
>> navigator bar and the window title (where the name of the actual jsp page is
>> displayed) appears the same name as in the nav bar:
>> http://localhost:8080/gentaiw/mostrarusuario.do , (mostrarusuario means
>> showuser) instead of mostrarUsuario.jsp
>>
>
> This is correct behavior, you should never see any *.jsp in url, you
> should also consider to request your global forwards jsp through
> action and not directly.
>
>
> http://localhost:8080/gentaiw/mostrarUsuario.do
>
>
> Regards
>
"This is correct behavior, you should never see any *.jsp in url, you
should also consider to request your global forwards jsp through
action and not directly."
Ok, i see what you mean but i need to display some info from one jsp page to another directly:
page1 -> click link -> get the info from action class -> display the info in page 2
I suppose there isn´t another approach...
"
Ok, back to you problem, the config looks ok, could you try access you
action with CamelHumps, as you configured in struts-config.xml?"
Er..what is CamelHumps? No idea about it, sorry... :)
PD:( plus info: using myeclipse IDE if needed)
Regards,

Attachment:
user_189101.ezm (zipped)> Er..what is CamelHumps? No idea about it, sorry... :)
You defined your path in config as /mostrarUsuario (CamelHumps -
JavaClassNamingConvention) but you accessing it like below
http://localhost:8080/gentaiw/mostrarusuario.do
try this
http://localhost:8080/gentaiw/mostrarUsuario.do
As I remember, Tomcat distinct letter case ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_189104.ezm (zipped)Lukasz Lenart escribió:
>> Er..what is CamelHumps? No idea about it, sorry... :)
>>
>
> You defined your path in config as /mostrarUsuario (CamelHumps -
> JavaClassNamingConvention) but you accessing it like below
> http://localhost:8080/gentaiw/mostrarusuario.do
>
> try this
> http://localhost:8080/gentaiw/mostrarUsuario.do
>
> As I remember, Tomcat distinct letter case ;-)
>
>
> Regards
>
Well, in fact that´s the way i am accesing as defined in the
struts-config.xml:
http://localhost:8080/gentaiw/mostrarUsuario.do
(the url i sent you was wrong -> http://localhost:8080/gentaiw/mostrarusuario.do
I wrote the url instead of copy&paste).
Changed the name of the action to mostrarusuario.do and of course, gives me error 404 path not found. Anyway, ill check again my action and jsp in case there is something wrong.
Regards,

Attachment:
user_189106.ezm (zipped)Copy-paste your jsp and/or action and we will see..
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_189118.ezm (zipped)Lukasz Lenart escribió:
> Copy-paste your jsp and/or action and we will see..
>
>
> Regards
>
I call the method getUsuarios() that should return all the idusers of
the database (just created and working, tested) . This method returns an
Arraylist (mostrar) which is saved in a bean session. Afterwards, the id
users of this bean will be displayed in the mostrarUsuario.jsp page. As
there are users in the DB, the lenght Arraylist should not be zero so
the forward returned should be "success", and not "fail" . Note that the
struts-config.xml has been changed from the last one, this is the good
one -> mostrarUsuario action in session scope. However I obtain the same
results with scope request, as described in the last mail:
--------------- This is the action MostrarUsuarioAction.java:
------------------
package com.gentaiw.struts.action;
import
java.sql.Connection;
import
java.sql.ResultSet;
import
java.sql.SQLException;
import
java.sql.Statement;
import
java.util.ArrayList;
import
javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse;
import
javax.servlet.http.HttpSession;
import
javax.sql.DataSource;
import
org.apache.struts.action.Action;
import
org.apache.struts.action.ActionForm;
import
org.apache.struts.action.ActionForward;
import
org.apache.struts.action.ActionMapping;
import com.gentaiw.struts.form.UserLogin2Form;
public class MostrarUsuarioAction extends Action {
public ArrayList<UserLogin2Form> mostrar = new
ArrayList<UserLogin2Form>();
public ActionForward mostrarUsuario(ActionMapping mapping,
ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws SQLException {
HttpSession session = request.getSession(); //we create the session
mostrar.clear();
mostrar = getUsuarios(); //we call the getUsuarios method to
obtain the users of the DB
System.out.println("NUM ITEMS USUARIO LIST -> "+mostrar.size());
session.setAttribute("mostrarlist", mostrar);
if (mostrar.size()==0){
return mapping.findForward("fail");
}else{
return mapping.findForward("success");
}
}// END MOSTRAR USUARIO
private ArrayList<UserLogin2Form> getUsuarios() throws SQLException {
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try { //INI try
DataSource dataSource =
(DataSource)servlet.getServletContext().getAttribute("usuario"); //key
datasource
conn = dataSource.getConnection();
conn.setAutoCommit(true);
String sqlConsulta = "SELECT * FROM usuario";
rs = stmt.executeQuery(sqlConsulta);
while (rs.next()){ //INI while
UserLogin2Form miUsuario = new UserLogin2Form();
System.out.println("USUARIO"+miUsuario.getIdusuario().toString());
mostrar.add(miUsuario);
} //END while
rs.close();
System.out.println("NUM ITEMS DENTRO USUARIO LIST ->
"+mostrar.size());
}//END try
finally {
if (rs!=null){
try{
rs.close();
} catch (SQLException sqlEx){ //ignore }
rs = null;
}
if (stmt!=null){
try{
stmt.close();
} catch (SQLException sqlEx){ //ignore }
stmt = null;
}
}
}
}//END finally
return mostrar;
}
} //END
--- --------This is the JSP page mostrarUsuario.jsp : -------------
<%@(protected)"%>
<%@(protected)" %>
<%@(protected)" %>
<%@(protected)" %>
<%@(protected)" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>eliminarUsuario.jsp</title>
</head>
<body>Lista usuarios <br>
<logic:iterate name="mostrarlist" id="list" scope="session"><br>
<td>id usuario: <bean:write name="list" property="idusuario"
/><td/><br>
</logic:iterate>
</body>
</html:html>
-------- Struts.config.xml ----------
<action
attribute="MostrarUsuarioForm"
name="MostrarUsuarioForm"
path="/mostrarUsuario"
scope="session"
type="com.gentaiw.struts.action.MostrarUsuarioAction"
validate="false">
<forward name="success" path="/mostrarUsuario.jsp" />
<forward name="fail" path="/usuarioCreado.jsp" />
</action>
--------------EOF-------------------
If you need any more info, just let me know. Thanks for your help.
Regards,

Attachment:
user_189121.ezm (zipped)> public class MostrarUsuarioAction extends Action {
You have to override execute() method not implement your own method,
Struts1 will not use it. The deafult implementation just return null,
so it means, stop processing.
Change your method name mostrarUsuario() to execute() and should be ok.
If you want to use different methods name's extends DispatchAction and
add parameter attribute to your config.
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_189098.ezm (zipped)hi there
we haave a struts2 project, name cimande
(http://www.sf.net/projects/cimande), and under umbrealla
blueoxygen.org
now we launch the blueoxygen.net for marketplace for anyone that
develop apps on cimande.
we have 14 project that run on cimande, so we see that S2 will be our
core action framework
but.
i am feeling that JSF marketing guy is very agresif, even we know the
JSF is slow and have performance issue, but Struts team is not
publicate well in the market
can help?
NB: the project on cimande will be develop nationaly by our students
in our country, because cimande, struts2, spring, is our core java
curicullum (http://jeni.diknas.go.id)
do i do a bad direction put stuts2 as education curricullum?
my opinion, Struts2 is easier for us to devleop apps, JSF is more
memory and more complex, and of course in ego level, i have a product
on struts2, need a publication ..
--
--
Frans Thamura
Meruvian Foundation
Mobile: +62 855 7888 699
YM: fthamura@(protected)
GTalk: frans@(protected)
Skype: fthamura
Linkedin: http://www.linkedin.com/in/fthamura
Discuss BlueOxygen Projects at blueoxygen@(protected)

Attachment:
user_189102.ezm (zipped)Hi Dirk,
I had the same problem and after spending the whole day trying things
out, I found something that works.
In WEB-INF/classes I created a class struts-messages.properties with
following content:
struts.messages.error.uploading=Fehler beim hochladen der Datei
struts.messages.error.file.too.large=Die Datei ist zu groß!
struts.messages.error.content.type.not.allowed = Der Dateityp wird
leider nicht unterstützt.
In my strus.properties I added:
struts.multipart.parser=
org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest struts.multipart.maxSize=100000000
struts.custom.i18n.resources=struts-messages
My action-definition looks like:
<action name="SaveSettings" class="saveSettings">
<interceptor-ref name="fileUpload">
<param name="allowedTypes">
image/x-png,image/png,image/gif,image/jpeg,image/pjpeg
</param>
<param name="maximumSize">120000
</param>
</interceptor-ref>
[...]
</action>
It seems like that the value in struts.multipart.maxSize is passed to
commons-fileupload. If the uploaded file exceeds this value, the message
you mentioned is displayed. BUT: if we set this value quite high (so
that commons-fileupload is not complaining about it), the Struts
FileUploadInterceptor checks again for the parameter maximumSize, which
is passed in the action-definition. (In my case I don't want to have
files bigger than 120000 bytes.) If the file-size exceeds this value,
the message declared in struts.messages.error.file.too.large is loaded.
This behaviour is really annoying and it took an eternity to find it
out. So let me know if this is working for you.
Greetings from Flensburg,
Joachim
Dirk Schumacher schrieb:
> Hello,
>
> I am troubleling with the Fileupload in S2.
>
> I want to have printed my own messages on failure of the file upload
> which takes place in the interceptor.
> I am uploading files exceeding the set maximum size
> The documentation talks about the struts-message-properties, where is
> declared:
>
> struts.messages.error.uploading=Error uploading: {0}
> struts.messages.error.file.too.large=File too large: {0} "{1}" {2}
> struts.messages.error.content.type.not.allowed=Content-Type not allowed:
> {0} "{1}" {2}
>
> The message printed via the ActionError is complete different text I
> cannot find in any file:
>
> "the request was rejected because its size (2352563) exceeds the
> configured maximum (2097152)"
>
> Where is this Text declared?
>
> A colleague talked about the commons-fileupload which is declaring the
> printed text....
> The Jakarta File... seems to me the right instance of takiong care of
> the ActionError
>
> When looking at the sources I figured that not the FileUploadInterceptor
> instantiates the ActionError. It is done by the
> parse()-Method of the MultipartRequestWrapper, or somewhere deeper.
>
> So figure that the struts-message.properties is never applied and the
> ActionError is setup in-code instead of the usage of an external
> property file.
>
> Is there any documentation out there on this issue? - I just want to set
> my own (localed) messages for the different errors that may occure, just
> like intended by the S2 FileUploadInterceptor, which seems somewhat not
> fully useful to me right now.
>
> I appreciate your help in advance,
>
> best greetings from cologne,
> Dirk
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 270.4.0/1506 - Release Date: 17.06.2008 16:30

Attachment:
user_189103.ezm (zipped)Earlier in this conversation, Jeromy proposed two ways of accessing
the current URL (or URI), one through EL and the other through OGNL
> ${pageContext.request.requestURI}
> <s:property value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
That works great until (it seems) Tiles2 gets in the picture. By that
point, the address returned is that of the Tiles layout (with
extension ".jsp") and not the logical address of the request. (I
haven't made a systematic study of the exact conditions for this
phenomenon to occur.)
It seems to me that, having access to the current (logical) URL (the
one that generated this request) is a fairly common need. Has anyone
come up with another way of getting hold of it?
There is a failsafe option: make an interceptor that places the URL
in question in the Request scope, but that seems a little heavy-handed
to me...

Attachment:
user_189111.ezm (zipped)Pierre Thibaudeau wrote:
> Earlier in this conversation, Jeromy proposed two ways of accessing
> the current URL (or URI), one through EL and the other through OGNL
>
>
>> ${pageContext.request.requestURI}
>> <s:property value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
>>
>
> That works great until (it seems) Tiles2 gets in the picture. By that
> point, the address returned is that of the Tiles layout (with
> extension ".jsp") and not the logical address of the request. (I
> haven't made a systematic study of the exact conditions for this
> phenomenon to occur.)
>
> It seems to me that, having access to the current (logical) URL (the
> one that generated this request) is a fairly common need. Has anyone
> come up with another way of getting hold of it?
>
I was hoping you wouldn't encounter that little problem. When your
container forwards to a JSP, the requestURI is now the JSP rather than
the original URI.
After a forward, the requestURI is now available in the request map:
#request['javax.servlet.forward.request_uri']
But of course, that won't be set if there wasn't a forward, so you can't
always use that.
As logic's involved, my solution was to create a custom tag with the
following code extract. I never understood why the requestURI was never
readily available in the action's context though. However I rarely need
it and most pages don't require it.
Snippet:
StringBuilder uri = new StringBuilder();
RequestMap requestMap = (RequestMap)
stack.getContext().get("request");
String forwardURI = (String)
requestMap.get("javax.servlet.forward.request_uri");
if ((forwardURI != null) && (forwardURI.length() > 0))
{
uri.append(forwardURI);
} else {
uri.append(request.getRequestURI());
}
regards,
Jeromy Evans

Attachment:
user_189112.ezm (zipped)> After a forward, the requestURI is now available in the request map:
>
> #request['javax.servlet.forward.request_uri']
Great, I'm learning!
> Snippet:
> StringBuilder uri = new StringBuilder();
> RequestMap requestMap = (RequestMap)
> stack.getContext().get("request");
> String forwardURI = (String)
> requestMap.get("javax.servlet.forward.request_uri");
> if ((forwardURI != null) && (forwardURI.length() > 0)) {
> uri.append(forwardURI); } else {
> uri.append(request.getRequestURI());
> }
Thank you!
I did go ahead and implement my interceptor solution, but this tag
idea is definitely leaner for the structure, which is very good!

Attachment:
user_189105.ezm (zipped)Are you adjusting the relative URL value in your include statement
based on the folder depth of the containing page or are you just
copying & pasting the same include statement in every single page?
-Chase
On Sun, Jul 20, 2008 at 1:20 AM, aum strut <aum.struts@(protected):
> Hi Chase,
>
> Is there any relation with the depth because when i put index.jsp page and
> HElloWorld.jsp page in the same folder, it starts to include the other jsp
> page which i unable to include when the pages were in different folders.
>
> any suggestion in this regards will be much helpful.
> yes all the pages have same tag lib directive
>
> -Aum
>
>
> On 7/19/08, Chase <chase@(protected):
>>
>> Why does your tag have a body? <s:include value="IncludedMenu/menu.jsp"/>
>>
>> Do the other pages contain the same taglib directives? If you view the
>> source in your web browser and see the tag code that means you are
>> missing a taglib directive.
>>
>> Your include is using a relative page, are all the pages at the same depth?
>>
>> -Chase
>>
>> On Sat, Jul 19, 2008 at 4:22 AM, aum strut <aum.struts@(protected):
>> > Hi all,
>> >
>> > i am trying to include a jsp page using struts2 <s:include tag> but
>> > itdosen't seems to be working in my way.
>> > i have a menu.jsp page where i have written a code for the menu for my
>> > application.
>> > i have included this menu.jsp page in my index.jsp page were it is
>> working
>> > fine.When i click on any menu option it redirect me to another page using
>> > the action.i tried to use the same <s:include> tage in other pages but it
>> is
>> > not working where as it is working fine in the index.jsp page. where as
>> if i
>> > include the code in the other pages instead of including the jap page the
>> > menuy starts appearing fine.
>> >
>> >
>> > <s:include value="IncludedMenu/menu.jsp"></s:include>
>> >
>> > i have included the menu.jsp page in index page using this tag and
>> working
>> > fine here but when tried to use the same tage in others pageses i
>> failed.Can
>> > any one suggest me where i am doing wrong.??
>> >
>> > Thanks in advance
>> >
>> > -aum
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment:
user_189116.ezm (zipped)Thanks Chase for the Help
There was the problem with the URL value in the include statement.
:)
On Mon, Jul 21, 2008 at 2:46 AM, Chase <chase@(protected):
> Are you adjusting the relative URL value in your include statement
> based on the folder depth of the containing page or are you just
> copying & pasting the same include statement in every single page?
>
> -Chase
>
> On Sun, Jul 20, 2008 at 1:20 AM, aum strut <aum.struts@(protected):
> > Hi Chase,
> >
> > Is there any relation with the depth because when i put index.jsp page
> and
> > HElloWorld.jsp page in the same folder, it starts to include the other
> jsp
> > page which i unable to include when the pages were in different folders.
> >
> > any suggestion in this regards will be much helpful.
> > yes all the pages have same tag lib directive
> >
> > -Aum
> >
> >
> > On 7/19/08, Chase <chase@(protected):
> >>
> >> Why does your tag have a body? <s:include
> value="IncludedMenu/menu.jsp"/>
> >>
> >> Do the other pages contain the same taglib directives? If you view the
> >> source in your web browser and see the tag code that means you are
> >> missing a taglib directive.
> >>
> >> Your include is using a relative page, are all the pages at the same
> depth?
> >>
> >> -Chase
> >>
> >> On Sat, Jul 19, 2008 at 4:22 AM, aum strut <aum.struts@(protected)>
> wrote:
> >> > Hi all,
> >> >
> >> > i am trying to include a jsp page using struts2 <s:include tag> but
> >> > itdosen't seems to be working in my way.
> >> > i have a menu.jsp page where i have written a code for the menu for my
> >> > application.
> >> > i have included this menu.jsp page in my index.jsp page were it is
> >> working
> >> > fine.When i click on any menu option it redirect me to another page
> using
> >> > the action.i tried to use the same <s:include> tage in other pages but
> it
> >> is
> >> > not working where as it is working fine in the index.jsp page. where
> as
> >> if i
> >> > include the code in the other pages instead of including the jap page
> the
> >> > menuy starts appearing fine.
> >> >
> >> >
> >> > <s:include value="IncludedMenu/menu.jsp"></s:include>
> >> >
> >> > i have included the menu.jsp page in index page using this tag and
> >> working
> >> > fine here but when tried to use the same tage in others pageses i
> >> failed.Can
> >> > any one suggest me where i am doing wrong.??
> >> >
> >> > Thanks in advance
> >> >
> >> > -aum
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> 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_189107.ezm (zipped)I have a non-Maven S2.1 project I just started updating to 2.1.3 and I can't get *anything* to work at the moment. I'm using the REST (so CodeBehind as well), Dojo, Spring (2.5.4), and config browser plugins, all compiled from trunk. XWork is also compiled from trunk.
Also:
- XWork and S2 logging at DEBUG
- A single actionPackages defined in web.xml
- devMode defined in struts.xml
- Misc actions defined in struts.xml
Right now I'm not able to get to the config browser index page, my non-REST actions, etc. I'm using the ...ng.filter.StrutsPrepareAndExecuteFilter.
The only thing I see in the logs is this on any URL access:
WARN
com.opensymphony.xwork2.ognl.OgnlValueStack.warn:45 - Could not find property [struts.actionMapping]
There's nothing on startup that looks troublesome, but I can't get to any S2 actions.
Is there anything obvious I should look at before starting to dig seriously?
Thanks,
Dave

Attachment:
user_189108.ezm (zipped)There is a good chance that it is related to ng.filter I would say.
musachy
On Sun, Jul 20, 2008 at 6:15 PM, Dave Newton <newton.dave@(protected):
> I have a non-Maven S2.1 project I just started updating to 2.1.3 and I can't get *anything* to work at the moment. I'm using the REST (so CodeBehind as well), Dojo, Spring (2.5.4), and config browser plugins, all compiled from trunk. XWork is also compiled from trunk.
>
> Also:
> - XWork and S2 logging at DEBUG
> - A single actionPackages defined in web.xml
> - devMode defined in struts.xml
> - Misc actions defined in struts.xml
>
> Right now I'm not able to get to the config browser index page, my non-REST actions, etc. I'm using the ...ng.filter.StrutsPrepareAndExecuteFilter.
>
> The only thing I see in the logs is this on any URL access:
> WARN
com.opensymphony.xwork2.ognl.OgnlValueStack.warn:45 - Could not find property [struts.actionMapping]
>
> There's nothing on startup that looks troublesome, but I can't get to any S2 actions.
>
> Is there anything obvious I should look at before starting to dig seriously?
>
> Thanks,
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_189109.ezm (zipped)--- On Sun, 7/20/08, Musachy Barroso <musachy@(protected):
> There is a good chance that it is related to ng.filter I
> would say.
Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed?
Thanks,
Dave

Attachment:
user_189110.ezm (zipped)I think only Don knows what is its status.
musachy
On Sun, Jul 20, 2008 at 8:56 PM, Dave Newton <newton.dave@(protected):
> --- On Sun, 7/20/08, Musachy Barroso <musachy@(protected):
>> There is a good chance that it is related to ng.filter I
>> would say.
>
> Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed?
>
> Thanks,
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_189113.ezm (zipped)Dave Newton wrote:
> --- On Sun, 7/20/08, Musachy Barroso <musachy@(protected):
>
>> There is a good chance that it is related to ng.filter I
>> would say.
>>
>
> Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed?
>
> Thanks,
> Dave
>
>
I'm certain the separate StrutsPrepare and StrutsExecute filters work,
but the StrutsPrepareAndExecute filter doesn't (last I checked).
The deprecated filters still work.

Attachment:
user_189115.ezm (zipped)--- On Sun, 7/20/08, Jeromy Evans wrote:
> Dave Newton wrote:
> > --- On Sun, 7/20/08, Musachy Barroso wrote:
> >> There is a good chance that it is related to ng.filter
> > Isn't that the filter we're supposed to use now though?
> I'm certain the separate StrutsPrepare and
> StrutsExecute filters work, but the StrutsPrepareAndExecute filter
> doesn't (last I checked).
>
> The deprecated filters still work.
Okay; thanks guys. I'll try again in the morning.
Dave

Attachment:
user_189117.ezm (zipped)Doh, we really need functional tests. I'll try to take a look at it
in the next few days if no one beats me to it.
Don
On Mon, Jul 21, 2008 at 1:57 PM, Dave Newton <newton.dave@(protected):
> --- On Sun, 7/20/08, Jeromy Evans wrote:
>> Dave Newton wrote:
>> > --- On Sun, 7/20/08, Musachy Barroso wrote:
>> >> There is a good chance that it is related to ng.filter
>> > Isn't that the filter we're supposed to use now though?
>> I'm certain the separate StrutsPrepare and
>> StrutsExecute filters work, but the StrutsPrepareAndExecute filter
>> doesn't (last I checked).
>>
>> The deprecated filters still work.
>
> Okay; thanks guys. I'll try again in the morning.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189114.ezm (zipped)matthieu martin wrote:
> Hello all.
>
> I can't figure out what this message means, or even where does it come from.
> I have no way to know which request returns this to me ... I'm lost.
>
> Is anyone able to help me ?
>
Dojo uses a technique called IFrame I/O when uploading a file
asynchronously. Looks to me like you're seeing the response that
belongs in the hidden iframe.
IIRC you'll need to write some javascript to setup Dojo for file async
uploads. You'll find several old posts here about that. (I don't use it
myself).

Attachment:
user_189119.ezm (zipped)Hi,
i have a text field, with disabled property set to TRUE, and when i
coming back to the same page with some error messages for the other fields,
it is missing the textfield value, it is not retaining like the non-disabled
fields....
where i am missing?
plz help me..

Attachment:
user_189120.ezm (zipped)According to html, browser will not send the disabled fields to the
server along with the request headers. So you've to send that value in
the form of a hidden value.
Regards,
ManiKanta
Narayana S wrote:
> Hi,
>
> i have a text field, with disabled property set to TRUE, and when i
> coming back to the same page with some error messages for the other fields,
> it is missing the textfield value, it is not retaining like the non-disabled
> fields....
>
> where i am missing?
>
> plz help me..
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)

Attachment:
user_189122.ezm (zipped)If you still want to send the data, make it read only
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: EXCELLENCE
-----Original Message-----
From: ManiKanta G [mailto:manikanta.gade@(protected)]
Sent: Monday, July 21, 2008 2:42 PM
To: Struts Users Mailing List
Subject: Re: disabling textfield....problem
According to html, browser will not send the disabled fields to the
server along with the request headers. So you've to send that value in
the form of a hidden value.
Regards,
ManiKanta
Narayana S wrote:
> Hi,
>
> i have a text field, with disabled property set to TRUE, and when
i
> coming back to the same page with some error messages for the other
fields,
> it is missing the textfield value, it is not retaining like the
non-disabled
> fields....
>
> where i am missing?
>
> plz help me..
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is
a
forwarded message, the content of this E-MAIL may not have been sent
with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering
the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you
have
received this communication in error, please delete this mail & notify
us
immediately at admin@(protected)
Any comments or statements made in this email are not necessarily those of Tavant Technologies.
The information transmitted is intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material. If you have received this in error, please contact the
sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies
may be subject to our monitoring procedures.

Attachment:
user_189123.ezm (zipped)Hi all,
we've got a form where there's a table. In each row there's a hidden
field for the id, a comment (text field) and a select box.
What's the best way to submit this form? Create a form bean that will
accept arrays as input?
e.g.
public class CommentForm {
private String[] orgIds;
private String[] comments;
private String[] types;
...getters/setters
public String getRow(int num) {
return orgIds[num] + "$" + comments[num] + "$" + types[num];
}
}
Is the above class correct?
Does struts guarantee that the order in which the rows are declared is
the same order in the array when the form bean is submitted?
Thanks
Dimitris

Attachment:
user_189124.ezm (zipped)Hi,
Our application lets user to run 2 (or more) copies of same action at the
same time (possibly with different parameters) in a frameset.
In execute and wait interceptor documentation (
http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html), it
says that execute and wait interceptor works on a per-session basis and the
same action name cannot be run more than once at a time in a given session.
So how can i extend this interceptor so i can call same action more than
once at the same time?
Is it possible to trigger an action with a name template? For example, i
call myAction1, myAction2 simultaneously which all point to myAction but
stored as separately for execute and wait interceptor.
Thanks.

Attachment:
user_189125.ezm (zipped)Burak Doğruöz wrote:
> Hi,
> Our application lets user to run 2 (or more) copies of same action at the
> same time (possibly with different parameters) in a frameset.
>
> In execute and wait interceptor documentation (
> http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html), it
> says that execute and wait interceptor works on a per-session basis and the
> same action name cannot be run more than once at a time in a given session.
> So how can i extend this interceptor so i can call same action more than
> once at the same time?
>
>
>
This is a good candidate for making asynchronous requests via an ajax
framework. I would drop the frameset and replace it with a few s:div's
tiggered by s:submit's from the ajax theme. That's much easier than what
you're attempting and is what those tags are intended for.
Just my 2c.
regards
Jeromy Evans

Attachment:
user_189126.ezm (zipped)hi,
I think that actually you can run more than one execAndWait at the time
for the same Session, the problem though is that you have no guarantee
on which result will be returned to which browser e.g.
Session 1 - browser 1 - triggers execAndWait => gets result of action
triggered by Browser 3
Session 1 - browser 2 - triggers execAndWait => gets result of action
triggered by Browser 1
Session 1 - browser 3 - triggers execAndWait => gets result of action
triggered by Browser 2
This is a documented limitation of execAndWait and I moved away from it
also because of this reason.
HTH,
regards,
Giovanni
Burak Doğruöz wrote:
> Hi,
> Our application lets user to run 2 (or more) copies of same action at the
> same time (possibly with different parameters) in a frameset.
>
> In execute and wait interceptor documentation (
> http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html), it
> says that execute and wait interceptor works on a per-session basis and the
> same action name cannot be run more than once at a time in a given session.
> So how can i extend this interceptor so i can call same action more than
> once at the same time?
>
> Is it possible to trigger an action with a name template? For example, i
> call myAction1, myAction2 simultaneously which all point to myAction but
> stored as separately for execute and wait interceptor.
>
> Thanks.
>