cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajasekhar Atchutuni" <raajsek...@hotmail.com>
Subject Redirect-to uri
Date Wed, 22 Jan 2003 23:07:27 GMT
<html><div style='background-color:'><DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>Hi
all,</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>I
am trying the redirect-to in the sitemap and I have some trouble here.</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>Site
map:</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org></mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org>&nbsp;</DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>&nbsp;&lt;map:match
pattern="my_req"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;map:act
type="form-validator"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;map:parameter
name="descriptor" value="context://project/Validate.xml"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="validate-set" value="my_req"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;!-- if success --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:generate type="xsp" src="xsp/Save.xsp"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:redirect-to session="true" uri="main.xml"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/map:act&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>&nbsp;
&lt;!-- if fail --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:generate type="xsp" src="xsp/new.xsp"/&gt;<BR>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:serialize/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:match&gt;&nbsp; </mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org></mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org>&nbsp;</DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>And
the code in the action is:</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>&lt;page&gt;<BR>&nbsp;&nbsp;
&lt;content&gt;&nbsp;&nbsp;<BR>&nbsp;&nbsp; &lt;esql:connection&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;esql:pool&gt;project&lt;/esql:pool&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;esql:execute-query&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;esql:query&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
insert into mydb (ID,Date)</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>&nbsp;values
(null,sysdate)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/esql:query&gt;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/esql:error-results&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;esql:update-results&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;!--inserted&gt;&lt;esql:get-update-count/&gt;&lt;/inserted--&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/esql:update-results&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/esql:execute-query&gt;</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>&nbsp;&nbsp;
&lt;/esql:connection&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;
&lt;/content&gt;<BR>&nbsp; &lt;/page&gt;</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org></mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org>&nbsp;</DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>If
I have map:redirect in the &lt;/map:act&gt;, the data is not inserted into the table
and it redirects to main.xml.&nbsp; If I have it outside &lt;/map:act&gt;, it
gives "FATAL -- LANGUAGE EXCEPTION".&nbsp; Can some one guide me here</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org></mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org>&nbsp;</DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>Thanks</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>Raj</mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></DIV>
<DIV><mailto:cocoon-users-help@xml.apache.org><mailto:cocoon-users-unsubscribe@xml.apache.org><mailto:cocoon-users@xml.apache.org>&nbsp;</DIV></mailto:cocoon-users@xml.apache.org></mailto:cocoon-users-unsubscribe@xml.apache.org></mailto:cocoon-users-help@xml.apache.org></div><br
clear=all><hr>MSN 8 with <a href="http://g.msn.com/8HMMENUS/2740">e-mail virus
protection service: </a> 2 months FREE*</html>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message