Re: Exception in tomcat catalina.out

2006-03-16 Thread Anna Bikkina

cocoon-2.1.4
tomcat-4.1.x

Thanks,
Anna.

Antonio Gallardo wrote:

Versions?

Best Regards,

Antonio Gallardo.

Anna Bikkina wrote:


Hi,

I am running my application in cocoon and am using cocoon portals . I 
see the following error in tomcat catalina.out constantly. The 
application seems to work fine. Can anyone explain why I am getting 
this error.


Thanks,
Anna.


java.lang.NullPointerException
   at 
org.apache.cocoon.environment.http.HttpRequest.getRequestURI(HttpRequest.java:227) 

   at 
org.apache.cocoon.util.log.CocoonLogFormatter.getURI(CocoonLogFormatter.java:232) 

   at 
org.apache.cocoon.util.log.CocoonLogFormatter.formatPatternRun(CocoonLogFormatter.java:175) 

   at 
org.apache.cocoon.util.log.ExtensiblePatternFormatter.format(ExtensiblePatternFormatter.java:376) 

   at 
org.apache.log.output.AbstractOutputTarget.format(AbstractOutputTarget.java:189) 

   at 
org.apache.log.output.AbstractOutputTarget.doProcessEvent(AbstractOutputTarget.java:148) 

   at 
org.apache.log.output.AbstractTarget.processEvent(AbstractTarget.java:145) 


   at org.apache.log.Logger.fireEvent(Logger.java:708)
   at org.apache.log.Logger.output(Logger.java:683)
   at org.apache.log.Logger.output(Logger.java:666)
   at org.apache.log.Logger.info(Logger.java:206)
   at 
org.apache.avalon.framework.logger.LogKitLogger.info(LogKitLogger.java:117) 

   at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1167)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) 

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) 

   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) 

   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) 

   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) 


   at java.lang.Thread.run(Thread.java:534)
Logging Error: Unknown error writing event.


-
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]



Exception in tomcat catalina.out

2006-03-09 Thread Anna Bikkina

Hi,

I am running my application in cocoon and am using cocoon portals . I 
see the following error in tomcat catalina.out constantly. The 
application seems to work fine. Can anyone explain why I am getting this 
error.


Thanks,
Anna.


java.lang.NullPointerException
   at 
org.apache.cocoon.environment.http.HttpRequest.getRequestURI(HttpRequest.java:227)
   at 
org.apache.cocoon.util.log.CocoonLogFormatter.getURI(CocoonLogFormatter.java:232)
   at 
org.apache.cocoon.util.log.CocoonLogFormatter.formatPatternRun(CocoonLogFormatter.java:175)
   at 
org.apache.cocoon.util.log.ExtensiblePatternFormatter.format(ExtensiblePatternFormatter.java:376)
   at 
org.apache.log.output.AbstractOutputTarget.format(AbstractOutputTarget.java:189)
   at 
org.apache.log.output.AbstractOutputTarget.doProcessEvent(AbstractOutputTarget.java:148)
   at 
org.apache.log.output.AbstractTarget.processEvent(AbstractTarget.java:145)

   at org.apache.log.Logger.fireEvent(Logger.java:708)
   at org.apache.log.Logger.output(Logger.java:683)
   at org.apache.log.Logger.output(Logger.java:666)
   at org.apache.log.Logger.info(Logger.java:206)
   at 
org.apache.avalon.framework.logger.LogKitLogger.info(LogKitLogger.java:117)
   at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1167)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)

   at java.lang.Thread.run(Thread.java:534)
Logging Error: Unknown error writing event.


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



ESQL question

2005-10-20 Thread Anna Bikkina
Hi,

I am trying to get data from the database. My sqlstatement and the order
of columns retreived are dynamically built so when I am getting
esql:get-string
column=XXX I want to make  dynamic like 

esql:get-string column=xsp:exprcolumnname/xsp:expr/

Is there a way we can do it?

Thanks in advance

Anna.




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



Re: ESQL question

2005-10-20 Thread Anna Bikkina

I tried doing xsp:expr but that didnt work. Is there any way I can do
with xsp:logic.

Thanks,
Anna.

On Thu, 2005-10-20 at 11:27, Markus Vaterlaus wrote:
 Hi Anna
 
 can't you do it with a bit of  xsp:logic/?
 
 Markus
 
 On 10/20/05, Anna Bikkina [EMAIL PROTECTED] wrote:
 Hi,
 
 I am trying to get data from the database. My sqlstatement and
 the order
 of columns retreived are dynamically built so when I am
 getting
 esql:get-string
 column=XXX I want to make  dynamic like 
 
 esql:get-string column=xsp:exprcolumnname/xsp:expr/
 
 Is there a way we can do it?
 
 Thanks in advance
 
 Anna.
 
 
 
 
 - 
 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]



RE: ESQL question

2005-10-20 Thread Anna Bikkina

Tried both of them earlier. This is the error I am getting
org.apache.cocoon.ProcessingException: java.lang.RuntimeException:
java.lang.RuntimeException: Stylesheet directed termination:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: Stylesheet directed termination

Any other ideas?

Thanks for your help.

Anna.


On Thu, 2005-10-20 at 12:27, Boisvert, Éric wrote:
 not sure this will work, but I think it's something along
 
 esql:get-string
   xsp:attribute name=column/xsp:attribute
 /esql:get-string
 
 or maybe it's esql:attribute name=column/esql:attribute
 
 Eric
 
 -Message d'origine-
 De : Anna Bikkina [mailto:[EMAIL PROTECTED]
 Envoyé : 20 octobre, 2005 11:53
 À : Markus Vaterlaus
 Cc : Cocoon users group
 Objet : Re: ESQL question
 
 
 
 I tried doing xsp:expr but that didnt work. Is there any way I can do
 with xsp:logic.
 
 Thanks,
 Anna.
 
 On Thu, 2005-10-20 at 11:27, Markus Vaterlaus wrote:
  Hi Anna
  
  can't you do it with a bit of  xsp:logic/?
  
  Markus
  
  On 10/20/05, Anna Bikkina [EMAIL PROTECTED] wrote:
  Hi,
  
  I am trying to get data from the database. My sqlstatement and
  the order
  of columns retreived are dynamically built so when I am
  getting
  esql:get-string
  column=XXX I want to make  dynamic like 
  
  esql:get-string column=xsp:exprcolumnname/xsp:expr/
  
  Is there a way we can do it?
  
  Thanks in advance
  
  Anna.
  
  
  
  
 
 - 
  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]



esql:get-string dynamic column name

2005-10-18 Thread Anna Bikkina
Hi,

I am trying to get data from the database. My sqlstatement and the order
of columns are dynamically built so when I am getting esql:get-string
column=XXX I want to make  dynamic like 

esql:get-string column=xsp:exprcolumnname/xsp:expr/

Is there a way we can do it?

Thanks in advance

Anna.


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



Opening html in a different web browser

2005-04-07 Thread Anna Bikkina
Hi,

I am trying to open a html page in a different web browser. I am not
sure how to do it. Can anyone please suggest?

Here is the sitemap I am using to generate the html page. How can I tell
the sitemap to launch the output in a differnt web browser?
   
 map:match pattern=help
 map:generate type=html src=resources/help.html/  

map:serialize type=xml/ 
/map:match



Thanks,
Anna.


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



Loading profile exception

2005-03-23 Thread Anna Bikkina

Hi,

I am getting a peculiar exception while running my app in cocoon. It 
worked fine for almost a year and yesterday it gave me this error. I
tried to figure it out but could not. So reinstalled cocoon and my app
and it worked. Now it is giving the same error again. Can someone help?

Exception during loading of profile
Caused by: org.apache.excalibur.source.SourceException: Exception during
processing of
cocoon://myapp/load-global-profile?profile=copletbasedataportal=portallayout=portal
at 
org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:319)
at 
org.apache.cocoon.portal.profile.impl.MapProfileLS.loadProfile(MapProfileLS.java:141)
at 
org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.getProfile(AuthenticationProfileManager.java:327)
at 
org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.loadProfile(AuthenticationProfileManager.java:111)
at 
org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager.getPortalLayout(AbstractUserProfileManager.java:345)
... 69 more
Caused by: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.xml.sax.SAXException: Unrecognized file format.
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:293)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:525)
at 
org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:310)
... 73 more


Thanks,
Anna.


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



Re: Cocoon portal tabs

2004-12-13 Thread Anna Bikkina

In layout/portal.xml I have quotehistory defined like this

named-item name=QuoteHistory
composite-layout name=row
item
composite-layout name=column

item
parameter name=width value=50% /
coplet-layout name=coplet
   
coplet-instance-dataquotehistory-1/coplet-instance-data
/coplet-layout
/item
/composite-layout
/item
  /composite-layout
 /named-item 


After login cocoon takes me to first tab in portal page. Here is the
link location that is found in address bar for quotehistory tab

http://localhost:8890/ent1/portal?cocoon-portal-action=0cocoon-portal-event=3


The portal event and action variables are changing everytime a tab is
selected.

Thank you for replying.

Anna.

On Mon, 2004-12-13 at 13:14, Ralph Goers wrote:
 What do you have in layout/portal.xml?  When you your portal is displayed
 and you manually select the tab that that you want login to go to, what
 url shows in the address bar?
 
 Ralph
 
 
 
 Anna Bikkina said:
  I am using pageLabels.
 
  Here is my sitemap . I tried id and pageLabel=quotehistory in the
  redirect-to uri none of them worked.
 
  map:match pattern=loginprojects
  map:act type=auth-loggedIn
map:parameter name=handler value=portalhandler/
map:redirect-to uri=portal/
  /map:act
  map:select type=session-attribute
  map:parameter name=attribute-name value=project/
  map:when test=tes1t1
  map:act type=auth-login
map:parameter name=handler
  value=portalhandler/
map:parameter name=parameter_name
  value={session-attr:traderid}/
map:parameter name=parameter_password
  value={session-attr:sessionid}/
map:parameter name=parameter_project
  value={session-attr:project}/
 
map:redirect-to
  uri=portal?pageLabel=quotehistory/
 
  /map:act
  /map:when
  map:otherwise
  map:redirect-to uri=logintest1/
  /map:otherwise
  /map:select
  /map:match
 
 
  Here is part of portal.xml in profiles/copletdata directory.
 
  coplet-data id=quotehistory name=standard
titleSecurity Quote History:/title
coplet-base-dataURICoplet/coplet-base-data
attribute
  nameuri/name
  value xsi:type=java:java.lang.String
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;cocoon:/coplets/search/quotehistory.xsp/value
/attribute
 /coplet-data
 
  In portal.xml in copletinstancedata here is the part of quotehistory
 
 coplet-instance-data id=quotehistory-1 name=standard
coplet-dataquotehistory/coplet-data
 /coplet-instance-data
 
  Am  I doing something wrong here.
 
  Thank you for replying
 
  Anna.
 
 
  On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
  Anna,
 
  I can't tell if you are using page labels or bookmarks.  If you are not
  using either one then this just won't work. If you are using bookmarks
  then I guess we'd also need to see the configuraiton for that.  If you
  are using page labels I'd expect the url to be
  portal?pageLabel=quotehistory unless you changed the request parameter
  name in the configuration.
 
  Ralph
 
  Anna Bikkina wrote:
 
  Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
  quotehistory is the name of  second tab in the portal page. I want that
  to be selected when user opens the portal page.
  
  map:match pattern=loginprojects
  map:act type=auth-loggedIn
map:parameter name=handler value=portalhandler/
map:redirect-to uri=portal/
  /map:act
map:select type=session-attribute
map:parameter name=attribute-name value=project/
map:when test=tes1t1
map:act type=auth-login
  map:parameter name=handler value=portalhandler/
  map:parameter name=parameter_name
  value={session-attr:traderid}/
  map:parameter name=parameter_password
  value={session-attr:sessionid}/
  map:parameter name=parameter_project
  value={session-attr:project}/
  
  map:redirect-to uri=portal?id=quotehistory/
/map:act
/map:when
map:otherwise
map:redirect-to uri=logintest1/
/map:otherwise
/map:select
  /map:match
  
  
  
  In portal.xml in profiles/copletdata directory I have the this
  information along with the other tabs

Re: Cocoon portal tabs

2004-12-13 Thread Anna Bikkina

In portal.xml in copletdata I have the following 

coplet-data id=quotehistory name=standard
  titleSecurity Quote History:/title
  coplet-base-dataURICoplet/coplet-base-data
  attribute
nameuri/name
value xsi:type=java:java.lang.String
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;cocoon:/coplets/search/quotehistory.xsp/value
  /attribute
   /coplet-data  

Is  the id mentioned here the id we can use for pageLabel in redirect-to
uri?


Thanks,
Anna.

On Mon, 2004-12-13 at 13:13, Philippe Guillard wrote:
 The most important thing (just a suggestion because you didn't show it 
 here), is that you have quotehistory as a tab name in your layout, not 
 the name of the coplet :
named-item name=quotehistory
coplet-layout name=coplet
 
 coplet-instance-dataquotehistory-1/coplet-instance-data
   /coplet-layout
   /named-item
 Phil
 
 
 Anna Bikkina wrote:
 
 I am using pageLabels. 
 
 Here is my sitemap . I tried id and pageLabel=quotehistory in the
 redirect-to uri none of them worked.
 
 map:match pattern=loginprojects
 map:act type=auth-loggedIn
   map:parameter name=handler value=portalhandler/ 
   map:redirect-to uri=portal/
 /map:act
 map:select type=session-attribute
 map:parameter name=attribute-name value=project/
 map:when test=tes1t1
 map:act type=auth-login
   map:parameter name=handler
 value=portalhandler/
   map:parameter name=parameter_name
 value={session-attr:traderid}/
   map:parameter name=parameter_password
 value={session-attr:sessionid}/
   map:parameter name=parameter_project
 value={session-attr:project}/
 
   map:redirect-to
 uri=portal?pageLabel=quotehistory/

 /map:act  
 /map:when
 map:otherwise
 map:redirect-to uri=logintest1/
 /map:otherwise
 /map:select
 /map:match
 
 
 Here is part of portal.xml in profiles/copletdata directory. 
 
 coplet-data id=quotehistory name=standard
   titleSecurity Quote History:/title
   coplet-base-dataURICoplet/coplet-base-data
   attribute
  nameuri/name
  value xsi:type=java:java.lang.String
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;cocoon:/coplets/search/quotehistory.xsp/value
   /attribute
/coplet-data  
 
 In portal.xml in copletinstancedata here is the part of quotehistory
 
coplet-instance-data id=quotehistory-1 name=standard
   coplet-dataquotehistory/coplet-data
/coplet-instance-data
 
 Am  I doing something wrong here.
 
 Thank you for replying
 
 Anna.
 
 
 On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
   
 
 Anna,
 
 I can't tell if you are using page labels or bookmarks.  If you are not 
 using either one then this just won't work. If you are using bookmarks 
 then I guess we'd also need to see the configuraiton for that.  If you 
 are using page labels I'd expect the url to be 
 portal?pageLabel=quotehistory unless you changed the request parameter 
 name in the configuration.
 
 Ralph
 
 Anna Bikkina wrote:
 
 
 
 Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
 quotehistory is the name of  second tab in the portal page. I want that
 to be selected when user opens the portal page.
 
map:match pattern=loginprojects
map:act type=auth-loggedIn
  map:parameter name=handler value=portalhandler/ 
  map:redirect-to uri=portal/
/map:act
map:select type=session-attribute
map:parameter name=attribute-name value=project/
map:when test=tes1t1
map:act type=auth-login
  map:parameter name=handler value=portalhandler/
  map:parameter name=parameter_name
 value={session-attr:traderid}/
  map:parameter name=parameter_password
 value={session-attr:sessionid}/
  map:parameter name=parameter_project
 value={session-attr:project}/
 
  map:redirect-to uri=portal?id=quotehistory/
/map:act  
/map:when
map:otherwise
map:redirect-to uri=logintest1/
/map:otherwise
/map:select
/map:match
 
 
 
 In portal.xml in profiles/copletdata directory I have the this
 information along with the other tabs
 
   coplet-data id=quotehistory name=standard
  titleSecurity Quote History:/title
  coplet-base-dataURICoplet/coplet-base-data

Re: Cocoon portal tabs

2004-12-13 Thread Anna Bikkina
I am using pageLabels. 

Here is my sitemap . I tried id and pageLabel=quotehistory in the
redirect-to uri none of them worked.

map:match pattern=loginprojects
map:act type=auth-loggedIn
  map:parameter name=handler value=portalhandler/ 
  map:redirect-to uri=portal/
/map:act
map:select type=session-attribute
map:parameter name=attribute-name value=project/
map:when test=tes1t1
map:act type=auth-login
  map:parameter name=handler
value=portalhandler/
  map:parameter name=parameter_name
value={session-attr:traderid}/
  map:parameter name=parameter_password
value={session-attr:sessionid}/
  map:parameter name=parameter_project
value={session-attr:project}/

  map:redirect-to
uri=portal?pageLabel=quotehistory/
   
/map:act  
/map:when
map:otherwise
map:redirect-to uri=logintest1/
/map:otherwise
/map:select
/map:match


Here is part of portal.xml in profiles/copletdata directory. 

coplet-data id=quotehistory name=standard
  titleSecurity Quote History:/title
  coplet-base-dataURICoplet/coplet-base-data
  attribute
nameuri/name
value xsi:type=java:java.lang.String
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;cocoon:/coplets/search/quotehistory.xsp/value
  /attribute
   /coplet-data  

In portal.xml in copletinstancedata here is the part of quotehistory

   coplet-instance-data id=quotehistory-1 name=standard
  coplet-dataquotehistory/coplet-data
   /coplet-instance-data

Am  I doing something wrong here.

Thank you for replying

Anna.


On Fri, 2004-12-10 at 22:40, Ralph Goers wrote:
 Anna,
 
 I can't tell if you are using page labels or bookmarks.  If you are not 
 using either one then this just won't work. If you are using bookmarks 
 then I guess we'd also need to see the configuraiton for that.  If you 
 are using page labels I'd expect the url to be 
 portal?pageLabel=quotehistory unless you changed the request parameter 
 name in the configuration.
 
 Ralph
 
 Anna Bikkina wrote:
 
 Here is my sitemap. I am using redirect-to uri portal?id=quotehistory
 quotehistory is the name of  second tab in the portal page. I want that
 to be selected when user opens the portal page.
 
 map:match pattern=loginprojects
 map:act type=auth-loggedIn
   map:parameter name=handler value=portalhandler/ 
   map:redirect-to uri=portal/
 /map:act
  map:select type=session-attribute
  map:parameter name=attribute-name value=project/
  map:when test=tes1t1
  map:act type=auth-login
