Not sure how tiles works internally, but I think like most JSP templating
solutions its does a lot of inclusions (similar to forwards). These are
server side so should preserve the request parameters. The included stuff
could modify attributes but I doubt they would modify the ones you set
(unless you included something that you had specifically coded to do so.)
Anyhow I reckon your problem is the attribute vs parameter issue (see my
other reply) so best check that out first.

hth
Andrew

-----Original Message-----
From: Mlinar, Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 18:42
To: Struts Users Mailing List
Subject: AW: what is wrong with this code


Here is a snippet of my log

org.apache.struts.action.mapping.instance=ActionConfig[path=/adressenView,pa
rameter=/gp_detail_adressen.jsp,scope=session,type=de.shs.partnerportal.adb.
ui.web.actions.AdressDetailActionorg.apache.struts.action.MODULE=org.apache.
[EMAIL PROTECTED]
[EMAIL PROTECTED]

12 Feb 2004 11:36:14,408 DEBUG -
org.apache.struts.tiles.TilesRequestProcessor -
processForwardConfig(/gp_detail_adressen.jsp, false)
12 Feb 2004 11:36:14,408 DEBUG -
org.apache.struts.tiles.TilesRequestProcessor -   '/gp_detail_adressen.jsp'
- processed as uri
12 Feb 2004 11:36:14,408 DEBUG - org.apache.struts.action.RequestProcessor -
processForwardConfig(ForwardConfig[name=continue,path=/gp_detail_adressen.js
p,redirect=false,contextRelative=false])


Not sure wether I am interpreting this rigth, but it seems to me as there
are 2 forwards??



-----Ursprüngliche Nachricht-----
Von: Mlinar, Mario [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Februar 2004 11:27
An: Struts Users Mailing List
Betreff: AW: what is wrong with this code


Just to be sure what is in the request my code at the beginning of the jsp
is:
<%
        java.util.Enumeration e2 = request.getAttributeNames();
    while (e.hasMoreElements()) {
        String tempString = (String) e2.nextElement();
%>      <%= tempString %>=<%= request.getAttribute(tempString) %><br>
<%      } %>


And

<%
        java.util.Enumeration e = request.getParameterNames();
    while (e.hasMoreElements()) {
        String tempString = (String) e.nextElement();
%>      <%= tempString %>=<%= request.getParameter(tempString) %><br>
<%      } %>

Using this kind of link 'adressenView.do?adrStartIndex=5' shows an
'adrStartIndex=5' at the beginning of the jsp Using the solution with the
Action shows no parameters ... where
Konstanten.ADRESSEN_RESULT_START_INDEX_KEY = adrStartIndex

Putting into the session works perfect :-(


-----Ursprüngliche Nachricht-----
Von: Andrew Hill [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Februar 2004 11:09
An: Struts Users Mailing List
Betreff: RE: what is wrong with this code


I presume Konstanten.CONTINUE is "continue" and I see that forward will
default to a non-redirecting forward looking at your config, so thats not
the problem.

Whats in the JSP? You sure you got the attribute key correct there?

-----Original Message-----
From: Mlinar, Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 18:07
To: [EMAIL PROTECTED]
Subject: what is wrong with this code


putting an attribute in my request ... the jsp cant´t find it in there....


request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY,
indexListWert);
return mapping.findForward(Konstanten.CONTINUE);

struts-config:
<action path="/adressenExtDetail"
       type="de.shs.partnerportal.adb.ui.web.actions.AdressExtDetailAction"
       parameter="/gp_detail_adressen.jsp"
    name="adressenExtDetail"
    scope="session"
    validate="false"
    input="/gp_detail_adressen.jsp">
    <forward
             name="continue"
    path="/gp_detail_adressen.jsp" />
   </action>


Any idea???


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

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

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



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

Reply via email to