map:parameter name=handler value=portalhandler/
map:parameter name=parameter_name
 value={session-attr:traderid}/
map:parameter name=parameter_password
 value={session-attr:sessionid}/
map:parameter name=parameter_project
 value={session-attr:project}/
 
map:redirect-to uri=portal?id=quotehistory/
  /map:act  
  /map:when
  map:otherwise
  map:redirect-to uri=logintest1/
  /map:otherwise
  /map:select
 /map:match
 
 
 
 In portal.xml in profiles/copletdata directory I have the this
 information along with the other tabs
 
coplet-data id=quotehistory name=standard
   titleSecurity Quote History:/title
   coplet-base-dataURICoplet/coplet-base-data
   attribute
  nameuri/name
  value xsi:type=java:java.lang.String
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;cocoon:/coplets/search/quotehistory.xsp/value
   /attribute
/coplet-data 
 
 
 Not sure where it is going wrong but it doesnt go to tab2. I goes to
 tab1 as it does by default.
 
 On Thu, 2004-12-09 at 16:14, Ralph Goers wrote:
   
 
 Please post the relevant portions of your sitemap.
 
 Ralph
 
 
 Anna Bikkina said:
 
 
 I was doing exactly the same. It didnt work. Is there any other way I
 can try.
 
 Thank you for answering.
 
 Anna.
   
 
 
   
 
 
 
 -
 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]


Re: Cocoon portal tabs

2004-12-09 Thread Anna Bikkina
I was doing exactly the same. It didnt work. Is there any other way I
can try.

Thank you for answering.

Anna.


On Wed, 2004-12-08 at 15:18, Nick Goupinets wrote:
 Hi Anna,
 
 I guess I was asking what is the underlying mechanism you use that 
 switches tabs. I have no experience at all with Portal Page Labels, if 
 that's what you got. Anyhow, I hope that the hack that I will suggest 
 will be suitable for any tab-switching algorithm.
 
 In the main portal sitemap (the one that contains configuration for the 
 portal), there is auth pipeline. If a user is successfully 
 authenticated this pipeline does a redirect depending on the value of 
 request parameter resource.
 
 map:redirect-to uri={request-param:resource}/
 
 By default, this resource parameter is hard coded to be portal in 
 login-html.xsl (part of the skin - responsible for rendering the login 
 coplet).
 
 In case pattern like portal?id=tab2 works for you, all you have to do 
 is to add that id parameter to the redirection URL, so that it will look 
 like this:
 
 map:redirect-to uri={request-param:resource}?id=tab2/
 
 In case you have access to the authentication pipelines, you can store 
 the tab value in the authentication context (read more about it here:
 http://cocoon.apache.org/2.1/developing/webapps/authentication.html ).
 
 So, if you have the following authentication info for a user:
 
 authentication
  IDUnique ID of the user in the system/ID
  rolerolename/role !-- optional --
  tabValuetab2/tabValue
  data
  Any additional optional information can be supplied here.
  This will be stored in the session for later retrieval
  /data
 /authentication
 
 Then the redirect could look like:
 
 map:redirect-to uri={request-param:resource}?id={tabValue}/
 
 I hope that this will work for you, but I haven't tried it (so the 
 advice will be purely theoretical).
 
 Sincerely,
 Nick.
 
 PS. Here is the auth pipeline:
 
!-- Authenticate a user --
map:match pattern=auth
  !-- Check if we are logged in:
  - if we are anonymous, then logout
  - if we are any other use, redirect to loggedin
  --
  map:act type=auth-loggedIn
map:parameter name=handler value=portal-handler/
 
map:act type=auth-protect
  map:parameter name=handler value=portal-handler/
  map:parameter name=application value=portal/
 
  
  
  
 
  !-- Start the authentication process --
  map:act type=auth-login
map:parameter name=handler value=portal-handler/
map:parameter name=application value=portal/
map:parameter name=parameter_name 
 value={request-param:name}/
map:parameter name=parameter_password 
 value={request-param:password}/
 
!-- Authentication succeeded --
map:act type=portal-login
  map:parameter name=portal-name value=portal/
/map:act
 
map:redirect-to uri={request-param:resource}/
  /map:act
 
 Anna Bikkina wrote:
  What I really want is to display all tabs for all users but depending on
  which user is logged in I want to have the right tab selected first. I
  want the order of the tabs also to remain same. Just the right tab has
  to be selected. 
  
  When I was doing href=portal?id=tab2 it is going to tab2 but to do
  that I should be in the portal page. I want tab2 to be selected for the
  users as he gets to the portal page.
  
  Thank your replying back.
  
  Anna.
  
  
  
  On Tue, 2004-12-07 at 17:32, Nick Goupinets wrote:
  
 Hi Anna,
 
 I am not exactly sure which features you are talking about. I have never 
 seen switching portal tabs just based on the id request parameter.
 
 Can you provide more information?
 
 BTW, if you want to display different pages for different users, you can 
 use very fine grained profiling system. Just modify the pipelines that 
 fetch layout information.
 
 Sincerely,
 Nick.
 
 Anna Bikkina wrote:
 
 Can someone please help me get this working?
 
 On Mon, 2004-12-06 at 13:13, Anna Bikkina wrote:
 
 
 Hi,
 
 I am using cocoon portal features. In my portal page I have tabs. When I
 choose portal it goes to the first tab in my application. I want the
 application to go to different tabs depending on which user is logged
 in. so when I redirect to portal after I login . I tried
   map:rediect-to uri=portal?id=tab2/
 
 but that didnt work. When I use hyperlinks that say a
 href=portal?id=tab2 it goes to the respective tab. Not sure why
 redirect-to is not working..
 
 Can someone please help me how to solve this problem.
 
 Thanks,
 Anna.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL

Re: Cocoon portal tabs

2004-12-08 Thread Anna Bikkina
What I really want is to display all tabs for all users but depending on
which user is logged in I want to have the right tab selected first. I
want the order of the tabs also to remain same. Just the right tab has
to be selected. 

When I was doing href=portal?id=tab2 it is going to tab2 but to do
that I should be in the portal page. I want tab2 to be selected for the
users as he gets to the portal page.

Thank your replying back.

Anna.



On Tue, 2004-12-07 at 17:32, Nick Goupinets wrote:
 Hi Anna,
 
 I am not exactly sure which features you are talking about. I have never 
 seen switching portal tabs just based on the id request parameter.
 
 Can you provide more information?
 
 BTW, if you want to display different pages for different users, you can 
 use very fine grained profiling system. Just modify the pipelines that 
 fetch layout information.
 
 Sincerely,
 Nick.
 
 Anna Bikkina wrote:
  Can someone please help me get this working?
  
  On Mon, 2004-12-06 at 13:13, Anna Bikkina wrote:
  
 Hi,
 
 I am using cocoon portal features. In my portal page I have tabs. When I
 choose portal it goes to the first tab in my application. I want the
 application to go to different tabs depending on which user is logged
 in. so when I redirect to portal after I login . I tried
 map:rediect-to uri=portal?id=tab2/
 
 but that didnt work. When I use hyperlinks that say a
 href=portal?id=tab2 it goes to the respective tab. Not sure why
 redirect-to is not working..
 
 Can someone please help me how to solve this problem.
 
 Thanks,
 Anna.
 
 
 -
 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]



Re: Cocoon portal tabs

2004-12-07 Thread Anna Bikkina
Can someone please help me get this working?

On Mon, 2004-12-06 at 13:13, Anna Bikkina wrote:
 Hi,
 
 I am using cocoon portal features. In my portal page I have tabs. When I
 choose portal it goes to the first tab in my application. I want the
 application to go to different tabs depending on which user is logged
 in. so when I redirect to portal after I login . I tried
   map:rediect-to uri=portal?id=tab2/
 
 but that didnt work. When I use hyperlinks that say a
 href=portal?id=tab2 it goes to the respective tab. Not sure why
 redirect-to is not working..
 
 Can someone please help me how to solve this problem.
 
 Thanks,
 Anna.
 
 
 -
 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]



Cocoon portal tabs

2004-12-06 Thread Anna Bikkina
Hi,

I am using cocoon portal features. In my portal page I have tabs. When I
choose portal it goes to the first tab in my application. I want the
application to go to different tabs depending on which user is logged
in. so when I redirect to portal after I login . I tried
map:rediect-to uri=portal?id=tab2/

but that didnt work. When I use hyperlinks that say a
href=portal?id=tab2 it goes to the respective tab. Not sure why
redirect-to is not working..

Can someone please help me how to solve this problem.

Thanks,
Anna.


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



datasource components in cocoon

2004-12-06 Thread Anna Bikkina
I am using datasources in cocoon. I define them in cocoon.xconf. Is
there any API in cocoon from which I can get all the datasources defined
in cocoon.xconf.I have to  create a adminsitrative page where I have to
display all datasources cocoon is configured to connect.

Any help is greatly appreciated.

Thanks,
Anna.


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



Re: Cocoon portal and META Tag

2004-11-24 Thread Anna Bikkina

Yes my html has 2 head tags. Do you think that matters?


On Tue, 2004-11-23 at 14:49, Ralph Goers wrote:
 I'm a little confused by this.  Is this the output from a cocoon portlet?
 Portals generally only want portlets to emit stuff that goes within body
 tags.  I'm pretty sure the portal will generate its own head tags so
 yours would be another set.
 
 
 Anna Bikkina said:
 
  head tag in wait.xsp
 
 
  head
 
  String requestattr = 0;url=portal?nowait=true;
  Enumeration attrnames = request.getParameterNames();
  while(attrnames.hasMoreElements()) {
  String attrname = (String)attrnames.nextElement();
  if(!attrname.equals(nowait)) {
  String attrvalue = request.getParameter(attrname);
  requestattr = requestattr +  + attrname + = + attrvalue;
  }
  }
  meta http-equiv=refresh 
  xsp:attribute
  name=contentxsp:exprrequestattr/xsp:expr/xsp:attribute
  /meta
  /head
 
  !-- SAMPLE OC  SEARCH IN SITEMAP --
 map:match pattern=sampleoc.xsp
  map:select type=request-parameter
  map:parameter name=parameter-name value=nowait/
  map:when test=false
map:generate type=serverpages src=wait.xsp /
  /map:when
  map:otherwise
map:act type=get-sample
  map:parameter name=sample 
  value={request-param:sampleoc}/
  map:generate type=serverpages 
  src=traderocresult.xsp/
 
  /map:act
 
  /map:otherwise
  /map:select
 
   map:transform/
   map:serialize/
 /map:match
 !-- END OF SAMPLE OC SEARCH--
 
 
 -
 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]



Re: Cocoon portal and META Tag

2004-11-23 Thread Anna Bikkina
Here is my code that is causing this problem.

I have a xsp that takes input parameters and uses post method. 



form href=cocoon:/coplets/search/sampleoc.xsp name=form1
method=post
 input name=sampleoc type=text
 input name=user type=text 
 input name=startdate type=text 
 input name=submit1 value=GO type=submit onClick=go()/
 input name=nowait value=false type=hidden /
/form


sampeloc has a hidden parameter nowait. If nowait is false then it goes
to wait.xsp. Wait.xsp is a page which just contains a animated gif which
contains a meta tag so that it can redirect to a different page.I wanted
to have wait.xsp in between the main page and results page because users
can understand that something is going on  because searching is taking a
long time and to display output when user submits sampleoc.xsp is almost
1 minute away. So for user interaction we wanted to have a animated gif
till the output search is done.In meta tag of wait.xsp I made nowait =
true so that in the sitemap it goes to the results page where database
query is done and results are displayed. When the submit method is get
everything is going on as excepted otherwise once the parameters are
submitted it goes to the results page and then we click back button.
Type in different parameters and click on submit the search is still
going on for the previous parameters. ANy help is greatly appreciated.

head tag in wait.xsp


head

String requestattr = 0;url=portal?nowait=true;
Enumeration attrnames = request.getParameterNames();
while(attrnames.hasMoreElements()) {
String attrname = (String)attrnames.nextElement();  
if(!attrname.equals(nowait)) {
String attrvalue = request.getParameter(attrname);
requestattr = requestattr + amp; + attrname + = + attrvalue;
}
}   
meta http-equiv=refresh 
xsp:attribute
name=contentxsp:exprrequestattr/xsp:expr/xsp:attribute
/meta
/head
   
!-- SAMPLE OC  SEARCH IN SITEMAP --
   map:match pattern=sampleoc.xsp
map:select type=request-parameter
map:parameter name=parameter-name value=nowait/
map:when test=false
  map:generate type=serverpages src=wait.xsp /
/map:when
map:otherwise 
  map:act type=get-sample   
map:parameter name=sample 
value={request-param:sampleoc}/ 
map:generate type=serverpages 
src=traderocresult.xsp/ 

/map:act

/map:otherwise
/map:select

 map:transform/
 map:serialize/
   /map:match
   !-- END OF SAMPLE OC SEARCH--
   



On Mon, 2004-11-22 at 18:21, Johannes Textor wrote:
 Hi Anna,
 
 I'm having a hard time figuring out what your problem
 might be ... it would be useful if you could include source
 codes for your xsp and provide more information about how
 you actually pass your parameters.
 
 cocoon itself does not differentiate between post and get
 request methods neither does it store values of previous
 request, so I would guess you're either doing something wrong
 when reading out the parameters ore it's a browser cache issue.
 
 cheers,
 Johannes
 
 Anna Bikkina wrote:
 
 Can anyone provide input on this problem? I still cannot get the
 post/get methods working as they should.
 
 Thanks,
 Anna.
 
 On Wed, 2004-11-17 at 16:53, Anna Bikkina wrote:
   
 
 I think cocoon is somewhere internally storing my previous request
 values because before submit I called a javascript and checked the
 variables entered in page2 it displays right variables but then it still
 posts page1 variables and this is happening only when the submit type of
 form in page2 is post. How can I get rid of this?
 
 
 On Wed, 2004-11-17 at 16:32, Anna Bikkina wrote:
 
 
 Hi,
 
 I have a wierd problem using META tab in HEAD of my HTML in cocoon
 portal. May be this is a html question more than a portal question. Can
 someone please help me solve this one.. I have been working on this for
 more than a week now.
 
 I have a html form in a cocoon coplet(page1.xsp). When I submit the form
 it goes to wait.xsp which just displays a animated gif saying searching
 results . Wait.xsp  has 
 
 meta http-equiv=refresh 
 content=1;url=page1.xsp?param1=xxparam2=YY
 
 where the url in content  contains all the request parameters that come
 to wait.xsp.
 
 Now this one goes to the same sitemap match as page1  and the sitemap
 directs it to page2 depending on some conditions page2 displays results
 and also has  almost the same html form as in page1. When I submit the
 form in page2 it submits details as in page1 when the method type =
 post when the method type = get it works the way it should by
 posting parameters in page2 .Not sure what

Re: Cocoon portal and META Tag

2004-11-22 Thread Anna Bikkina


Can anyone provide input on this problem? I still cannot get the
post/get methods working as they should.

Thanks,
Anna.

On Wed, 2004-11-17 at 16:53, Anna Bikkina wrote:
 I think cocoon is somewhere internally storing my previous request
 values because before submit I called a javascript and checked the
 variables entered in page2 it displays right variables but then it still
 posts page1 variables and this is happening only when the submit type of
 form in page2 is post. How can I get rid of this?
 
 
 On Wed, 2004-11-17 at 16:32, Anna Bikkina wrote:
  Hi,
  
  I have a wierd problem using META tab in HEAD of my HTML in cocoon
  portal. May be this is a html question more than a portal question. Can
  someone please help me solve this one.. I have been working on this for
  more than a week now.
  
  I have a html form in a cocoon coplet(page1.xsp). When I submit the form
  it goes to wait.xsp which just displays a animated gif saying searching
  results . Wait.xsp  has 
  
  meta http-equiv=refresh 
  content=1;url=page1.xsp?param1=xxparam2=YY
  
  where the url in content  contains all the request parameters that come
  to wait.xsp.
  
  Now this one goes to the same sitemap match as page1  and the sitemap
  directs it to page2 depending on some conditions page2 displays results
  and also has  almost the same html form as in page1. When I submit the
  form in page2 it submits details as in page1 when the method type =
  post when the method type = get it works the way it should by
  posting parameters in page2 .Not sure what difference it makes when it
  is a get/post. Any  help is greatly appreciated.
  
  Here is the sitemap component for the coplet
  
  

  map:match pattern=page1.xsp
  
  map:select type=request-parameter
  map:parameter name=parameter-name value=nowait/
  map:when test=false
  map:generate type=serverpages src=wait.xsp /
  /map:when
  map:otherwise
  map:generate type=serverpages src=page2.xsp
  label=raw/   
  /map:otherwise
  map:transform
  src=context://newhistoryserver/styles/searchresult.xsl/
  map:serialize/ 
  
  /map:select
  
  map:generate src=page2.xsp type=serverpages/
  map:transform  src=context:/newhistoryserver/styles/search.xsl/
  map:serialize/  
 /map:match
  
  
  
  
  -
  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]



Cocoon portal and META Tag

2004-11-17 Thread Anna Bikkina
Hi,

I have a wierd problem using META tab in HEAD of my HTML in cocoon
portal. May be this is a html question more than a portal question. Can
someone please help me solve this one.. I have been working on this for
more than a week now.

I have a html form in a cocoon coplet(page1.xsp). When I submit the form
it goes to wait.xsp which just displays a animated gif saying searching
results . Wait.xsp  has 

meta http-equiv=refresh 
content=1;url=page1.xsp?param1=xxparam2=YY

where the url in content  contains all the request parameters that come
to wait.xsp.

Now this one goes to the same sitemap match as page1  and the sitemap
directs it to page2 depending on some conditions page2 displays results
and also has  almost the same html form as in page1. When I submit the
form in page2 it submits details as in page1 when the method type =
post when the method type = get it works the way it should by
posting parameters in page2 .Not sure what difference it makes when it
is a get/post. Any  help is greatly appreciated.

Here is the sitemap component for the coplet


  
map:match pattern=page1.xsp

map:select type=request-parameter
map:parameter name=parameter-name value=nowait/
map:when test=false
map:generate type=serverpages src=wait.xsp /
/map:when
map:otherwise
map:generate type=serverpages src=page2.xsp
label=raw/   
/map:otherwise
map:transform
src=context://newhistoryserver/styles/searchresult.xsl/
map:serialize/ 

/map:select

map:generate src=page2.xsp type=serverpages/
map:transform  src=context:/newhistoryserver/styles/search.xsl/
map:serialize/  
   /map:match




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



Re: Cocoon portal and META Tag

2004-11-17 Thread Anna Bikkina
I think cocoon is somewhere internally storing my previous request
values because before submit I called a javascript and checked the
variables entered in page2 it displays right variables but then it still
posts page1 variables and this is happening only when the submit type of
form in page2 is post. How can I get rid of this?


On Wed, 2004-11-17 at 16:32, Anna Bikkina wrote:
 Hi,
 
 I have a wierd problem using META tab in HEAD of my HTML in cocoon
 portal. May be this is a html question more than a portal question. Can
 someone please help me solve this one.. I have been working on this for
 more than a week now.
 
 I have a html form in a cocoon coplet(page1.xsp). When I submit the form
 it goes to wait.xsp which just displays a animated gif saying searching
 results . Wait.xsp  has 
 
 meta http-equiv=refresh 
 content=1;url=page1.xsp?param1=xxparam2=YY
 
 where the url in content  contains all the request parameters that come
 to wait.xsp.
 
 Now this one goes to the same sitemap match as page1  and the sitemap
 directs it to page2 depending on some conditions page2 displays results
 and also has  almost the same html form as in page1. When I submit the
 form in page2 it submits details as in page1 when the method type =
 post when the method type = get it works the way it should by
 posting parameters in page2 .Not sure what difference it makes when it
 is a get/post. Any  help is greatly appreciated.
 
 Here is the sitemap component for the coplet
 
 
   
 map:match pattern=page1.xsp
 
   map:select type=request-parameter
   map:parameter name=parameter-name value=nowait/
   map:when test=false
   map:generate type=serverpages src=wait.xsp /
   /map:when
   map:otherwise
   map:generate type=serverpages src=page2.xsp
 label=raw/ 
 /map:otherwise
   map:transform
 src=con  text://newhistoryserver/styles/searchresult.xsl/
   map:serialize/ 
   
   /map:select
 
   map:generate src=page2.xsp type=serverpages/
   map:transform  src=context:/newhistoryserver/styles/search.xsl/
   map:serialize/  
/map:match
 
 
 
 
 -
 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]



RE: Serialize option for both html and xls

2004-11-16 Thread Anna Bikkina

Thanks for the reply. What I actually want to have both xls and html
displayed at the same time with the same result set. I guess select
displays only one of them. Is there a way I can display both at the same
time. 

Thanks,
Anna.


On Tue, 2004-11-16 at 06:48, Oliver Powell wrote:
 2 serializers in one pipeline won't work, it's not allowed. I've never
 serialized to xls before, but I think you should be able use the
 map:select tag just before you specify the serializer
 
 So it would be something like this:
 
 map:match pattern=*.*
   map:generate src={1).xml/
   map:select type=parameter
 map:parameter name=parameter-selector-test value={2}/
 map:when test=xls
   map:serialize type=xls/!-- or whatever the excel serializer
 is named, I don't know this --
 /map:when
 map:when test=html
   map:serialize type=html/
 /map:when
   /map:select
 /map:match
 
 What's happening is the second '*' maps to parameter {2} in the
 pipeline. Parameter Selectors are explained here:
 http://cocoon.apache.org/2.1/userdocs/selectors/parameter-selector.html
 
 Which can be reached via the User Guide link under Documentation on
 the Cocoon homepage, from the user guide select Selectors on the left.
 This page links to the page I mention above.
 
 I haven't tested this but it should work, or something to the effect
 
 Good luck!
 ollie
 
 
 -Original Message-
 From: Anna Bikkina [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 16 November 2004 11:36 a.m.
 To: [EMAIL PROTECTED]
 Subject: Serialize option for both html and xls
 
 
 Hi,
 
 I want a webpage to open a excel and display a html with the same
 result. I tried using 2 serialize statements in my map:match but it did
 not work. Is there any way I can do this. Any help is greatly
 appreciated.
 
 Thanks,
 Anna.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 CAUTION: This e-mail and any attachment(s) contains information
 that is intended to be read only by the named recipient(s). It
 may contain information that is confidential, proprietary or the
 subject of legal privilege. This information is not to be used by
 any other person and/or organisation. If you are not the intended
 recipient, please advise us immediately and delete this e-mail
 from your system. Do not use any information contained in it.
 
 
 For more information on the Television New Zealand Group, visit
 us online at http://www.tvnz.co.nz
 


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



Cocoon portal action

2004-11-15 Thread Anna Bikkina
Hi,

I have a application with uses cocoon portal framework. This application
has multiple tab in the main page. Depending on the user who logs in I
want a particular tab to be selected. How can I do that? Right now the
first tab is always open and only when I click on tab link I can go to
second tab . I also want my second tab to be selected when I click some
button on my first button. I do not know how to select tab without
clicking on them. Is there any Id or something that I can specify with
my call http://localhost:8080/cocoon/myapp/portal?id=?? depending on
what is clicked on which user is logged in Please help...

Thanks,
Anna.


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



Re: Cocoon portal action

2004-11-15 Thread Anna Bikkina
Thank you. Will check it out.

On Mon, 2004-11-15 at 14:08, Nick Goupinets wrote:
 Hi Anna,
 
 Portal bookmarks should help you to implement what you need.
 
 http://wiki.apache.org/cocoon/PortalEngineBookmarks
 
 
 Anna Bikkina wrote:
  Hi,
  
  I have a application with uses cocoon portal framework. This application
  has multiple tab in the main page. Depending on the user who logs in I
  want a particular tab to be selected. How can I do that? Right now the
  first tab is always open and only when I click on tab link I can go to
  second tab . I also want my second tab to be selected when I click some
  button on my first button. I do not know how to select tab without
  clicking on them. Is there any Id or something that I can specify with
  my call http://localhost:8080/cocoon/myapp/portal?id=?? depending on
  what is clicked on which user is logged in Please help...
  
  Thanks,
  Anna.
  
  
  -
  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]



Serialize option for both html and xls

2004-11-15 Thread Anna Bikkina
Hi,

I want a webpage to open a excel and display a html with the same
result. I tried using 2 serialize statements in my map:match but it did
not work. Is there any way I can do this. Any help is greatly
appreciated.

Thanks,
Anna.


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



Re: Intermediate page in between request and response

2004-11-11 Thread Anna Bikkina
Can anyone please answer this question?

On Wed, 2004-11-10 at 12:44, Anna Bikkina wrote:
 Hi,
 
 I have a cocoon program that display huge now of rows when a user
 request for search for some information. When the user enters data in
 page1 and clicks GO  I have a xsp to search information in the database
 and display it in page2.The time it takes for the search is 5 min or so
 I want to display an intermediate page which contains an animated image
 ( like in www.orbitz.com) and then take the user to page2 when the
 search is done. This is required because the users sometimes clicks GO
 2,3 times resulting in multiple searches . Users do not realize that the
 search is going on hence causing many other problems.
 
 Right now this is how I have it in my sitemap. Is there a way I can show
 an intermediate page ?? by the way I am using cocoon portal server.
 
  map:match pattern=history.xsp
  
 map:act type=validate   
map:parameter name=validate value={request-param:date}/  
 
   map:generate type=serverpages src=page2.xsp
   map:parameter name=currentvalue={CURRENT}/
map:parameter name=startdatevalue={startdate}/
   map:parameter name=enddate value={enddate}/
   map:parameter name=pool value={pool}/
   /map:generate 
   map:transform src=context://project/styles/searchresult.xsl/
   map:serialize/
   
 /map:act
   
  map:generate src=page1.xsp type=serverpages/   
  map:transform rc=context:/project/styles/search.xsl/ 
  map:serialize/  
/map:match
 
 
 Thanks you very much in advance,
 
 Anna.
 
 
 
 -
 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]



Intermediate page in between request and response

2004-11-10 Thread Anna Bikkina
Hi,

I have a cocoon program that display huge now of rows when a user
request for search for some information. When the user enters data in
page1 and clicks GO  I have a xsp to search information in the database
and display it in page2.The time it takes for the search is 5 min or so
I want to display an intermediate page which contains an animated image
( like in www.orbitz.com) and then take the user to page2 when the
search is done. This is required because the users sometimes clicks GO
2,3 times resulting in multiple searches . Users do not realize that the
search is going on hence causing many other problems.

Right now this is how I have it in my sitemap. Is there a way I can show
an intermediate page ?? by the way I am using cocoon portal server.

 map:match pattern=history.xsp
 
map:act type=validate   
   map:parameter name=validate value={request-param:date}/

map:generate type=serverpages src=page2.xsp
map:parameter name=currentvalue={CURRENT}/
 map:parameter name=startdatevalue={startdate}/
map:parameter name=enddate value={enddate}/
map:parameter name=pool value={pool}/
/map:generate 
map:transform src=context://project/styles/searchresult.xsl/
map:serialize/

/map:act

 map:generate src=page1.xsp type=serverpages/ 
 map:transform rc=context:/project/styles/search.xsl/ 
 map:serialize/  
   /map:match


Thanks you very much in advance,

Anna.



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



Error while loggin to cocoon

2004-08-24 Thread Anna Bikkina

I get this error today when I was trying to login to cocoon portal server.
Can someone please shed some light on this.

An Error Occurred
Failed to execute pipeline.

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.NullPointerException

cause: java.lang.NullPointerException

full exception chain stacktrace[show] 

Original Exception: java.lang.NullPointerException
at
org.apache.cocoon.portal.event.impl.DefaultEventManager.processEvents(Defaul
tEventManager.java:293)
at
org.apache.cocoon.portal.impl.PortalManagerImpl.process(PortalManagerImpl.ja
va:86)
at
org.apache.cocoon.portal.impl.PortletPortalManager.process(PortletPortalMana
ger.java:228)
at
org.apache.cocoon.portal.generation.PortalGenerator.generate(PortalGenerator
.java:94)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:581)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:525)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:155)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:173)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:165)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:136)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:371)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:312)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:133)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:165)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:136)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:371)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:312)
at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at

Re: Sorting html tables dynamically

2004-08-04 Thread Anna Bikkina


Thank you for the responses. Brainjar's script might not work for me. I have 
1000's of rows in my table. Typically there are around 9000 rows this might 
not work for me.

Anna.


On Wednesday 04 August 2004 07:07 am, FREDERIC MOSER wrote:



   Client side table sorting using javascript (like
   http://brainjar.com/dhtml/tablesort/) is a really cool concept
 
  but if
 
   you have a lot of rows, your browser might get very slow and crash.
 
  yes thats true, but in most cases so many rows that can crash or
  slowdown
  browser its not a good idea to be displayed to the user too.
 
  i have no problem sorting some hundred rows (in IE).
 
  -- stavros

 I must admit I used brainjar's script pretty much out of the box.
 I never succeed sorting hundred of rows with a reasonable speed (depends
 on what you're sorting of course...). But I still like the idea a lot so
 I would be curious to see how you're doing it.

 Thanks in advance,

 Fred


 -
 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]



Re: Sorting html tables dynamically

2004-08-04 Thread Anna Bikkina
Can anyone please send me a snippet of how to use xsl:sort.

Anna.

On Wednesday 04 August 2004 08:38 am, [EMAIL PROTECTED] wrote:
 On Wed, 4 Aug 2004, FREDERIC MOSER wrote:
Client side table sorting using javascript (like
http://brainjar.com/dhtml/tablesort/) is a really cool concept
  
   but if
  
you have a lot of rows, your browser might get very slow and crash.
  
   yes thats true, but in most cases so many rows that can crash or
   slowdown
   browser its not a good idea to be displayed to the user too.
  
   i have no problem sorting some hundred rows (in IE).
  
   -- stavros

 i use microsoft's .htc behaviors to do think like that (work only on IE)

 take a look here


 http://tools.osmosis.gr/pubftp/table_sort/demo.html

 ps
 --

 every time i had to configure an .htc to work under cocoon i must to spend
 many hours :-(

 -- stavros

  I must admit I used brainjar's script pretty much out of the box.
  I never succeed sorting hundred of rows with a reasonable speed (depends
  on what you're sorting of course...). But I still like the idea a lot so
  I would be curious to see how you're doing it.
 
  Thanks in advance,
 
  Fred
 
 
  -
  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]



Re: Sorting html tables dynamically

2004-08-04 Thread Anna Bikkina
I am developing a server that displays historical information of a set of 
activities.Sometimes for a particular day the no of rows would be 9000. They 
are obtained from a database using a stored procedure which I call in my xsp 
and converted to html using xsl. They is no hard requirement that they have 
to be displayed all at once but then we have been doing it for a long time. 
Now the clients come up with this requirement of sorting...

Anna.


On Wednesday 04 August 2004 02:07 pm, [EMAIL PROTECTED] wrote:
 On Wed, 4 Aug 2004, Anna Bikkina wrote:
  Thank you for the responses. Brainjar's script might not work for me. I
  have 1000's of rows in my table. Typically there are around 9000 rows
  this might not work for me.
 
  Anna.

 hi anna

 can i ask you how do you produce this amount of rows ?
 and why do you want o display all at once ?


 -- stavros

  On Wednesday 04 August 2004 07:07 am, FREDERIC MOSER wrote:
 Client side table sorting using javascript (like
 http://brainjar.com/dhtml/tablesort/) is a really cool concept
   
but if
   
 you have a lot of rows, your browser might get very slow and crash.
   
yes thats true, but in most cases so many rows that can crash or
slowdown
browser its not a good idea to be displayed to the user too.
   
i have no problem sorting some hundred rows (in IE).
   
-- stavros
  
   I must admit I used brainjar's script pretty much out of the box.
   I never succeed sorting hundred of rows with a reasonable speed
   (depends on what you're sorting of course...). But I still like the
   idea a lot so I would be curious to see how you're doing it.
  
   Thanks in advance,
  
   Fred
  
  
   -
   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]



Sorting html tables dynamically

2004-08-03 Thread Anna Bikkina
Hi,

I have a cocoon portal appliation that displays information in html tables. I 
have to provide sorting of columns in this table to users. How can we do 
this? Can someone please shed some light on this and send me some code 
snippets.

Thanks,
Anna.


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



esql row count

2004-05-27 Thread Anna Bikkina
Hi,

I am trying to get the count of number of rows returned in a query using esql. 
Is there something like esql:get-row-count. 

Any idea how I can get the number of rows using esql.

Thanks,

Anna.


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



Re: large xml's in cocoon

2004-05-26 Thread Anna Bikkina

I do not see any out of memory errors. It just results in a blank page. Not 
sure what it could be. I will change the java parameters and see how it 
works.

By the way I am running cocoon in tomcat. So I should be changing java 
paramaters in startup.sh or catalina.sh in tomcat right?

Thanks for answering.


Anna.


On Tuesday 25 May 2004 03:24 pm, Bertrand Delacretaz wrote:
 Le 25 mai 04, à 20:57, Anna Bikkina a écrit :
  ...I have a xml file that contains database rows. If the number of
  rows are
  greater than 5000 then cocoon fails to tranform them to html and
  display
  them. It gives a blank page with no errors...

 Probably an OutOfMemoryError, did you check the console output and/or
 servlet engine logs?

 You'll probably need to increase the memory available to the JVM
 running Cocoon, using JVM command-line options.

 -Bertrand

 -
 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]



Database Isolation Level

2004-05-25 Thread Anna Bikkina
Hi,

I am using cocoon's connection pool to make connections to my informix 
database. I think the connection cocoon is making is trying to lock rows in 
the database. In my application I have only reads no writes so I want cocoon 
to make dirty reads instead. Is there a place where I can set this?
set islation to dirty read;

My connection params look like this

    jdbc logger=core.datasources.myserver name=myserver
      pool-controller min=3 max=10 /
      auto-commitfalse/auto-commit
      dburljdbc:informix-sqli://
dev:1000:informixserver=myserver;Database=mydatabase/dburl
      userinformix/user
      passwordpassword/password
      drivercom.informix.jdbc.IfxDriver/driver
    /jdbc


Thanks,
Anna.


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



large xml's in cocoon

2004-05-25 Thread Anna Bikkina
Hi,

I have a xml file that contains database rows. If the number of rows are 
greater than 5000 then cocoon fails to tranform them to html and display 
them. It gives a blank page with no errors.

Has anyone experienced this before? Is there a way I can  make cocoon perform 
better with big xml.?

Any suggestions,inputs are welcome.

Thanks,
Anna.


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



web.xml parameters in cocoon action classes

2004-04-27 Thread Anna Bikkina
Hi,

I have a n application which runs on cocoon. I have to get some parameters 
from web.xml or cocoon.xconf into my action classes and use them there. I 
tried using 
ObjectModelHelper.getContext(objectModel).getInitParameter(timelimit);

but it didnt work. It is returning null. How can I access init parameters in 
cocoon whcih are specified in web.xml

Thanks in advace,
Anna.


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



HttpSession cocoonportal tomcat

2004-04-21 Thread Anna Bikkina
Hi,

I have a very peculiar problem with my application. Can someone please shed 
some light on this.

I have a webapplication(app1) whose logon page loads 2 frames. Frame1 has 
index.jsp from app1 and frame2 has my app from cocoon(app2).This app in 
cocoon uses cocoon's portal framework.

When user opens the first page of app1 both the frames are loaded with 
different applications. When user logs on to app1 internally using java 
script I logon to cocoon portal and display the logged in portal page in 
frame2. 

In frame2 I see the portal page but when the user tries to do anything it logs 
out. Session is lost I guess, and the same happens in frame1 also. Both the 
sessions are lost.And this interesting behaviour happens only when app1 is 
set as ROOT context of tomcat.If app1 is not the ROOT context of tomcat 
everything works fine.

Can someone please help me solve this. I have been struggling with this for a 
week now.Something very mysterious is happening and I am not good at manging 
sessions etc . I might be missing something.

Thanks in advance,
Anna.


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



Re: HttpSession cocoonportal tomcat

2004-04-21 Thread Anna Bikkina

Hi just an update on the post below.

I guess this is more to do with cocoon's handling of sessions. My 
application(app1) firsts logs onto cocoon's portal and then logons to itself. 
The session of cocoon is somehow getting invalidated when my app1 is getting 
logged in. I tried the same with an other application in frame2 other than 
cocoon. It worked as expected.

Can someone please shed some light on it.

On Wednesday 21 April 2004 03:57 pm, Anna Bikkina wrote:
 Hi,

 I have a very peculiar problem with my application. Can someone please shed
 some light on this.

 I have a webapplication(app1) whose logon page loads 2 frames. Frame1 has
 index.jsp from app1 and frame2 has my app from cocoon(app2).This app in
 cocoon uses cocoon's portal framework.

 When user opens the first page of app1 both the frames are loaded with
 different applications. When user logs on to app1 internally using java
 script I logon to cocoon portal and display the logged in portal page in
 frame2.

 In frame2 I see the portal page but when the user tries to do anything it
 logs out. Session is lost I guess, and the same happens in frame1 also.
 Both the sessions are lost.And this interesting behaviour happens only when
 app1 is set as ROOT context of tomcat.If app1 is not the ROOT context of
 tomcat everything works fine.

 Can someone please help me solve this. I have been struggling with this for
 a week now.Something very mysterious is happening and I am not good at
 manging sessions etc . I might be missing something.

 Thanks in advance,
 Anna.


 -
 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]



HttpSession and Frames

2004-04-19 Thread Anna Bikkina
Hi,

This might not be the appropriate place to post my question but I thought I 
might get an answer if I post the question here.

I have a web page which has 2 frames each opening 2 different web 
applications.When I logon to frame1 I internally also logon to web app in 
frame2 and display the index page in frame2. Practically I want both he 
application to have differnt HttpSessions. When user click on a link in 
frame1 it should open a window with href being the url of the webapplication 
in frame2 using session of frame2. 

This works in netscape perfectly. In IE the new window does not open frame2's 
index page it instead goes to the login page as if the user did not login in 
earlier. I want the index page to be displayed and the new window opened to 
use the same session as frame2 and not of frame1. Is this possible? 

Can someone please suggest how I can do this in IE? When I use 
window.parent.open it opens the index page but then the same session is 
carried in the new window and the parent window which is causing different 
problems.

Thanks in advance,
Anna.


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



Logging in cocoon

2004-04-14 Thread Anna Bikkina
Hi all,

I am using the following statement to get logger in cocoon and loggin messages 
in java and jsp classes
Logger logger=Hierarchy.getDefaultHierarchy().getLoggerFor(myproj);
getLogger.debug(message1);

It works fine but I cant see any file with the log information in my project 
directory. How and where should I specify login file details.

Any help would be appreciated.

Thanks,
Anna.




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



Display of output in coplets

2004-03-26 Thread Anna Bikkina
Hi,

I have asked this question earlier. This time I am trying to put in a better 
way.

I have 4 coplets which contain html forms. When users submits any of these 
forms I want the output to be displayed in the 5th coplet which is not 
visible when the user first looks at the screen. Only when the output has to 
be displayed for any of the 4 coplets the user should see teh 5th coplet with 
the output. The other4 coplets should be displayed just the way they are.

Is it possible to do it. 

Can anyone please help. 


Thanks for your time,
Anna.


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



Role Profile in cocoon portals

2004-03-24 Thread Anna Bikkina
Hi,

I have a portal application using cocoon. I have 4 coplets in the base profile 
information. When the role is xxx then I do not want one of the coplets to be 
displayed  . How can I do this? 

I read the documentation but it was not of great help.

Can someone please tell me how to do this.

Thanks,
Anna.


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



Re: Question in coplets

2004-03-23 Thread Anna Bikkina

Can someone please answer my question below??

Also how can I make one coplet visible only when the role is xxx. Where should 
I mention this. I read the documentation for portal profiles in the cocoon 
site but it is not very helpful.

Thanks,
Anna.

On Monday 22 March 2004 01:21 pm, Anna Bikkina wrote:
 Hi,

 I have 4 coplets all displayed in one page. Each of them is a form. When I
 submit on one of these forms I want the output of this request to displayed
 in a 5th coplets and have the 4 coplets displayed underneath that as
 before.

 Is this possible?

 Right now when I click on submit I display the output in the same coplet.
 Can someone please tell me how I can display the output in a different
 coplet. Another point here is when any one of the 4 forms are submitted I
 want the output to be displayed in the same 5th coplet. The 5th coplet
 should not appear when no forms are submitted.

 Thanks,
 Anna.


 -
 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]



Coplets and Excel Generation

2004-03-22 Thread Anna Bikkina
can someone please answer my question below
---BeginMessage---
OK. I posted the same question earlier but re-framed it so that someone can me 
suggestions. 

I have coplet which accepts some input keys and shoud generate a excel file. 
When I click on submit it takes to the ill formatted html file but does not 
generate a excel file.

I use the same pipeline(generator,transfomer and serializer) outside a coplet 
like in a hyperlink. It  works just fine. 

Can someone tell me where I am making a mistake. Is there anything we have to 
specify for a coplet to generate a xml file. 

my pipeline looks like this
map:generate src=context://historyserver/coplets/search/sec.xml/   
 
map:transform src=context://historyserver/styles/page2xls.xsl/ 
map:serialize type=xls/ 


Any help is greatly appreciated.

Thanks,
Anna.


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



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

Question in coplets

2004-03-22 Thread Anna Bikkina
Hi,

I have 4 coplets all displayed in one page. Each of them is a form. When I 
submit on one of these forms I want the output of this request to displayed 
in a 5th coplets and have the 4 coplets displayed underneath that as before. 

Is this possible?

Right now when I click on submit I display the output in the same coplet. Can 
someone please tell me how I can display the output in a different coplet. 
Another point here is when any one of the 4 forms are submitted I want the 
output to be displayed in the same 5th coplet. The 5th coplet should not 
appear when no forms are submitted.

Thanks,
Anna.


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



Re: HSSF Serializer question(Excel)

2004-03-15 Thread Anna Bikkina
Thank you for the information. I guess thats right. I tried the same in 
netscape and it worked fine.

Anna.


On Friday 12 March 2004 10:17 pm, Tim Larson wrote:
 On Fri, Mar 12, 2004 at 04:06:04PM -0500, Anna Bikkina wrote:
  I am having a strange problem trying to convert a xml document to
  excel.The excel is being generated perfectly, and when the alert
  saying(Do you want to open,save or cancel this document.) comes up and I
  try to open the excel the same pipeline which executed this excel is
  being executed again. When I click on save and save it to my local
  harddrive the pipeline is not executed twice.
 
  Did anyone face a similar problem.

 Are you using IE 5.5 as your browser?  It has a bug that causes this
 same problem when loading PDF documents.  Maybe it is a general problem
 for any type of file handled externally?  The symptoms are that IE
 downloads the file once for itself and then a second time to give it to
 Acrobat.  Perhaps you hit the same bug with Excel documents?

 It may not fit your use-case, but I solved it by separating the file
 generation from the file download by having a generate button that
 triggers the creation and saving of the PDF to a file on the server,
 and a separate button to download the file.  However, you have to watch
 out for race conditions if more than one instance of the pipeline can
 write to the same file at the same time.

 --Tim Larson

 -
 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]



HSSF Serializer question(Excel)

2004-03-12 Thread Anna Bikkina
Hi,


I am having a strange problem trying to convert a xml document to excel.The 
excel is being generated perfectly, and when the alert saying(Do you want to 
open,save or cancel this document.) comes up and I try to open the excel the 
same pipeline which executed this excel is being executed again. When I click 
on save and save it to my local harddrive the pipeline is not executed twice.

Did anyone face a similar problem. The time taken for the execution of my 
pipeline is very long(it does huge database queries) so it is very noticaly 
when I trying to open the excel document directly. 

Can somone please shed some light on this problem.

A snippet of my sitemap.

   map:match pattern=quotehistoryexcel
map:act type=get-security   
map:parameter name=security 
value={request-param:security}/ 
  
map:generate type=serverpages 
src=quotehistoryresult.xsp/ 

map:transform 
src=context://historyserver/styles/page2xls.xsl/
map:serialize type=xls/
  /map:act
/map:match

Thank you for you time.

Anna.


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



Request parameters question

2004-03-11 Thread Anna Bikkina
Hi,

I have a xsp page which contains a hyper link .There are some request 
parameters and some parameters passed to this xsp . 
The link refers to another pipeline in the sitemap. Basically I have to pass 
some of these parameters(from the parent xsp) to that pipeline in the 
sitemap(to which the link refers).

Is there a way I can do it. Can someone please help me with this.

Thanks,
Anna.


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



Re: Request parameters question

2004-03-11 Thread Anna Bikkina
I am having a problem passing multiple parameters to the hyperlink..

like a href=securityexcel?security=xxxstartdate=2004-02-13 
00:00:00enddate=xxx

when I use  it is giving me an error 
The reference to entity startdate must end with the ';' delimiter.

How can I pass multiple parameters to the link. I tried using \ but still the 
same problem.

Thanks,
Anna.

On Thursday 11 March 2004 11:31 am, JD Daniels wrote:
 Anna Bikkina wrote:
 Hi,
 
 I have a xsp page which contains a hyper link .There are some request
 parameters and some parameters passed to this xsp .
 The link refers to another pipeline in the sitemap. Basically I have to
  pass some of these parameters(from the parent xsp) to that pipeline in
  the sitemap(to which the link refers).
 
 Is there a way I can do it. Can someone please help me with this.
 
 Thanks,
 Anna.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 a
 xsp:attribute
 name=href/sitemap-uri?your_param=xsp-request:get-parameter
 name=your_param//xsp:attribute
 Click Here
 /a

 Should do it. You need
 xmlns:xsp-request=http://apache.org/xsp/request/2.0; attribute in your
 xsp:page tag as well.

 JD

 -
 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]



Re: Request parameters question

2004-03-11 Thread Anna Bikkina
oh yeah that worked. 

Thank you soo much
Anna.

On Thursday 11 March 2004 11:57 am, [EMAIL PROTECTED] wrote:
 i'm sorry

 you should use only one time amp;

 -Original Message-
 From: Anna Bikkina [mailto:[EMAIL PROTECTED]
 Sent: 11mm2004 17:52
 To: [EMAIL PROTECTED]
 Subject: Re: Request parameters question


 I am having a problem passing multiple parameters to the hyperlink..

 like a href=securityexcel?security=xxxstartdate=2004-02-13
 00:00:00enddate=xxx

 when I use  it is giving me an error
 The reference to entity startdate must end with the ';' delimiter.

 How can I pass multiple parameters to the link. I tried using \ but still
 the
 same problem.

 Thanks,
 Anna.

 On Thursday 11 March 2004 11:31 am, JD Daniels wrote:
  Anna Bikkina wrote:
  Hi,
  
  I have a xsp page which contains a hyper link .There are some request
  parameters and some parameters passed to this xsp .
  The link refers to another pipeline in the sitemap. Basically I have to
   pass some of these parameters(from the parent xsp) to that pipeline in
   the sitemap(to which the link refers).
  
  Is there a way I can do it. Can someone please help me with this.
  
  Thanks,
  Anna.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  a
  xsp:attribute
  name=href/sitemap-uri?your_param=xsp-request:get-parameter
  name=your_param//xsp:attribute
  Click Here
  /a
 
  Should do it. You need
  xmlns:xsp-request=http://apache.org/xsp/request/2.0; attribute in your
  xsp:page tag as well.
 
  JD
 
  -
  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]



Re: Fwd: Re: Need help on generating excel

2004-03-10 Thread Anna Bikkina
security.xsp is in a coplet. Do you that is causing the whole problem. When I 
use a hyperlink or  view to do the same its working. Do you think the culprit 
is the coplet. any help is appreciated.

Thanks,
Anna.

On Tuesday 09 March 2004 04:43 pm, Anna Bikkina wrote:
 Thank you for the information. I used the log transformer and compared the
 output in the view and the pipelines. They are the same .

 I compared the logs at the following points

 1.After the generate statement in the pipeline, first statement in the view
 2.After transform in the view and pipeline
 3.After serialize in the view and pipeline(This did not yield any output).

 The logs are the same in both the view and pipeline at all points.

 I am wondering having the serialize as the last statement in the sitemap
 match or view does matter... like seralize to xls(HSSLSerializer) is the
 last statement in the view but in my match pipeles its not the last
 statement. Can someone tell me if this matters. Below is my complete match
 pipeline

 map:match pattern=security.xsp

 map:act type=validator
   map:parameter name=descriptor value=descriptor.xml/
   map:generate type=serverpages 
 src=securityresult.xsp
 label=raw/

   map:transform 
 src=context://historyserver/styles/page2xls.xsl/
   map:serialize type=xls/
   /map:act
   map:generate src=quotehistory.xsp type=serverpages/
   map:transform src=context:/historyserver/styles/search.xsl/
map:serialize/
/map:match

 On Tuesday 09 March 2004 12:02 pm, Tim Larson wrote:
  On Tue, Mar 09, 2004 at 10:35:19AM -0500, Anna Bikkina wrote:
   I am using serverpages generator to genarate xml from the xsp's. I use
   the same xsp in both the cases. I am wondering what difference could be
   there in the generated SAX events.  The only change in my sitemap in
   both the match statements  is the transformer and the serializer after
   the generator.
  
   I got the view from the generator and serialized to xls and checked it.
   It looks perfect. As I said when I copy this file to a location in my
   machine and use it instead of the generator and then have the
   page2xls.xsl tranformer and seriliaze the tranformed output using
   HSSSerializer(xls) it works.
  
   I changed my match pipeline in the sitemap
  map:generate src=security.xsp type=serverpages label=raw/
map:transform
   src=context:/historyserver/styles/page2xls.xsl/ map:serialize
   type=xls/
  
   My view looks like this
 map:view lable=raw name=raw
 map:tranform src=context:/historyserver/styles/page2xls.xsl/
 map:serialize type=xls/
 /map:view
  
   I am wondering why my view is working and my match pipeline is not
   working. They are doing just the same thing. Can you please tell me
   what I am missing here.
  
   Thanks in advance,
   Anna.
 
  The LogTransformer would be very helpful to debug this.  Put a log
  transformer between each step to record the stages of the SAX event
  stream into separate files.  Then use diff, WinMerge, Meld, XXDiff or
  whatever tool you like to compare the corresponding log files from your
  working and non-working pipelines.  Report to this list what the
  differences are and someone may be able to diagnose the problem and
  offer a solution.
 
  Documentation for the LogTransformer is at the top of this page:
http://wiki.cocoondev.org/Wiki.jsp?page=Transformer
  BTW, the LogTransformer gives more details for debugging than the
  profiling pipelines do, because the transformer records the actual
  full stream of SAX events, including namespace prefix mappings, etc.
 
  Hope this helps,
  --Tim Larson
 
  -
  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]



Coplets and Excel Generation

2004-03-10 Thread Anna Bikkina
OK. I posted the same question earlier but re-framed it so that someone can me 
suggestions. 

I have coplet which accepts some input keys and shoud generate a excel file. 
When I click on submit it takes to the ill formatted html file but does not 
generate a excel file.

I use the same pipeline(generator,transfomer and serializer) outside a coplet 
like in a hyperlink. It  works just fine. 

Can someone tell me where I am making a mistake. Is there anything we have to 
specify for a coplet to generate a xml file. 

my pipeline looks like this
map:generate src=context://historyserver/coplets/search/sec.xml/   
 
map:transform src=context://historyserver/styles/page2xls.xsl/ 
map:serialize type=xls/ 


Any help is greatly appreciated.

Thanks,
Anna.


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



Fwd: Re: Need help on generating excel

2004-03-09 Thread Anna Bikkina

---BeginMessage---
I am using serverpages generator to genarate xml from the xsp's. I use the 
same xsp in both the cases. I am wondering what difference could be there in 
the generated SAX events.  The only change in my sitemap in both the match 
statements  is the transformer and the serializer after the generator.

I got the view from the generator and serialized to xls and checked it. It 
looks perfect. As I said when I copy this file to a location in my machine 
and use it instead of the generator and then have the page2xls.xsl tranformer 
and seriliaze the tranformed output using HSSSerializer(xls) it works. 

I changed my match pipeline in the sitemap 
 map:generate src=security.xsp type=serverpages label=raw/   
 map:transform src=context:/historyserver/styles/page2xls.xsl/
 map:serialize type=xls/

My view looks like this
map:view lable=raw name=raw
map:tranform src=context:/historyserver/styles/page2xls.xsl/
map:serialize type=xls/
/map:view

I am wondering why my view is working and my match pipeline is not working. 
They are doing just the same thing. Can you please tell me what I am missing 
here.

Thanks in advance,
Anna.



On Monday 08 March 2004 05:06 pm, you wrote:
 If you get different behavior from your xsp than from a file generator
 that suggests the stream of generated SAX events is not the same (even
 though when serialized as XML it looks the same). You could try using the
 LogTransformer to see how the two SAX streams differ.
 But first I'd examine the transformed XML in both cases as that might be
 enough to point you in the right direction.
 Maybe the xsp isn't using namespaces correctly.
 Cheers,
   Neil.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Behalf Of Anna Bikkina
 Sent: Tuesday, 9 March 2004 8:31 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Need help on generating excel


 Can someone please answer my question.

 Thanks in advance,
 Anna.

 On Friday 05 March 2004 04:47 pm, Anna Bikkina wrote:
  Hi,
 
  I have a application that has to generate html and excel with the same

 data.

  For now  I am trying to have 2 buttons one which would perform the query
  and display it in html
 
   map:generate src=security.xsp type=serverpages/
  map:transform src=context:/historyserver/styles/search.xsl/
  map:serialize/
 
  where search.xsl is written to convert data to html tables.
 
  I have another button which converts the same data to excel . It performs
  query to the database and is expected to display data in excel. I am
  using the org.apache.cocoon.serialization.HSSFSerializer to perform this.
 
   map:generate src=security.xsp type=serverpages label=raw/
  map:transform src=context:/historyserver/styles/page2xls.xsl/
  map:serialize type=xls/
 
 
  The first one works but the second one does not create a excel file. It

 creates an ill formatted html.

  When I view the xml that is  generated using views(with label raw) and

 copy

  the content to a xml file and use that as input to transform and then
  serialize to xls that works. It displays the output in excel.
 
   I am not understanding where it is going wrong.
 
  Can someone please tell me where I am going wrong. I have been trying to
  work on my sitemap and xsl files for over 2 days now but could not find

 the

  solution.
 
  Thanks,
  Anna.
 
 
  -
  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]

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

Re: Need help on generating excel

2004-03-09 Thread Anna Bikkina

 I am using serverpages generator to genarate xml from the xsp's. I use the
 same xsp in both the cases. I am wondering what difference could be there
 in the generated SAX events.  The only change in my sitemap in both the
 match statements  is the transformer and the serializer after the
 generator.

 I got the view from the generator and serialized to xls and checked it. It
 looks perfect. As I said when I copy this file to a location in my machine
 and use it instead of the generator and then have the page2xls.xsl
 tranformer and seriliaze the tranformed output using HSSSerializer(xls) it
 works.

 I changed my match pipeline in the sitemap
 map:generate src=security.xsp type=serverpages label=raw/
  map:transform src=context:/historyserver/styles/page2xls.xsl/
  map:serialize type=xls/

 My view looks like this
map:view lable=raw name=raw
map:tranform src=context:/historyserver/styles/page2xls.xsl/
map:serialize type=xls/
/map:view

 I am wondering why my view is working and my match pipeline is not working.
 They are doing just the same thing. Can you please tell me what I am
 missing here.

 Thanks in advance,
 Anna.


 On Monday 08 March 2004 05:06 pm, you wrote:
  If you get different behavior from your xsp than from a file generator
  that suggests the stream of generated SAX events is not the same (even
  though when serialized as XML it looks the same). You could try using the
  LogTransformer to see how the two SAX streams differ.
  But first I'd examine the transformed XML in both cases as that might be
  enough to point you in the right direction.
  Maybe the xsp isn't using namespaces correctly.
  Cheers,
  Neil.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Behalf Of Anna Bikkina
  Sent: Tuesday, 9 March 2004 8:31 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Need help on generating excel
 
 
  Can someone please answer my question.
 
  Thanks in advance,
  Anna.
 
  On Friday 05 March 2004 04:47 pm, Anna Bikkina wrote:
   Hi,
  
   I have a application that has to generate html and excel with the same
 
  data.
 
   For now  I am trying to have 2 buttons one which would perform the
   query and display it in html
  
  map:generate src=security.xsp type=serverpages/
   map:transform src=context:/historyserver/styles/search.xsl/
   map:serialize/
  
   where search.xsl is written to convert data to html tables.
  
   I have another button which converts the same data to excel . It
   performs query to the database and is expected to display data in
   excel. I am using the org.apache.cocoon.serialization.HSSFSerializer to
   perform this.
  
  map:generate src=security.xsp type=serverpages label=raw/
   map:transform
   src=context:/historyserver/styles/page2xls.xsl/ map:serialize
   type=xls/
  
  
   The first one works but the second one does not create a excel file. It
 
  creates an ill formatted html.
 
   When I view the xml that is  generated using views(with label raw) and
 
  copy
 
   the content to a xml file and use that as input to transform and then
   serialize to xls that works. It displays the output in excel.
  
I am not understanding where it is going wrong.
  
   Can someone please tell me where I am going wrong. I have been trying
   to work on my sitemap and xsl files for over 2 days now but could not
   find
 
  the
 
   solution.
  
   Thanks,
   Anna.
  
  
   -
   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]



Re: Need help on generating excel

2004-03-08 Thread Anna Bikkina
This produces a html which is not formatted.

Thanks for the reply
Anna.


On Friday 05 March 2004 11:21 pm, Tim Larson wrote:
 On Fri, Mar 05, 2004 at 04:47:24PM -0500, Anna Bikkina wrote:
 snip/

  I have another button which converts the same data to excel . It performs
  query to the database and is expected to display data in excel. I am
  using the org.apache.cocoon.serialization.HSSFSerializer to perform this.
 
   map:generate src=security.xsp type=serverpages label=raw/
  map:transform src=context:/historyserver/styles/page2xls.xsl/
  map:serialize type=xls/

 So what does this produce?  An exception, a file in some other format,
 a malformed excel file, or what?

  The first one works but the second one does not create a excel file.
  When I view the xml that is  generated using views(with label raw) and
  copy the content to a xml file and use that as input to transform and
  then serialize to xls that works. It displays the output in excel.

 --Tim Larson

 -
 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]



Re: Need help on generating excel

2004-03-08 Thread Anna Bikkina
Can someone please answer my question.

Thanks in advance,
Anna.


On Friday 05 March 2004 04:47 pm, Anna Bikkina wrote:
 Hi,

 I have a application that has to generate html and excel with the same data.
 For now  I am trying to have 2 buttons one which would perform the query
 and display it in html

map:generate src=security.xsp type=serverpages/
 map:transform src=context:/historyserver/styles/search.xsl/
 map:serialize/

 where search.xsl is written to convert data to html tables.

 I have another button which converts the same data to excel . It performs
 query to the database and is expected to display data in excel. I am using
 the org.apache.cocoon.serialization.HSSFSerializer to perform this.

map:generate src=security.xsp type=serverpages label=raw/
 map:transform src=context:/historyserver/styles/page2xls.xsl/
 map:serialize type=xls/


 The first one works but the second one does not create a excel file. It 
creates an ill formatted html.
 When I view the xml that is  generated using views(with label raw) and copy
 the content to a xml file and use that as input to transform and then
 serialize to xls that works. It displays the output in excel.

  I am not understanding where it is going wrong.

 Can someone please tell me where I am going wrong. I have been trying to
 work on my sitemap and xsl files for over 2 days now but could not find the
 solution.

 Thanks,
 Anna.


 -
 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]



xsl to convert xml to excel

2004-03-05 Thread Anna Bikkina
Can someone please answer my question below I am stuck.


On Thursday 04 March 2004 03:41 pm, Anna Bikkina wrote:
 Hi,

 I have a xml file that has to converted to excel. I am trying to use a xsl
 s stylesheet and cocoon to do this job for me.

 Below is my xml. I am able to display the column's correctly in excel but
 when it comes to data . I am not able to have Time data in column1,
 Action data in column. I am not able to increment the column value from 0
 to 5. The problem is the number of columns I will have is not known prior .
 So I have to use the count() function to get this done. The way it is
 printing row data right now is in column 5 it prints the value of user1
 thats it.  Please check the xsl below and let me know where I am making a
 mistake.


   xsl:template match=result
  xsl:for-each select=column
gmr:Cell Row=0 ValueType=60
 xsl:variable name=colnumberxsl:number level=any
 from=result count=column//xsl:variable
 xsl:attribute name=Col
xsl:value-of select=$colnumber/
 /xsl:attribute
  gmr:Content
   xsl:apply-templates select=. mode=value/
   /gmr:Content
/gmr:Cell
   /xsl:for-each

   xsl:for-each select=row
xsl:variable name=rownumberxsl:number level=any
 from=result count=row//xsl:variable
xsl:variable name=cnumberxsl:number level=any from=result
 count=column//xsl:variable
  xsl:for-each select=*

gmr:Cell ValueType=60
 xsl:attribute name=Row
xsl:value-of select=$rownumber/
 /xsl:attribute
 xsl:attribute name=Col
xsl:value-of select=$cnumber/  !-- 
 cnumber is not working
 properly. How can I get this working--
 /xsl:attribute
 gmr:Content
xsl:apply-templates select=. 
 mode=value/
 /gmr:Content
/gmr:Cell
 /xsl:for-each
   /xsl:for-each

   /xsl:template


 My XML FILE


 ?xml version=1.0?
 page
 titleHello/title
 content
 result
   columnTime/column
   columnAction/column
   columnPrice/column
   columnUser/column
   columnUser1/br/column
   row
Time1/Time
Action12/Action
Price13/Price
Name12000/Name
Name112/Name1
   /row

 /result
  /content
 /page



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



Re: Report generation with cocoon

2004-03-05 Thread Anna Bikkina
Other than xreporter is there a way I can do this. I do not want to introduce 
xreporter because I have only one report and I dont want to add complexity to 
my existing application.

I have a xsp file that generates output which has to be converted to 
html(thats working) . I need the same resultset obtained in the xsp file to 
generate a excel if the user requests. Is there a way I can avoid quering the 
database again? If no, is there a way I can use the html ouput(built with the 
result data from database) as input to my excel generation.

Please reply..


Thanks,
Anna.


On Thursday 04 March 2004 03:00 pm, Tim Larson wrote:
 On Thu, Mar 04, 2004 at 01:37:43PM -0500, Anna Bikkina wrote:
  Hi,
 
  This must be a well known scenario.
 
  I have some data obtained from database which has to be displayed in a
  html. I used esql to get data. In the html page(with data as tables) I
  have to place a hyperlink which when linked should generate a excel file
  using the same data.
 
  Is there a way I can re use the resultset without quering the database
  again? Or can I use this html page as input to my excel generation?
 
  Can someone suggest how I can do this.

 Have you taken a look at xReporter?
   http://xreporter.cocoondev.org/

 If you do not want to use it, you could extract the code its Cocoon
 presentation layer uses to do the excel output format generation.

 However, it is a very nice tool so you might consider using it directly.

 --Tim Larson

 -
 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]



Re: xsl to convert xml to excel

2004-03-05 Thread Anna Bikkina

Nevermind,I got most of it working except that column0 is left blank and the 
whole data is printed from column1. Not sure where I am making a mistake.

Can someone help.

here is my latest xsl

  xsl:template match=result
 xsl:for-each select=column
 
 gmr:Cell Row=0 ValueType=60
  xsl:variable name=colnumberxsl:number level=single 
from=column count=column//xsl:variable
  xsl:attribute name=Col
 xsl:value-of select=$colnumber/
  /xsl:attribute
   gmr:Content
xsl:apply-templates select=. mode=value/
/gmr:Content
 /gmr:Cell
  /xsl:for-each
xsl:for-each select=row
  xsl:apply-templates select=.
xsl:with-param name=rownumber select=position()/
  /xsl:apply-templates
/xsl:for-each
  /xsl:template

  xsl:template match=row
xsl:param name=rownumber select=1/
xsl:for-each select=*
  xsl:apply-templates select=.
xsl:with-param name=rownumber select=$rownumber/
xsl:with-param name=colnumber select=position()/
  /xsl:apply-templates
/xsl:for-each
  /xsl:template

xsl:template match=*
   !-- avoids Result Tree Fragments --
   xsl:param name=rownumber select=0/
   xsl:param name=colnumber select=0/
   gmr:Cell ValueType=60 Col={$colnumber} Row={$rownumber}
 xsl:value-of select=./
   /gmr:Cell
/xsl:template


Thanks in advance,
Anna.


On Friday 05 March 2004 11:31 am, Anna Bikkina wrote:
 Can someone please answer my question below I am stuck.

 On Thursday 04 March 2004 03:41 pm, Anna Bikkina wrote:
  Hi,
 
  I have a xml file that has to converted to excel. I am trying to use a
  xsl s stylesheet and cocoon to do this job for me.
 
  Below is my xml. I am able to display the column's correctly in excel but
  when it comes to data . I am not able to have Time data in column1,
  Action data in column. I am not able to increment the column value from
  0 to 5. The problem is the number of columns I will have is not known
  prior . So I have to use the count() function to get this done. The way
  it is printing row data right now is in column 5 it prints the value of
  user1 thats it.  Please check the xsl below and let me know where I am
  making a mistake.
 
 
xsl:template match=result
   xsl:for-each select=column
   gmr:Cell Row=0 ValueType=60
xsl:variable name=colnumberxsl:number level=any
  from=result count=column//xsl:variable
xsl:attribute name=Col
   xsl:value-of select=$colnumber/
/xsl:attribute
 gmr:Content
  xsl:apply-templates select=. mode=value/
  /gmr:Content
   /gmr:Cell
/xsl:for-each
 
xsl:for-each select=row
   xsl:variable name=rownumberxsl:number level=any
  from=result count=row//xsl:variable
   xsl:variable name=cnumberxsl:number level=any
  from=result count=column//xsl:variable
   xsl:for-each select=*
 
   gmr:Cell ValueType=60
xsl:attribute name=Row
   xsl:value-of select=$rownumber/
/xsl:attribute
xsl:attribute name=Col
   xsl:value-of select=$cnumber/  !-- 
  cnumber is not working
  properly. How can I get this working--
/xsl:attribute
gmr:Content
   xsl:apply-templates select=. 
  mode=value/
/gmr:Content
   /gmr:Cell
/xsl:for-each
/xsl:for-each
 
/xsl:template
 
 
  My XML FILE
 
 
  ?xml version=1.0?
  page
  titleHello/title
  content
  result
  columnTime/column
  columnAction/column
  columnPrice/column
  columnUser/column
  columnUser1/br/column
  row
   Time1/Time
   Action12/Action
   Price13/Price
   Name12000/Name
   Name112/Name1
  /row
 
  /result
   /content
  /page

Report generation with cocoon

2004-03-04 Thread Anna Bikkina
Hi,

This must be a well known scenario.

I have some data obtained from database which has to be displayed in a html. I 
used esql to get data. In the html page(with data as tables) I have to place 
a hyperlink which when linked should generate a excel file using the same 
data.

Is there a way I can re use the resultset without quering the database again? 
Or can I use this html page as input to my excel generation?

Can someone suggest how I can do this.

Thanks,
Anna.


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



Re: Database pool-controller

2004-03-03 Thread Anna Bikkina
Can someone please answer my question below.

Thanks,
Anna.


On Tuesday 02 March 2004 04:58 pm, Anna Bikkina wrote:
 Hi,

 I configured a database pool in cocoon and used the pool controller tag to
 set max and min connections in cocoon.xconf.

 When the max number of connections are used up what does cocoon do. Does it
 throw an exception to the n+1(n being max connections) or does it wait for
 one of the connections to complete their job.


 Thanks,
 Anna.


 -
 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]



Re: Database pool-controller

2004-03-03 Thread Anna Bikkina
Do you know if there is a way I can configure the wait time for the 
connections?
Like I want the application to wait for a certain time for a connection . If 
connection is not available I want to display a message to the user to try 
again or something like that. 


Thanks,
Anna.



On Wednesday 03 March 2004 03:30 pm, Askild Aaberg Olsen wrote:
 rom SQLTransformer.java, it seems like it will wait 5 seconds, try again,
 and wait again 5 times before it throws an exception. I guess the same
 strategy is used in all components accessing databases.


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



Database pool-controller

2004-03-02 Thread Anna Bikkina
Hi,

I configured a database pool in cocoon and used the pool controller tag to set 
max and min connections in cocoon.xconf.

When the max number of connections are used up what does cocoon do. Does it 
throw an exception to the n+1(n being max connections) or does it wait for 
one of the connections to complete their job.


Thanks,
Anna.


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



Re: Coplets in cocoon

2004-03-01 Thread Anna Bikkina

Thank you for the reply. 

I gave different id's for my coplet but still the same problem

This is in my coplet-instance-data. 

   coplet-instance-data id=security-1 name=standard
  coplet-datasecurity/coplet-data
   /coplet-instance-data
   coplet-instance-data id=marketmaker-1 name=standard
  coplet-datamarketmaker/coplet-data
   /coplet-instance-data


This is my coplet data code

coplet-data id=security name=standard
  titleSecurity Quote History/title
  coplet-base-dataURICoplet/coplet-base-data
  attribute
nameuri/name
value xsi:type=java:java.lang.String xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instancecocoon:/coplets/search/security.xsp/
value
  /attribute
   /coplet-data  
   coplet-data id=marketmaker name=standard
  titleMarket Maker Quotes List/title
  coplet-base-dataURICoplet/coplet-base-data
  attribute
nameuri/name
value xsi:type=java:java.lang.String xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instancecocoon:/coplets/search/marketmaker.xsp/
value
  /attribute
   /coplet-data

Am I making any mistake. Please let me know.

Thanks,
Anna


On Monday 01 March 2004 04:13 am, [EMAIL PROTECTED] wrote:
 Hi Anna,

 the name of the fields inside the form can be the same. You can even use
 the same coplet inside one page. What needs to be different is the id of
 the coplet-instance-data.(Configure it in
 profiles/copletinstancedate/portal.xml and use it in
 profiles/layout/portal.xml)

 Nicole


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



Re: mysql - No suitable driver

2004-03-01 Thread Anna Bikkina

In cocoon.xconf did you add driverorg.mmit... /driver tag in your database 
connection tags. 


Also it requires a driver that supports jdbc type 3. Check it out.


Anna.

On Monday 01 March 2004 11:24 am, Schult, Pascal wrote:
 ad about 5 tutorials to get the MySQL Connector/J installed, but no result.
 Could anybody give me a hint?


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



Re: Coplets in cocoon

2004-03-01 Thread Anna Bikkina
Both my forms have different actions. 

Security.xsp
   form href=cocoon:/coplets/search/securityresult.xsp 
method=post
input type=hidden name=visited value=true/
!-- also store username or session id here--
input type=hidden name=name


MarketMaker.xsp


   form href=cocoon:/coplets/search/marketmakerresult.xsp 
method=post
input type=hidden name=visited value=true/
!-- also store username or session id here--
input type=hidden name=name
xsp:attribute name=valuexsp-ses


Here is my sitemap

map:match pattern=security.xsp  
 map:generate src=securityresult.xsp type=serverpages/
map:transform src=context:/historyserver/styles/search.xsl/  
   map:serialize/
   /map:match


map:match pattern=markermaker.xsp   
 map:generate src=marketmakerresult.xsp type=serverpages/
 
map:transform src=context:/historyserver/styles/search.xsl/  
   map:serialize/
   /map:match


I am not using the call function like you mentioned in the example. I guess 
thats ok. 
coplet-data

 coplet-data id=security name=standard
  titleSecurity Quote History/title
  coplet-base-dataURICoplet/coplet-base-data
  attribute
nameuri/name
value xsi:type=java:java.lang.String xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instancecocoon:/coplets/search/security.xsp/
value
  /attribute
   /coplet-data  
   coplet-data id=marketmaker name=standard
  titleMarket Maker Quotes List/title
  coplet-base-dataURICoplet/coplet-base-data
  attribute
nameuri/name
value xsi:type=java:java.lang.String xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instancecocoon:/coplets/search/marketmaker.xsp/
value
  /attribute
   /coplet-data
   

coplet instance data

   coplet-instance-data id=security-1 name=standard
  coplet-datasecurity/coplet-data
   /coplet-instance-data
   coplet-instance-data id=marketmaker-2 name=standard
  coplet-datamarketmaker/coplet-data
   /coplet-instance-data

Can you please help me find the problem.

Thanks,
Anna.





On Monday 01 March 2004 12:46 pm, [EMAIL PROTECTED] wrote:
 cop


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



Coplets in cocoon

2004-02-27 Thread Anna Bikkina
Hi,

I am trying to create a portal app using cocoon.

I have 2 coplets in my page which contains text fields and submit buttons. 
When I submit one coplet both of them are being executed. Is it normal? Is 
there a way we can avoid this. I want the submitted coplet only to be 
refreshed with the output.

Also some of the names of my text fields are same in both the coplets.(like 
startdate and enddate).When I fill in one coplet the other one is also being 
filled with these values.How can I avoid this.

Any help is greatly appreciated.

Thanks,
Anna.


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



Re: ERROR:No Suitable driver

2004-02-26 Thread Anna Bikkina
I have this in my web.xml

init-param
param-nameload-class/param-name
param-valuecom.informix.jdbc.IfxDriver/param-value
/init-param

I am using informix type 4 driver(driver version 2.21JC5). The same is working 
with esql code but not with excalibur code. Not sure where I am making a 
mistake.

Thanks,
Anna.

On Thursday 26 February 2004 06:29 am, Joerg Heinicke wrote:
 I can not see any reference to a Informix JDBC driver in your code,
 Cocoon probably neither. Have you added it to the web.xml init-param
 'load-class' as the databases block does it for different database
 drivers or the hsqldb block for hsqldb driver?

 http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/webapp/WEB-INF/web.xml?ann
otate=1.12#134
 http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/hsqldb/conf/hsql.dr
iver.xweb?rev=1.3view=markup

 If you have a look into the final web.xml after the build you should
 find those strings in it if you have the blocks included.

 Joerg

 On 25.02.2004 21:25, Anna Bikkina wrote:
  Hi,
 
  I am trying to create datasources in cocoon. When I use it in esql it
  works but it does not work when I used excalibur classes(I wrote my own
  action classes). It gives the following error
 
  java.sql.SQLException: No suitable driver
 
  In the core.log I found this error
  ResourceLimitingJdbcDataSource: Could not return Connection
 
 
  here is how I am getting it.
  DataSourceComponent dataSource = getDataSource(hserver);
 
  Here is my data source definition
  jdbc logger=core.datasources.hserver name=hserver
pool-controller min=3 max=10 /
auto-commitfalse/auto-commit
dburljdbc:informix-sqli://
  reqs:1540:informixserver=eqs_rep;Database=eqs_prod/dburl
userinformix/user
passwordeqsdb/password
  /jdbc
 
 
 
  web.xml
  resource-ref
  res-ref-namehserver/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
 
 
  Can anyone please me solve this problem.
 
  Thanks,
  Anna.

 -
 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]



ERROR:No Suitable driver

2004-02-25 Thread Anna Bikkina
Hi,

I am trying to create datasources in cocoon. When I use it in esql it works 
but it does not work when I used excalibur classes(I wrote my own action 
classes). It gives the following error

java.sql.SQLException: No suitable driver

In the core.log I found this error 
ResourceLimitingJdbcDataSource: Could not return Connection


here is how I am getting it.
DataSourceComponent dataSource = getDataSource(hserver);

Here is my data source definition
jdbc logger=core.datasources.hserver name=hserver
  pool-controller min=3 max=10 /
  auto-commitfalse/auto-commit
  dburljdbc:informix-sqli://
reqs:1540:informixserver=eqs_rep;Database=eqs_prod/dburl
  userinformix/user
  passwordeqsdb/password
/jdbc



web.xml
resource-ref
res-ref-namehserver/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref


Can anyone please me solve this problem.

Thanks,
Anna.


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



Request parameters when method is post

2004-02-25 Thread Anna Bikkina
Hi,

I have a xsp form which passed parameters in the post. I cannot access these 
parameters when the method is post . When the method is get I can access the 
parameters.

Did anyone find the same problem. Is there a way I can come out of it.

Thanks,
Anna.


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



Re: Request parameters when method is post

2004-02-25 Thread Anna Bikkina

I am using the same method. Dont know why its not working

Thanks,
Anna.

On Wednesday 25 February 2004 05:07 pm, Christopher Painter-Wakefield wrote:
 What method are you using to get your request parameters?  It works just
 fine for me, using request.getParameter(param-name) in XSP.

 -Christopher

 |-+
 |
 | |   Anna Bikkina |
 | |   [EMAIL PROTECTED]|
 | |   com |
 | |
 | |   02/25/2004 04:35 |
 | |   PM   |
 | |   Please respond to|
 | |   users|
 |
 |-+
 |
   
   --|
   
   |   To:   [EMAIL PROTECTED]
   |  | cc: 
   |   |
   | Subject:  Request parameters when method is post   
   ||
   |
   
   --|

 Hi,

 I have a xsp form which passed parameters in the post. I cannot access
 these
 parameters when the method is post . When the method is get I can access
 the
 parameters.

 Did anyone find the same problem. Is there a way I can come out of it.

 Thanks,
 Anna.




 -
 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]



Re: AW: Actions and parameters in sitemap

2004-02-25 Thread Anna Bikkina
Thank you for the replies. I am using request now to send error messages. That 
works.

Thanks once again
Anna.

On Wednesday 25 February 2004 02:38 am, Marco Rolappe wrote:
 hi anna,

 the map:act containers form kind of scopes. as illustrated by neil, you
 have to reference variables from outer 'scopes' via a corresponding 'path'
 expression. that whole issue is a bit... dunno. but that's one reason not
 to use actions.

 contrived example:

 ...
   map:act type=act1 !-- returns a parameter 'foo' --
   map:act type=act2 !-- returns a parameter 'bar' --
   map:parameter name=foo value={foo}/

   map:redirect-to uri={../foo}{bar}/
   /map:act
   /map:act
 ...

 an important one to note here is act2's parameter 'foo'; since it's a
 parameter to act2 it's not in act2's 'scope', even though the placement of
 the map:parameter might suggest so. thus the reference is {foo} and not
 {../foo}; just think of it as a call from within act1's scope: act2(foo:
 {foo})
 this is in contrast to the map:redirect-to, which is inside act2's scope.
 so you have to reference the parent scope for 'foo' and the current scope
 for 'bar'.

 regarding error flagging there are several possibilities; if you stay in
 the same pipeline (no redirects, etc.) you can use request attributes. when
 redirecting or similar you could pass an error code or message as request
 parameter(s), e.g. map:redirect-to
 uri=cocoon:/handle-my-err?fail=act1/. the last resort would be setting a
 session attribute.

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Auftrag
  von Anna Bikkina
  Gesendet: Dienstag, 24. Februar 2004 23:38
  An: [EMAIL PROTECTED]
  Betreff: Re: Actions and parameters in sitemap
 
 
  Can someone please answer the below question.
 
  Also I have nested acts and when the 1st act sends parameters
  will they be
  replaced by the second acts parameters(key in the hashmap are
  different so I
  guess they cannot be replaced). But when I ampassing all these parameters
  (from act1 and act2) to the generator the latest act(act2) parameters are
  being sent the xsp the others (act1 return parameters are not
  being sent).
  Can you someone tell me if I am doing anything wrong.
 
 
  map:act type=startdate src=security.xsp
 
  map:act type=get-security
 
  map:generate type=serverpages
  src=securityresult.xsp
  map:parameter
  name=act2msg1 value={sec_shortname}/
  map:parameter
  name=act2msg2 value={sec_piggyback}/
  map:parameter
  name=act1msg1 value={startdate}/
  map:parameter
  name=act1msg2 value={enddate}/
  /map:generate
  map:transform
  src=context:/historyserver/styles/searchresult.xsl/
  map:serialize/
  /map:act
  /map:act
 
  I can retrieve act2 messages f in the xsp but act1 messages are null. I
  checked the action is returning parameters.
 
  If act1 fails I want to display an error message which is
  different from the
  message to be displayed when act2 fails. Since both the failure
  are directed
  to the same file is there a way I can find out if act1 or act2 failed and
  depending on that print the error message.
 
 
  Thanks,
  Anna.
 
  On Monday 23 February 2004 01:01 pm, Anna Bikkina wrote:
   Hi,
  
   I am using multiple action classes to validate my date. I want
 
  to display
 
   error message depending on which action class has failed. I am
 
  trying to do
 
   something like this because that fails. Can someone suggest me
 
  how can I do
 
   this.
  
   I am adding a parameter ERROR after every act and trying to use
 
  it in the
 
   xsp and displaying it. I am not able to get it in the
   security.xsp.ERROR parameter is returning null. Can some suggest a
   working idea to solve my problem.
  
   map:match pattern=security.xsp
 map:act type=validator
 map:parameter name=descriptor
   value=/usr/local/jboss/tomcat/webapps/
   cocoon/historyserver/styles/descriptor.xml/
  
 map:act type=startdate src=security.xsp
 map:parameter ERROR  value=Invalid start date/
 map:act type=enddate src=security.xsp
 map:parameter ERROR
 
  value=Invalid end date/
 
 map:act type=validateothers
 
  src=security.xsp
 
 map:parameter ERROR
 
  value=Invalid other data/
 
 map:act type=get-security
  
 map:generate type=serverpages
 
  src=securityresult.xsp/
 
 map:transform src

Re: Actions and parameters in sitemap

2004-02-24 Thread Anna Bikkina
Can someone please answer the below question.

Also I have nested acts and when the 1st act sends parameters will they be 
replaced by the second acts parameters(key in the hashmap are different so I 
guess they cannot be replaced). But when I ampassing all these parameters 
(from act1 and act2) to the generator the latest act(act2) parameters are 
being sent the xsp the others (act1 return parameters are not being sent). 
Can you someone tell me if I am doing anything wrong.


map:act type=startdate src=security.xsp  
 
map:act type=get-security  
 
map:generate type=serverpages 
src=securityresult.xsp
map:parameter name=act2msg1 
value={sec_shortname}/
map:parameter name=act2msg2 
value={sec_piggyback}/
map:parameter name=act1msg1 
value={startdate}/
map:parameter name=act1msg2 
value={enddate}/
/map:generate 
map:transform 
src=context:/historyserver/styles/searchresult.xsl/ 
map:serialize/
/map:act  
/map:act

I can retrieve act2 messages f in the xsp but act1 messages are null. I 
checked the action is returning parameters.

If act1 fails I want to display an error message which is different from the 
message to be displayed when act2 fails. Since both the failure are directed 
to the same file is there a way I can find out if act1 or act2 failed and 
depending on that print the error message.


Thanks,
Anna.



On Monday 23 February 2004 01:01 pm, Anna Bikkina wrote:
 Hi,

 I am using multiple action classes to validate my date. I want to display
 error message depending on which action class has failed. I am trying to do
 something like this because that fails. Can someone suggest me how can I do
 this.

 I am adding a parameter ERROR after every act and trying to use it in the
 xsp and displaying it. I am not able to get it in the security.xsp.ERROR
 parameter is returning null. Can some suggest a working idea to solve my
 problem.

 map:match pattern=security.xsp
   map:act type=validator
   map:parameter name=descriptor
 value=/usr/local/jboss/tomcat/webapps/
 cocoon/historyserver/styles/descriptor.xml/

   map:act type=startdate src=security.xsp
   map:parameter ERROR  value=Invalid start date/
   map:act type=enddate src=security.xsp
   map:parameter ERROR  value=Invalid end date/
   map:act type=validateothers src=security.xsp
   map:parameter ERROR  value=Invalid other data/
   map:act type=get-security

   map:generate type=serverpages 
 src=securityresult.xsp/
   map:transform src=search.xsl/
map:serialize/
   /map:act
   /map:act
   /map:act
   /map:act


  map:generate src=security.xsp type=serverpages/


  map:transform src=search.xsl/

  map:serialize/
/map:match


 -
 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]



Actions and parameters in sitemap

2004-02-23 Thread Anna Bikkina
Hi,

I am using multiple action classes to validate my date. I want to display 
error message depending on which action class has failed. I am trying to do 
something like this because that fails. Can someone suggest me how can I do 
this.

I am adding a parameter ERROR after every act and trying to use it in the xsp 
and displaying it. I am not able to get it in the security.xsp.ERROR 
parameter is returning null. Can some suggest a working idea to solve my 
problem.

map:match pattern=security.xsp
map:act type=validator
map:parameter name=descriptor 
value=/usr/local/jboss/tomcat/webapps/
cocoon/historyserver/styles/descriptor.xml/

map:act type=startdate src=security.xsp
map:parameter ERROR  value=Invalid start date/
map:act type=enddate src=security.xsp
map:parameter ERROR  value=Invalid end date/
map:act type=validateothers src=security.xsp
map:parameter ERROR  value=Invalid other data/
map:act type=get-security  
 

map:generate type=serverpages 
src=securityresult.xsp/ 
map:transform src=search.xsl/  
 
 map:serialize/
/map:act
/map:act
/map:act
/map:act


 map:generate src=security.xsp type=serverpages/
  

 map:transform src=search.xsl/ 
 
 map:serialize/
   /map:match


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



Stored Procedure and esql

2004-02-23 Thread Anna Bikkina
Hi,

I am trying to run a stored procedure using esql in cocoon. I guess I am 
having a syntax error. 

Please let me know where I am going wrong. I am using the informix database.I 
checked the storedprocedure using dbaccess and that runs. 

 I get an error saying
 
Function doesn't have an output parameter or the out parameter isn't 
returned.

Should I mention ouput parameters somewhere? I tried to use the INTO clause in 
esql:call but it did not help.  

esql:connection
  esql:poolmyserver/esql:pool
  esql:execute-query
  esql:call  needs-query=true{call 
myproc(90489,'2004-02-13 
00:00:00','2004-02-13 23:59:59',1,1,1)}/esql:call
esql:call-results
  esql:use-results
esql:resultxsp:expr(ResultSet)esql:get-object 
column=1 
from-call=true//xsp:expr/esql:result
esql:results
  esql:row-results
esql:get-string column=1/
  /esql:row-results
/esql:results
  /esql:use-results
/esql:call-results
/esql:execute-query
/esql:connection



Thanks in advance
Anna.



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



Re: XSP Validation XSP-formval

2004-02-20 Thread Anna Bikkina
Thank you. I tried doing that and now I get the following error

org.apache.cocoon.ProcessingException: action logicsheet cannot be used in 
generators

I used action in my xsp file and my sitemap uses generate for the xsp. Is 
there a way I can get around this.

my site map 

 map:match pattern=security.xsp
map:act type=validator
map:parameter name=descriptor 
value=/usr/local/jboss/tomcat/webapps/
cocoon/server/styles/descriptor.xml/
map:parameter name=validate-set value=securityquote/
map:act type=xsp-action
map:generate type=serverpages src=securityresult.xsp/
map:transform src=search.xsl/ 
 map:transform src=context:/historyserver/styles/
dynamic-page2html.xsl
map:parameter name=servletPath 
value={request:servletPath}/
map:parameter name=sitemapURI value={request:sitemapURI}/
map:parameter name=contextPath 
value={request:contextPath}/
map:parameter name=file value={0}.xsp/
map:parameter name=remove value={0}/
 /map:transform
 map:serialize/
/map:act
/map:act
 map:generate src=security.xsp type=serverpages/
 map:transform src=search.xsl/ 
 map:transform src=context:/historyserver/styles/dynamic-page2html.xsl
map:parameter name=servletPath value={request:servletPath}/
map:parameter name=sitemapURI value={request:sitemapURI}/
map:parameter name=contextPath value={request:contextPath}/
map:parameter name=file value={0}.xsp/
map:parameter name=remove value={0}/
 /map:transform
 map:serialize/
   /map:match


 my xsp:logic tag below
xsp:logic
if(notnew) {
String error = action:get-result 
name=error/
if(error!=null) {
font color = red
error
/font
}
SimpleDataFormat sdf = new 
SimpleDataFormat(mm/dd/);
try {
System.out.println(entering into not 
new);
Date sd = new Date();
Date ed = new Date();
if(request.getParameter(startdate)!=null) 
   sd = 
sdf.parse(request.getParameter(startdate));
   if(sd==null || sd.after(new 
Date())) {
   action:set-result
  action:param 
name=errorStartDate not valid/action:param
  /action:set-result
   action:set-failure/
   }
}

action:set-success/
}
catch(Exception e) {
action:set-failure/
}
}
/xsp:logic


When I have my xsp logic code in the xsp its giving a differnt error.
java.lang.RuntimeException: java.lang.RuntimeException: Stylesheet directed 
termination: java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.RuntimeException: Stylesheet directed termination

Please help me solve this problem. I dont know what I am missing

Thanks,
Anna.

On Friday 20 February 2004 03:01 am, John L. Webber wrote:
 Anna,

 You're better off using a DateFormat object to parse the request
 parameter instead of the deprecated new Date(String). Then you can catch
 a ParseException and take action based on this. You can instantiate a
 SimpleDateFormat object using a pattern matching the input you expect.

 If the XSP is an action, you can use xsp-action:set-success and
 xsp-action:set-failure to communicate the result to the sitemap.

 John

 Anna Bikkina wrote:
 Hi,
 
 I have another question using XSP form validation. I used XSP-formval
  using the descriptor file and it worked.
  Now there are some other validations that I have to do and display errors
 other than what I can do with the descriptor file. Like I have to check
  the startdate and enddate entered by user and display error if startdate
  is after the enddate and things like

users@cocoon.apache.org

2004-02-20 Thread Anna Bikkina
Hi,

I am trying to use ServerPagesAction in cocoon. I have a wierd problem where I 
get an error saying 

org.apache.cocoon.ProcessingException: action logicsheet cannot be used in 
generators

My sitemap goes like this 
 map:match pattern=security.xsp
    map:act type=validator
    map:parameter name=descriptor value=/usr/local/jboss/
tomcat/webapps/
cocoon/server/styles/descriptor.xml/
    map:parameter name=validate-set value=securityquote/
    map:act type=xsp-action
         map:generate type=serverpages src=securityresult.xsp/
    map:transform src=search.xsl/     
  map:serialize/    
    /map:act
    /map:act
     map:generate src=security.xsp type=serverpages/
     map:transform src=search.xsl/     
     map:serialize/    
   /map:match


Can we not use actions with generators. I have the following code in my xsp 
file.

 map:action 
logger=sitemap.action.xsp-action 
name=xsp-action 
src=org.apache.cocoon.acting.ServerPagesAction/

and then I have a xsp:logic part of code which does success and failure stuff. 

Can someone please tell me what I am doing wrong here. 

Thanks,
Anna.


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



Map return type in action

2004-02-20 Thread Anna Bikkina
Hi,

I just a need a gory detail I am not able to find. When I write my own action 
file and its returns a map. How can I use the map in my xsp which gets 
executed when my action is succesful. 

Something like getParamter etc... can someone please write the syntax to get 
the Map details from a action.

Thanks,
Anna.


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



XSP Validation XSP-formval

2004-02-19 Thread Anna Bikkina
Hi,

I am using xsp-formval to validate data in my xsp forms. Somehow I am not able 
to validate the form . My XSP form has the following lines

xsp-formval:descriptor name=/usr/local/jboss/tomcat/webapps/cocoon/myserver/
styles/descriptor.xml constraint-set=securityquote
paragraph
xsp-formval:results/
/paragraph

and so on... 

I have my descriptor file in the same location. Here is my descriptor file.

?xml version=1.0 encoding=UTF-8?
root

   parameter name=security type=string min-len=2 max-len=15  
nullable=no/
   parameter name=startdate type=string nullable=no min-len=6 
max-len=10/
parameter name=enddate type=string nullable=no min-len=6 
max-len=10/

   constraint-set name=securityquote
   validate name=security/
   validate name=startdate/
   validate name=enddate/
/constraint-set

/root


For some reason no valdiation is being done. I am checking not null fields and 
even when I give all non null fields its not raising an error. Is there 
something that I am missing here. Please comment.

Thanks in advance,
Anna.


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



Re: XSP Validation XSP-formval

2004-02-19 Thread Anna Bikkina
Never mind that worked. I am now able to validate my form. The problem is with 
sitemap . The descriptor file could not be located. When I changed the path 
it worked.

One other question. To refill the values in the form when there is some 
problem in the input. I am using the tags
 input name=enddate type=text 
xsp:attribute name=value
xsp-request:get-parameter name=enddate 
default=/
/xsp:attribute
 /input

Everytime I click submit and the same page is reloaded due to some errors I 
see a couple of spaces added to the input text value at the beginning. The 
length of the text value is increasing. Did anyone see similar problem. Any 
help will be appreciated. How can I get rid of the spaces in front of my 
input text which are being created when I click on submit.

Thanks in advance,
Anna.



On Thursday 19 February 2004 02:50 pm, Anna Bikkina wrote:
 Hi,

 I am using xsp-formval to validate data in my xsp forms. Somehow I am not
 able to validate the form . My XSP form has the following lines

 xsp-formval:descriptor
 name=/usr/local/jboss/tomcat/webapps/cocoon/myserver/
 styles/descriptor.xml constraint-set=securityquote
   paragraph
   xsp-formval:results/
   /paragraph

 and so on...

 I have my descriptor file in the same location. Here is my descriptor file.

 ?xml version=1.0 encoding=UTF-8?
 root

parameter name=security type=string min-len=2 max-len=15
 nullable=no/
parameter name=startdate type=string nullable=no min-len=6
 max-len=10/
 parameter name=enddate type=string nullable=no min-len=6
 max-len=10/

constraint-set name=securityquote
validate name=security/
validate name=startdate/
validate name=enddate/
 /constraint-set

 /root


 For some reason no valdiation is being done. I am checking not null fields
 and even when I give all non null fields its not raising an error. Is there
 something that I am missing here. Please comment.

 Thanks in advance,
 Anna.


 -
 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]



Re: XSP Validation XSP-formval

2004-02-19 Thread Anna Bikkina

That worked like a dream. 
Thank you

Anna.

On Thursday 19 February 2004 03:35 pm, [EMAIL PROTECTED] wrote:
 Hi Anna,

 The spaces may be appearing because you have put spaces and newlines in
 the following:

  input name=enddate type=text 
  xsp:attribute name=value
   xsp-request:get-parameter name=enddate default=/
  /xsp:attribute
  /input

 To eliminate them, try reformatting and condensing what you have to:

  input name=enddate type=text 
xsp:attribute name=valuexsp-request:get-parameter name=enddate
 default=//xsp:attribute
  /input

 Not 100% sure it'll fix your problem, but I've often has spaces crop up
 when trying to adhere to a nice format, and they usually disappear when
 I condense the XML.

 HTH!

 Thanks!
 David Day




 Anna Bikkina [EMAIL PROTECTED]




 02/19/2004 03:26 PM
 Please respond to users


 T
 To: [EMAIL PROTECTED]
 cc:

 bcc:
 Subject:Re: XSP Validation XSP-formval


 Never mind that worked. I am now able to validate my form. The problem is
 with
 sitemap . The descriptor file could not be located. When I changed the
 path
 it worked.

 One other question. To refill the values in the form when there is some
 problem in the input. I am using the tags
  input name=enddate type=text 
  xsp:attribute name=value
   xsp-request:get-parameter name=enddate default=/
  /xsp:attribute
  /input

 Everytime I click submit and the same page is reloaded due to some errors
 I
 see a couple of spaces added to the input text value at the beginning. The

 length of the text value is increasing. Did anyone see similar problem.
 Any
 help will be appreciated. How can I get rid of the spaces in front of my
 input text which are being created when I click on submit.

 Thanks in advance,
 Anna.

 On Thursday 19 February 2004 02:50 pm, Anna Bikkina wrote:
  Hi,
 
  I am using xsp-formval to validate data in my xsp forms. Somehow I am

 not

  able to validate the form . My XSP form has the following lines
 
  xsp-formval:descriptor
  name=/usr/local/jboss/tomcat/webapps/cocoon/myserver/
  styles/descriptor.xml constraint-set=securityquote
 paragraph
  xsp-formval:results/
 /paragraph
 
  and so on...
 
  I have my descriptor file in the same location. Here is my descriptor

 file.

  ?xml version=1.0 encoding=UTF-8?
  root
 
 parameter name=security type=string min-len=2 max-len=15
  nullable=no/
 parameter name=startdate type=string nullable=no min-len=6
  max-len=10/
  parameter name=enddate type=string nullable=no min-len=6
  max-len=10/
 
 constraint-set name=securityquote
 validate name=security/
 validate name=startdate/
 validate name=enddate/
  /constraint-set
 
  /root
 
 
  For some reason no valdiation is being done. I am checking not null

 fields

  and even when I give all non null fields its not raising an error. Is

 there

  something that I am missing here. Please comment.
 
  Thanks in advance,
  Anna.
 
 
  -
  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]



Re: XSP Validation XSP-formval

2004-02-19 Thread Anna Bikkina
Hi,

I have another question using XSP form validation. I used XSP-formval using 
the descriptor file and it worked.
 Now there are some other validations that I have to do and display errors 
other than what I can do with the descriptor file. Like I have to check the 
startdate and enddate entered by user and display error if startdate is after 
the enddate and things like that.  I created a xsp logic tag and did the 
necessary validations but I am getting error while running the xsp file

error is :
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Exception 
in ServerPagesGenerator.generate(): java.lang.IllegalArgumentException


the xsp:logic paragraph that I add looks like this 
xsp:logic
if(notnew) {
System.out.println(entering into not new);
Date sd = new 
Date(request.getParameter(startdate));
Date ed = new 
Date(request.getParameter(enddate));
if(sd==null)
sd= new Date();
if(ed==null)
ed=new Date();
if(sd.after(new Date())){
System.out.println(Start date 
is greater than today);
font color=red
xsp:text* Startdate invalid. 
Date greater than today/
xsp:text   
/font
bad=true;
} 
else if(ed.after(new Date())){
font color=red
xsp:text* Enddate invalid. 
Date greater than today/xsp:text 
/font
bad=true;

}  
 
}
/xsp:logic

Is there a way I can check errors in the input other than the formvalidation 
method. I understand that I can write multiple action classes for each of the 
error I can represent but from there how can I come back to the same file 
with the error messages.

Thanks in advance,
Anna.




On Thursday 19 February 2004 04:18 pm, Anna Bikkina wrote:
 That worked like a dream.
 Thank you

 Anna.

 On Thursday 19 February 2004 03:35 pm, [EMAIL PROTECTED] wrote:
  Hi Anna,
 
  The spaces may be appearing because you have put spaces and newlines in
  the following:
 
   input name=enddate type=text 
   xsp:attribute name=value
xsp-request:get-parameter name=enddate default=/
   /xsp:attribute
   /input
 
  To eliminate them, try reformatting and condensing what you have to:
 
   input name=enddate type=text 
 xsp:attribute name=valuexsp-request:get-parameter name=enddate
  default=//xsp:attribute
   /input
 
  Not 100% sure it'll fix your problem, but I've often has spaces crop up
  when trying to adhere to a nice format, and they usually disappear when
  I condense the XML.
 
  HTH!
 
  Thanks!
  David Day
 
 
 
 
  Anna Bikkina [EMAIL PROTECTED]
 
 
 
 
  02/19/2004 03:26 PM
  Please respond to users
 
 
  T
  To: [EMAIL PROTECTED]
  cc:
 
  bcc:
  Subject:Re: XSP Validation XSP-formval
 
 
  Never mind that worked. I am now able to validate my form. The problem is
  with
  sitemap . The descriptor file could not be located. When I changed the
  path
  it worked.
 
  One other question. To refill the values in the form when there is some
  problem in the input. I am using the tags
   input name=enddate type=text 
   xsp:attribute name=value
xsp-request:get-parameter name=enddate default=/
   /xsp:attribute
   /input
 
  Everytime I click submit and the same page is reloaded due to some errors
  I
  see a couple of spaces added to the input text value at the beginning.
  The
 
  length of the text value is increasing. Did anyone see similar problem.
  Any
  help will be appreciated. How can I get rid of the spaces in front of my
  input text which are being created when I click on submit.
 
  Thanks in advance,
  Anna.
 
  On Thursday 19 February 2004 02:50 pm, Anna Bikkina wrote:
   Hi,
  
   I am using xsp-formval to validate data in my xsp forms. Somehow I am
 
  not
 
   able to validate the form . My XSP form has the following lines
  
   xsp

XSP form validation

2004-02-18 Thread Anna Bikkina
Hi,

I have a xsp page which contains form elements(text boxes). I have to validate 
those text boxes. I used the FormValidateAction but something is not working. 
When I click submit it is not validating it is instead going to the failure 
part of the match pattern in the sitemap. Can someone tell me how to do 
validation in xsp. I am totally confused. I looked at other examples but 
could not solve my problem.

my xsp file looks like this

  form href=securityresult
input type=text value= name=s1/
input type=text value= name=s2/
input type=submit value=submit/
/form
...
...

when I submit the page I excepected it to match securityresult but then it 
matches the same page(security.xsp) instead. Here is my sitemap pipeline 
information. Descriptor.xml has the validation set and other details defined.

map:match pattern=security.xsp
   map:act type=formval
map:parameter name=descriptor value=cocoon://server/styles/
descriptor.xml/
map:parameter name=constraint-set value=securityquote/
!--+
| this is the success case
|
+--
 map:generate src=securityresult.xsp type=serverpages/
 map:transform src=search.xsl/ 
 map:transform src=context:/server/styles/dynamic-page2html.xsl
map:parameter name=servletPath 
value={request:servletPath}/
map:parameter name=sitemapURI value={request:sitemapURI}/
map:parameter name=contextPath 
value={request:contextPath}/
map:parameter name=file value={0}.xsp/
map:parameter name=remove value={0}/
 /map:transform
 map:serialize/
!-- because of the resource above the success pipeline ends 
here. --
   /map:act
   
 !--+
 | this branch contains the failed validation.
 | Since the success pipeline ends with a resource, the following is 
only 
 | applied if validation has not been successful.
 |
 +--
 map:generate src=security.xsp type=serverpages/
 map:transform src=search.xsl/ 
 map:transform src=context:/historyserver/styles/dynamic-page2html.xsl
map:parameter name=servletPath value={request:servletPath}/
map:parameter name=sitemapURI value={request:sitemapURI}/
map:parameter name=contextPath value={request:contextPath}/
map:parameter name=file value={0}.xsp/
map:parameter name=remove value={0}/
 /map:transform
 map:serialize/
   /map:match


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



Validation of date

2004-02-18 Thread Anna Bikkina
Hi,

I have to validate data in a form. Is there an already existing way to 
validate data using cocoon's form validator. Or if I have to write a 
validator that extends FormValdiator of cocoon how do I write methods that 
reflect the validate rules in descriptor.xml.

Can someone please throw some light on writing our own validator classes.

Thanks,
Anna.


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



Re: Validation of date

2004-02-18 Thread Anna Bikkina
err: I meant validation of DATE

On Wednesday 18 February 2004 05:15 pm, Anna Bikkina wrote:
 ing cocoon's form val


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



Re: Cocoon and soap

2004-02-11 Thread Anna Bikkina
Hi,

Thanks for the reply. I have one problem using the xml file to transform. 
Below is my code where I call the soapserver that returns a xml file . Here 
soap-result should contain my xml file.

When I tried to get the new xsl in the stylesheets I am getting an error
The element type META must be terminated by the matching end-tag /META.
and I do not have META any where. Can anyone please tell me what I am doing 
wrong here.

 xscript:variable name=soap-result
  soap:call url=http://localhost:8080/axis/services/HelloAxis;
ns1:sayHello xmlns:ns1=urn:HelloAxis
  soap:enc/
  symbol xsi:type=xsd:string xmlns:xsi=http:// 
 
www.w3.org/1999/XMLSchema-instance xmlns:xsd=/
ns1:sayHello
  /soap:call
/xscript:variable

xscript:variable name=stylesheet
  href=stylesheets/soap-hello.xsl/

xscript:transform name=soap-result stylesheet=stylesheet/


Thanks,
Anna.


On Tuesday 10 February 2004 05:04 pm, Alten, Jelle Paul wrote:
 Hi Anna,

 Well, what I'd try: you can make a pipeline that calls the soap server,
 transform the result into html and serialize it...

 for example:
 make a pipeline like this:

  map:generate
 src=http://www.soapserver.com/soaprequest?reqarg=argvalue/
  map:transform src=transforms/soap2html.xsl
  map:serialize/


 where the generate src should point to your soapserver with the right
 request
 and the soap2html.xsl in the transforms directory would be somethink like
 the following transformation (I just hacked it up for you, hope it shows
 what you can do.

 greetings,

 Jelle

 -- transforms/soap2html.xsl  --


 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format;

 xsl:template match=/
   html
   head
   titleSOAP Message/title
   style type=text/css
   code {color: #808080;}
   /style
   /head
   body
   table border=1
   xsl:for-each select=*
   tr
   thxsl:value-of
 select=name()//th
   tdxsl:apply-templates
 select=. mode=value//td
   /tr
   /xsl:for-each
   /table
   /body
   /html
 /xsl:template

 xsl:template match=*[not(*) and count(text())=1]
   tr
   thxsl:value-of select=name()//th
   tdxsl:value-of select=.//td
   /tr
 /xsl:template

 xsl:template match=*
   tr
   td colspan=2
   xsl:for-each select=@*
   xsl:if test=position()1br//xsl:if
   codexsl:value-of
 select=name()/=xsl:value-of select=.//code
   /xsl:for-each
   /td
   /tr
   xsl:for-each select=*
   tr
   thxsl:value-of select=name()//th
   tdxsl:apply-templates select=.
 mode=value//td
   /tr
   /xsl:for-each

 /xsl:template

 xsl:template match=*[*] mode=value
   table border=1xsl:apply-templates select=.//table
 /xsl:template


 /xsl:stylesheet




 -- end of file --





 -Oorspronkelijk bericht-
 Van: Anna Bikkina [mailto:[EMAIL PROTECTED]
 Verzonden: dinsdag 10 februari 2004 21:47
 Aan: [EMAIL PROTECTED]
 Onderwerp: Cocoon and soap


 Hi all,

 I am trying to write a cocoon page which talks to a soap server . The soap
 envelope  has an xml file. I have to display this xml file as html using
 cocoon. Can anyone tell me how I can do that in cocoon. Below is my soap
 envelope.

 -soapenv:Envelope
   +soapenv:Body
   +ns1:sayHelloResponse
 soapenv:encodingStyle=http://schemas.xmlsoap.org/
 soap/encoding/
   ns1:sayHelloReturn href=#id0/
   /ns1:sayHelloResponse
   +multiRef id=id0 soapenc:root=0
 soapenv:encodingStyle=http://

 schemas.xmlsoap.org/soap/encoding/ xsi:type=ns2:Document
   -slideshow title=SampleSlide Show
   -slide
   titleOverview/title
   itemn1/item
   /slide
   -slide
   titleIntroduction/title
   itemcheck this out/item
   /slide
   /slideshow
   /multiRef
   /soapenv:Body
 /soapenv:Envelope

 Thanks in advance,
 Anna.


 -
 To unsubscribe, e

Cocoon and soap

2004-02-10 Thread Anna Bikkina
Hi all,

I am trying to write a cocoon page which talks to a soap server . The soap 
envelope  has an xml file. I have to display this xml file as html using 
cocoon. Can anyone tell me how I can do that in cocoon. Below is my soap 
envelope.

-soapenv:Envelope 
+soapenv:Body 
+ns1:sayHelloResponse 
soapenv:encodingStyle=http://schemas.xmlsoap.org/
soap/encoding/ 
ns1:sayHelloReturn href=#id0/ 
/ns1:sayHelloResponse 
+multiRef id=id0 soapenc:root=0 soapenv:encodingStyle=http://
 
schemas.xmlsoap.org/soap/encoding/ xsi:type=ns2:Document 
-slideshow title=SampleSlide Show 
-slide 
titleOverview/title 
itemn1/item 
/slide 
-slide 
titleIntroduction/title 
itemcheck this out/item 
/slide 
/slideshow 
/multiRef 
/soapenv:Body 
/soapenv:Envelope 

Thanks in advance,
Anna.


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



Re: Using existing jsp file

2004-02-03 Thread Anna Bikkina
Thanks for the explanation. I understand it better now, but I still have a 
problem accessing my jsp page. I am using map:read in map:matches(*.jsp) 
instead of generate

When I use read or generate I am getting the below error . The error is not 
descriptive. I got the latest code from cocoon and am using it. Any help 
would be appreciated.

org.apache.cocoon.ProcessingException: ServletException while executing 
JSPEngine: org.apache.jasper.JasperException

Thanks,
Anna.

On Monday 02 February 2004 07:07 pm, Joerg Heinicke wrote:
 On 03.02.2004 00:52, Anna Bikkina wrote:
  This must be a basic question. I have a JSP generator and JSP reader in
  my sitemap. I understand that if I use the JSPReader it can read non xml
  jsp pages. How can I make cocoon use jspreader instead of the
  generator.Correct me if my understanding is wrong.

 Just have a look into the sitemap you are using (I guess it's the
 default sitemap from JSP block).

map:match pattern=*.htm
  map:read type=jsp src={1}.jsp mime-type=text/html /
/map:match

 The above pipeline uses the JSPReader and gives the result as text/html
 to the client.

!-- Use this to debug your JSPs --
map:match pattern=*.xml
  map:generate type=jsp src={1}.jsp/
  map:serialize type=xml/
/map:match

 The above pipeline uses the JSPGenerator and serializes the SAX events
 to XML.

map:match pattern=*.jsp
  map:generate type=jsp src={1}.jsp/
  map:serialize type=html/
/map:match

 The above pipeline uses the JSPGenerator and serializes the SAX events
 to HTML.

 map:read = Reader, map:generate = Generator.

 Joerg

 -
 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]



cocoon authentication and database access

2004-02-02 Thread Anna Bikkina
Hi,

I am new to cocoon and trying to build a portal application. I already have an 
existing application written in JSP and ported in tomcat. How can I change it 
so that it works in cocoon. Are there any examples I can look into to get 
this task done.

Also I have do database authentication when user logs in. All cocoon examples 
show authentication with users in the xml file. Can anyone please direct me 
how to access databases from cocoon during authetication and in other places.


Thanks,
Anna.


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



Using existing jsp file

2004-02-02 Thread Anna Bikkina
Hi,

I have an existing website which has jsp files and html files. I want to use 
the jsp's directly when porting to cocoon. Cocoon is complaining about jsp 
tags, META tags(html) and other  symbols in between the text. Can anyone 
help me how I can overcome this and use existing jsp's and htmls in cocoon 
directly so that I do not have to rewrite them. 

ps: I added the JSp generator and reader to the main component section of the 
sitemap.

Thanks,
Anna.


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



Re: Using existing jsp file

2004-02-02 Thread Anna Bikkina
On Monday 02 February 2004 06:19 pm, Joerg Heinicke wrote:
 On 03.02.2004 00:00, Anna Bikkina wrote:
  I need the output in the cocoon pipelines. I am already using the
  jspReader but it gives me errors.  Below is the sitemap that I am using
  to generate jsp pages. Is JSPReader another option of JTidy/JSPGenerator.

 You still have the explanation of the two components in your sitemap:

 JSPGenerator: JspGenerator is used to get result of a JSP page then
 output it as XML (SAX events)

 JSPReader: JSPReader is used to serve direct output from a JSP page.
 Note, that JSP result can be non XML

 This means the reader has no problem with reading non-XML as it does not
 have to create SAX events out of it. It just outputs the result to the
 client.

 The JSPGenerator *does* generate SAX events of it, i.e. it parses the
 JSP output. But this will only work with well-formed XML output.


Since I have both the JSPGenerator and the JSPReader in the sitemap. Which one 
is used to display the output of the jsp page. 


 When I asked for the need of the JSP output in the pipelines I meant the
 SAX events. If it is enough for you to give the JSP output directly to
 the client, you do not need to parse it. Only if you need the SAX
 events, e.g. for manipulating them via a transformer, you need the
 tidying JSPGenerator.

 You said you got errors with JSPReader? What's the error? It should work
 the same way like JSPGenerator (besides the parsing of course).


Here is the error I got 

An Error Occurred


ServletException in JspGenerator.generate()


org.apache.cocoon.ProcessingException: ServletException in 
JspGenerator.generate()


cause: org.apache.cocoon.ProcessingException: ServletException in 
JspGenerator.generate()


stacktrace[hide] 

org.apache.cocoon.ProcessingException: ServletException in 
JspGenerator.generate()
at 
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:124)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:557)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:501)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractPar


 Joerg

  ?xml version=1.0?
  map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
 
!-- === Components
   --
map:components
  map:generators default=file
!-- JspGenerator is used to get result of a JSP page
 then output it as XML (SAX events)
--
map:generator logger=sitemap.generator.jsp name=jsp
   src=org.apache.cocoon.generation.JspGenerator/
  /map:generators
  map:transformers default=xslt/
  map:readers default=resource
!-- JSPReader is used to serve direct output from
 a JSP page. Note, that JSP result can be non XML  --
map:reader logger=sitemap.reader.jsp name=jsp
src=org.apache.cocoon.reading.JSPReader/
  /map:readers
  map:serializers default=html/
  map:matchers default=wildcard/
  map:selectors default=browser/
/map:components
 
!-- === Pipelines
  = --
map:pipelines
  map:pipeline
!-- This works only if TreeProcessor is used --
map:match pattern=
  map:redirect-to uri=welcome.htm /
/map:match
 
map:match pattern=*.htm
  map:read type=jsp src={1}.jsp mime-type=text/html /
/map:match
 
!-- Use this to debug your JSPs

Re: Installing cocoon

2004-01-30 Thread Anna Bikkina
I do not have spaces in my path.Its a linux box. I attached the build output

Thanks,
Anna.

On Thursday 29 January 2004 06:06 pm, Joerg Heinicke wrote:
 On 29.01.2004 23:52, Anna Bikkina wrote:
  I changed the local.block.properties and there are no error after
  restarting tomcat now. What is this deli block used for?

 http://wiki.cocoondev.org/Wiki.jsp?page=BlockDescriptions

  I am still having problems during building the war.

 I asked for spaced in the path? Can you post the build output?

 Joerg

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

Apache Cocoon Build System
--
Buildfile: build.xml

prepare:
+---+
 Apache Cocoon 2.1.3 [1999-2003]
+---+
 Building with Apache Ant version 1.5.4 compiled on August 12 2003
 using build file /home/anna/cocoon-2.1.3/build.xml
 Compiling with debug on, optimize on, deprecation off
+| W A R N I N G |--+
   This build is targeted for use with JVM 1.4
 Using this build on a virtual machine other than the one
   it is targeted for may result in runtime errors.
+---+

cocoon-block-cron-compile:
---
ATTENTION: cron is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-precept-compile:
---
ATTENTION: precept is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-eventcache-compile:
---
ATTENTION: eventcache is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-repository-compile:
---
ATTENTION: repository is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-slide-compile:
---
ATTENTION: slide is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-proxy-compile:
---
ATTENTION: proxy is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-asciiart-compile:
---
ATTENTION: asciiart is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-mail-compile:
---
ATTENTION: mail is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-axis-compile:
---
ATTENTION: axis is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-taglib-compile:
---
ATTENTION: taglib is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-woody-compile:
---
ATTENTION: woody is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-qdox-compile:
---
ATTENTION: qdox is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-portal-compile:
---
ATTENTION: portal is marked unstable.
It should be considered alpha quality
which means that its API might change without notice.
---

cocoon-block-xmlform-excluded:
---
ATTENTION: xmlform is excluded from the build.
---

cocoon-block-petstore-compile:
---
ATTENTION: petstore

Re:Install cocoon

2004-01-30 Thread Anna Bikkina
I tried clean war and still have the same problems with ant and jdo packages. 
It complains cannot find those packages. I tried adding them to different 
places but still have the same problem. Please find the attached file with  
part of the build output. 

Thanks,
Anna.


javadocs:
Generating Javadoc
Javadoc execution
Loading source files for package org.apache.cocoon...
Loading source files for package org.apache.cocoon.selection...
Loading source files for package org.apache.cocoon.sitemap...
Loading source files for package org.apache.cocoon.components...
Loading source files for package org.apache.cocoon.components.treeprocessor...
Loading source files for package org.apache.cocoon.components.treeprocessor.sitemap...
Loading source files for package 
org.apache.cocoon.components.treeprocessor.variables...
Loading source files for package org.apache.cocoon.components.language...
Loading source files for package org.apache.cocoon.components.language.markup...
Loading source files for package org.apache.cocoon.components.language.markup.xsp...
Loading source files for package org.apache.cocoon.components.language.programming...
Loading source files for package 
org.apache.cocoon.components.language.programming.javascript...
Loading source files for package 
org.apache.cocoon.components.language.programming.java...
Loading source files for package org.apache.cocoon.components.language.generator...
Loading source files for package org.apache.cocoon.components.pipeline...
Loading source files for package org.apache.cocoon.components.pipeline.impl...
Loading source files for package org.apache.cocoon.components.xscript...
Loading source files for package org.apache.cocoon.components.store.impl...
Loading source files for package org.apache.cocoon.components.flow...
Loading source files for package org.apache.cocoon.components.flow.javascript...
Loading source files for package org.apache.cocoon.components.flow.javascript.fom...
Loading source files for package org.apache.cocoon.components.modules.input...
Loading source files for package org.apache.cocoon.components.modules.output...
Loading source files for package org.apache.cocoon.components.source...
Loading source files for package org.apache.cocoon.components.source.impl...
Loading source files for package org.apache.cocoon.components.source.helpers...
Loading source files for package org.apache.cocoon.components.sax...
Loading source files for package org.apache.cocoon.components.notification...
Loading source files for package org.apache.cocoon.components.xpointer...
Loading source files for package org.apache.cocoon.components.xpointer.parser...
Loading source files for package org.apache.cocoon.components.resolver...
Loading source files for package org.apache.cocoon.components.classloader...
Loading source files for package org.apache.cocoon.components.persistence...
Loading source files for package org.apache.cocoon.components.crawler...
Loading source files for package org.apache.cocoon.matching...
Loading source files for package org.apache.cocoon.matching.modular...
Loading source files for package org.apache.cocoon.matching.helpers...
Loading source files for package org.apache.cocoon.generation...
Loading source files for package org.apache.cocoon.i18n...
Loading source files for package org.apache.cocoon.transformation...
Loading source files for package org.apache.cocoon.transformation.helpers...
Loading source files for package org.apache.cocoon.transformation.pagination...
Loading source files for package org.apache.cocoon.xml...
Loading source files for package org.apache.cocoon.xml.dom...
Loading source files for package org.apache.cocoon.xml.xlink...
Loading source files for package org.apache.cocoon.reading...
Loading source files for package org.apache.cocoon.environment...
Loading source files for package org.apache.cocoon.environment.wrapper...
Loading source files for package org.apache.cocoon.environment.http...
Loading source files for package org.apache.cocoon.environment.commandline...
Loading source files for package org.apache.cocoon.servlet...
Loading source files for package org.apache.cocoon.servlet.multipart...
Loading source files for package org.apache.cocoon.util...
Loading source files for package org.apache.cocoon.util.log...
Loading source files for package org.apache.cocoon.util.jxpath...
Loading source files for package org.apache.cocoon.acting...
Loading source files for package org.apache.cocoon.caching...
Loading source files for package org.apache.cocoon.caching.impl...
Loading source files for package org.apache.cocoon.bean...
Loading source files for package org.apache.cocoon.bean.helpers...
Loading source files for package org.apache.cocoon.serialization...
Loading source files for package org.apache.cocoon.components.xslt...
Loading source files for package org.apache.cocoon.components.store...
Loading source files for package org.apache.cocoon.components.parser...
Loading source files for package 

Re: Install cocoon

2004-01-30 Thread Anna Bikkina
Thank you for the response.

Anna.



On Friday 30 January 2004 03:46 pm, JD Daniels wrote:
 Your build is succesful.. You should have the war file. These are just
 javadoc generation errors. You can comment out the javadoc in the
 build.properties file.

 exclude.webapp.javadocs=true
 to
 #exclude.webapp.javadocs=true

 See in your attachments:

 Building jar: /home/anna/cocoon-2.1.3/build/cocoon-2.1.3/cocoon.war

 BUILD SUCCESSFUL
 Total time: 4 minutes 33 seconds

 -Original Message-
 From: Anna Bikkina [mailto:[EMAIL PROTECTED]
 Sent: 2004-01-30 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: Re:Install cocoon


 I tried clean war and still have the same problems with ant and jdo
 packages.
 It complains cannot find those packages. I tried adding them to different
 places but still have the same problem. Please find the attached file with
 part of the build output.

 Thanks,
 Anna.



 -
 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]



Features of cocoon

2004-01-29 Thread Anna Bikkina
Hi,

I was asked to look for portal servers in the industry . I found cocoon has a 
interesting mix of XML and the portal features. Can someone please confirm if 
the following features are available with cocoon.

single sign on
Search feature( I guess it has lucene integerated)
XML data tranformable into different formats(like HTML,WML,PDF) etc
security(role base management and authentication)
Ablility to easily add new pages to the portlet
Personalization depending on users requirement for look and feel
Ability to quickly plug in new features.

Any help is very appreciated for me to decide if cocoon is the right one for 
us.

Thanks,
Anna.


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



Re: Features of cocoon

2004-01-29 Thread Anna Bikkina
Thank  you for the reply. Please address my concerns mentioned below.

I have multiple applications which require logon. I want to make sure if the 
user logs on one application he does not have to log on again till he 
logsout.

I want to port all the applications to cocoon. Just want to make sure that 
cocoon has this feature of single sign on available.

Also for personalization I want to have differnt porlets for different users. 
And change the look and the feel of pages just like we do in my.yahoo.com.

Regarding adding new pages if I have to add a new page to cocoon does it apply 
lot of development. 

Our idea of moving to a portal server is to be able to add new functionality 
to our portal easily(in less time).

Thanks,
Anna.


On Thursday 29 January 2004 10:40 am, Nicolas Toper wrote:
 Le Jeudi 29 Janvier 2004 16:32, Anna Bikkina a écrit :
  Hi,
 
  I was asked to look for portal servers in the industry . I found cocoon
  has a interesting mix of XML and the portal features. Can someone please
  confirm if the following features are available with cocoon.
 
  single sign on

 Depends what you need exactly.

  Search feature( I guess it has lucene integerated)

 Yes

  XML data tranformable into different formats(like HTML,WML,PDF) etc
  security(role base management and authentication)

 Of course

  Ablility to easily add new pages to the portlet

 Yes

  Personalization depending on users requirement for look and feel

 Depends what you need exactly.

  Ability to quickly plug in new features.

 Depends what you need exactly.

  Any help is very appreciated for me to decide if cocoon is the right one
  for us.
 
  Thanks,
  Anna.
 
 
  -
  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]



Re: Features of cocoon

2004-01-29 Thread Anna Bikkina
Thank you very much for the answers.

One other quick question. The support of CMS in cocoon. Has anyone tried it ? 

I was reading about the Lenya project by apache built on cocoon. Can Lenya and 
cocoon portal server be integrated to use the WYSIWYG editor? 

Thanks,
Anna


On Thursday 29 January 2004 11:06 am, Carsten Ziegeler wrote:
 Anna Bikkina wrote:
  I have multiple applications which require logon. I want to make
  sure if the
  user logs on one application he does not have to log on again till he
  logsout.
 
  I want to port all the applications to cocoon. Just want to make
  sure that
  cocoon has this feature of single sign on available.

 Yes, this is possible. Obviously you have to do a little bit to get it
 running as you have to pass the login information from one application
 (or from the single login point) to the other applications.

  Also for personalization I want to have differnt porlets for
  different users.

 This is supported.

  And change the look and the feel of pages just like we do in
  my.yahoo.com.

 Yes, this is easy by just using different stylesheets for the look and
 feel.

  Regarding adding new pages if I have to add a new page to cocoon
  does it apply
  lot of development.

 No, I think this doesn't require more effort than it would in other portal
 servers.

  Our idea of moving to a portal server is to be able to add new
  functionality
  to our portal easily(in less time).

 This is of course difficult to answer :) I personally think that the cocoon
 portal is very flexible and allows you to change every detail if the need
 arises.
 In addition it's very easy to plugin new functionality.
 And once you know how things work, it's easy to develop such extensions.

 HTH
 Carsten

 Carsten Ziegeler
 Open Source Group, SN AG
 http://www.osoco.net/weblogs/rael/Carsten


 -
 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]



Re: Features of cocoon

2004-01-29 Thread Anna Bikkina
Can I port an existing jsp application into cocoon and then add new pages to 
it using the cocoon portal features. 

Thanks,
Anna.


On Thursday 29 January 2004 11:22 am, Anna Bikkina wrote:
 Thank you very much for the answers.

 One other quick question. The support of CMS in cocoon. Has anyone tried it
 ?

 I was reading about the Lenya project by apache built on cocoon. Can Lenya
 and cocoon portal server be integrated to use the WYSIWYG editor?

 Thanks,
 Anna

 On Thursday 29 January 2004 11:06 am, Carsten Ziegeler wrote:
  Anna Bikkina wrote:
   I have multiple applications which require logon. I want to make
   sure if the
   user logs on one application he does not have to log on again till he
   logsout.
  
   I want to port all the applications to cocoon. Just want to make
   sure that
   cocoon has this feature of single sign on available.
 
  Yes, this is possible. Obviously you have to do a little bit to get it
  running as you have to pass the login information from one application
  (or from the single login point) to the other applications.
 
   Also for personalization I want to have differnt porlets for
   different users.
 
  This is supported.
 
   And change the look and the feel of pages just like we do in
   my.yahoo.com.
 
  Yes, this is easy by just using different stylesheets for the look and
  feel.
 
   Regarding adding new pages if I have to add a new page to cocoon
   does it apply
   lot of development.
 
  No, I think this doesn't require more effort than it would in other
  portal servers.
 
   Our idea of moving to a portal server is to be able to add new
   functionality
   to our portal easily(in less time).
 
  This is of course difficult to answer :) I personally think that the
  cocoon portal is very flexible and allows you to change every detail if
  the need arises.
  In addition it's very easy to plugin new functionality.
  And once you know how things work, it's easy to develop such extensions.
 
  HTH
  Carsten
 
  Carsten Ziegeler
  Open Source Group, SN AG
  http://www.osoco.net/weblogs/rael/Carsten
 
 
  -
  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]



Installing cocoon

2004-01-29 Thread Anna Bikkina
Hi,

I am new to cocoon. Trying to install it . It gives compilation error saying 
ant is not found and javax.jdo.PersistenceManager is not found. can anyone 
help me to come over this. I tried to add ant to the classpath and place it 
in the lib directory in cocoon. It still doesnt work. Infact I see a ant jar 
in tools/lib directory. I am using cocoon2.1.3.

Thanks,
Anna.


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



  1   2   >