J2 how Undeploy app and how Reload app after change default-page.psml ???

2005-04-05 Thread Vladimir Figurov
Hello!
I try use jetspeed2. I - beginner in jetspeed2
I have a next little questions:
Ferst question:
-How make UNdeploy the old or error portlet, without running maven 
quickStart allways??:

I read in 
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets, 
chapter Undeployment what need simple DELETE .war from 
WEB-INF/deploy. But, I looking what after I placed a war in this 
catalog, J2 deleting  himself this war, modify his and placed 
MyApp-modify.war in /webapps. Thus, I have already nothing to 
delete in the catalogue "deploy"
If I shall remove in manual /webapps/MyApp-modify.war and 
/webapps/MyApp, and then I shall put new WAR - J2 whence pulls 
out old.

And next question:
-after change [EMAIL PROTECTED] in jetspeed/WEB-INF/pages/default-page.psml 
and stay old [EMAIL PROTECTED] - J2 was run the old MyApp with [EMAIL PROTECTED] # 
newName ?!!

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


J2.build.failed: maven allClean allBuild - compiler can not find javax.servlet package

2005-03-31 Thread Vladimir Figurov
I can't build Jetspeed-2.
(download from CVS 2005.03.30)
Windows;
java 1.4.2_04
tomcat 5.0.18
c:\jakarta-jetspeed-2>maven allClean allBuild

+
| Cleaning Jetspeed-2 Persistence Components
| Memory: 8M/13M
+
Attempting to download jmock-SNAPSHOT.jar.  <- any time a 
attempting download

+
| Cleaning JSF Portlet Demo
| Memory: 13M/20M
+
Attempting to download portals-bridges-jsf-0.1.jar.
WARNING: Failed to download portals-bridges-jsf-0.1.jar. <--the all 
day 2005.03.31 this error 8((


build:start:

java:prepare-filesystem:
   [mkdir] Created dir: 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\target\classes

java:compile:
   [echo] Compiling to 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common/target/classes
   [javac] Compiling 7 source files to 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\target\classes
   [javac] 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\src\java\org\apache\portals\bridges\common\ServletContextProvider.java:21:
package javax.servlet does not exist
   [javac] import javax.servlet.ServletContext;
   [javac]  ^
   [javac] 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\src\java\org\apache\portals\bridges\common\ServletContextProvider.java:22:
package javax.servlet.http does not exist
   [javac] import javax.servlet.http.HttpServletRequest;
   [javac]   ^
   [javac] 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\src\java\org\apache\portals\bridges\common\ServletContextProvider.java:23:
package javax.servlet.http does not exist
   [javac] import javax.servlet.http.HttpServletResponse;
   [javac]   ^
   [javac] 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\src\java\org\apache\portals\bridges\common\ServletContextProvider.java:33:
cannot resolve symbol
   [javac] symbol  : class ServletContext
   [javac] location: interface 
org.apache.portals.bridges.common.ServletContextProvider
   [javac] ServletContext getServletContext(GenericPortlet portlet);
   [javac] ^
   [javac] 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\src\java\org\apache\portals\bridges\common\ServletContextProvider.java:35:
cannot resolve symbol
   [javac] symbol  : class HttpServletRequest
   [javac] location: interface 
org.apache.portals.bridges.common.ServletContextProvider
   [javac] HttpServletRequest getHttpServletRequest(GenericPortlet 
portlet, PortletRequest request);
   [javac] ^
   [javac] 
C:\work\web\Portal-JAVAas\jakarta-jetspeed-2\portals-bridges\common\src\java\org\apache\portals\bridges\common\ServletContextProvider.java:37:
cannot resolve symbol
   [javac] symbol  : class HttpServletResponse
   [javac] location: interface 
org.apache.portals.bridges.common.ServletContextProvider
   [javac] HttpServletResponse 
getHttpServletResponse(GenericPortlet portlet, PortletResponse response);
   [javac] ^
   [javac] 6 errors

BUILD FAILED
File.. file:/C:/work/web/Portal-JAVAas/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 133
Column 40
Unable to obtain goal [java:compile] -- file:/C:/Documents and 
Settings/Bob/.maven/plugins/maven-java-plugin-1.3/plugin.jelly:34:48: 
 Compile fa
iled; see the compiler error output for details.

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


J2 build failed. maven allClean... build failed, The filename, directory... maven:reactor ... Line 103

2005-03-31 Thread Vladimir Figurov
About error:
C:\jakarta-jetspeed-2>maven allClean allBuild  __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
Starting the reactor...
BUILD FAILED
File.. C:\jakarta-jetspeed-2\maven.xml Element... 
maven:reactor Line.. 103 Column 31 Error reading XML 
or initializing Total time: 7 seconds Finished at: Mon Nov 29 
wrining many letters. The root this error is placed on 
http://portals.apache.org/jetspeed-2/getting-started.html
in topic:

   2. Build Properties
writed: "Please set these values in your ${USER_HOME}/|build.properties| 
file:"

ha-ha-ha!!!
it's - ERROR!!! The right place for build.properties file - in 
project.home  After change build.properties on 2 file:
FERST file: ${USER_HOME}/|build.properties|:
 maven.home=${user.home}/.maven
 maven.proxy.host=proxy
 maven.proxy.port=3128
SECOND file: /build.properties:
   # jetspeed 2 home required for build
   org.apache.jetspeed.project.home = 
C:/work/web/Portal-JAVAas/jakarta-jetspeed-2

   # jetspeed required properties
   org.apache.jetspeed.server.home = C:/Java/jakarta-tomcat-5.5.9
   org.apache.jetspeed.catalina.version.major = 5
   org.apache.jetspeed.server.shared = 
${org.apache.jetspeed.server.home}/shared/lib
   org.apache.jetspeed.deploy.war.dir = 
${org.apache.jetspeed.server.home}/webapps
   org.apache.jetspeed.services.autodeployment.user = j2deployer
   org.apache.jetspeed.services.autodeployment.password = j2deployer

   # jetspeed db build properties example for Hsqldb
   # Override the database connection and driverproperties in your 
${USER_HOME}/build.properties appropriately
   # See:
   #   http://portals.apache.org/jetspeed-2/database.html

   org.apache.jetspeed.test.database.url = 
jdbc:hsqldb:hsql://127.0.0.1:9001
   org.apache.jetspeed.test.database.driver = org.hsqldb.jdbcDriver
   org.apache.jetspeed.test.database.user = sa
   org.apache.jetspeed.test.database.password =

   org.apache.jetspeed.test.jdbc.drivers.path=
   org.apache.jetspeed.test.database.default.name=hsql
   org.apache.jetspeed.test.database.ojb.platform=Hsqldb
   org.apache.jetspeed.production.database.url = 
jdbc:hsqldb:hsql://127.0.0.1:9001
   org.apache.jetspeed.production.database.driver = org.hsqldb.jdbcDriver
   org.apache.jetspeed.production.database.user = sa
   org.apache.jetspeed.production.database.password =

   org.apache.jetspeed.production.jdbc.drivers.path=
   org.apache.jetspeed.production.database.default.name=hsql
   org.apache.jetspeed.production.database.ojb.platform=Hsqldb
-
the build process is started NORMAL (the finish - I wait on this time 8) )
-
1,5 days I lost on this error 8(
--
Vladimir
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: "hasLoggedIn" property and UserBrowser portlet

2005-02-03 Thread Vladimir Figurov
8) hi! tezka!!!
In velocity, if use full method's name, need write "hasLoggedIn()".  

#entryCell ($!user.hasLoggedIn())
but this - not help you 8((( - as is hasLoggeId look in TEMP hash in 
user object - and, on Browser User portlet the any user-object return 
FALSE 8(((

Vladimir Lisin wrote:
Hi all,
I wanted to add  in the table of  users in UserBrowser portlet  the column 
with flag "hasLoddeIn".
But simple insert  the  line " #entryCell ($!user.hasLoggedIn) " in 
user-browser.vm  don't  provide result.
Why ?  This "user" is JetspeedUser and has ".hasLoggedIn" property !?
In  UserBrowserAction this "user"  appear by the next :

   . 
   Iterator users = JetspeedSecurity.getUsers();
   List userList = new ArrayList();
  ...
   while(users.hasNext()) 
   {
 JetspeedUser user = (JetspeedUser)users.next();
  userList.add(user);
 }
.
Can anybody comment this ? 
Thanks in advance, Vladimir
 


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


Re: Anyone have the old ver 1.4b3 Jetspeed tutorial?

2005-01-06 Thread Vladimir Figurov
hi
I have a old version tutor in HTML
8)
Jason Nichols wrote:
Does anyone have the old 1.4b3 (or any 1.4 version) tutorial by David
Taylor
that used to be on bluesunrise.com? The pdf version was called
"jetspeedtutorial.pdf".
 
I have searched quite a bit as well as emailed bluesunrise with no luck
so far. Everyone seems to have linked to sunrise.com & they no longer
host it.

If anyone has a url to it that would be greatly appreciated. 
If I do get a copy I will make it available at quantumland.com, if
needed.

Thank-you,
Jason
Florida State University
[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: [SPAM] Re: PSML from role

2004-12-08 Thread Vladimir Figurov
Peter F. wrote:
Hello Vladimir,
But there is a problem if you then want to revoke role from user or if
you assign the same role to the same user once again.
 

yes, but I simple a delete psml-profile on this user - and after ferst 
logon his psml profile - is correct!!!

Wednesday, December 8, 2004, 3:51:39 PM, you wrote:
VF> Hi
VF> 1) set portal in role based mode (see tutorial) - any new user make from
VF> default role-psml.
VF> 2)set some panels and portlets in default-role-psml (in distr
VF> - this user role) file. After add another role - jetspeed make a
VF> MERGE role's psml files: default-role-psml + another-role-psml
VF> files

VF> Carlos Torres wrote:
 

Hi people,
Anybody know how to get the screen configuration( psml file) from
a role set when a new user is created?
I need to set some panels and portlets for any role and when
create user for any role this user be setted with this
configuration(psml file).
Thank you very much
Regards,
 Carlos Torres

 


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

 


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


Re: PSML from role

2004-12-08 Thread Vladimir Figurov
Hi
1) set portal in role based mode (see tutorial) - any new user make from 
default role-psml.

2)set some panels and portlets in default-role-psml (in distr - this user role) 
file. After add another role - jetspeed make a MERGE role's psml files: 
default-role-psml + another-role-psml files

Carlos Torres wrote:
Hi people,
Anybody know how to get the screen configuration( psml file) from a role set 
when a new user is created?
I need to set some panels and portlets for any role and when create user for 
any role this user be setted with this configuration(psml file).
Thank you very much
Regards,
  Carlos Torres
 


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


Re: Problem using Oracle & Jetspeed 1.5

2004-12-06 Thread Vladimir Figurov
hello.
seek answer on your Q. in this mail-list - my Jetspeed1.5 & Oracle 
9.2.xx - work excellent

Hampton, Thomas wrote:
I'm getting the following error when trying to create a new user account
when running jetspeed 1.5 with Oracle.
org.apache.jetspeed.services.security.UserException: Failed to create
account 'a': ORA-04016: sequence TURBINE_USER no longer exists
I created a database and ran the 
	C:\jetspeed-1.5\src\sql\external\turbine-oracle.sql
		and
	C:\jetspeed-1.5\src\sql\external\populate-oracle.sql
Sql scripts.

Copied the oracle JDBC driver into lib directory.
Made the following modifications to the Torque.properties file
torque.database.default.adapter=oracle
torque.dsfactory.default.connection.driver =
oracle.jdbc.driver.OracleDriver
torque.dsfactory.default.connection.url =
jdbc:oracle:thin:@localhost:1521:orcl
torque.dsfactory.default.connection.user =  jetspeed
torque.dsfactory.default.connection.password = jetspeed 
What else do I need to do?  I'm working with a Jetspeed 1.5 source
distribution, not pulled from the CVS tree.
Seems like the code is somehow expecting a sequence called TURBINE_USER
but it's called TURBINE_USER_SEQ in the sql file.
Is there something that needs to be changed in the security-schema.xml
file ?
Thanks,
Tom

The stack trace :
 java.sql.SQLException: ORA-04016: sequence TURBINE_USER no longer
exists
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:12
5)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
at
oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
at
oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:3
51)
at
oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatemen
t.java:896)
at
oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java
:383)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.
java:986)
at
oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:112
5)
at com.workingdogs.village.QueryDataSet.(Unknown Source)
at
org.apache.torque.oid.SequenceIdGenerator.getIdAsVillageValue(SequenceId
Generator.java:199)
at
org.apache.torque.oid.SequenceIdGenerator.getIdAsBigDecimal(SequenceIdGe
nerator.java:133)
at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:720)
at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:639)
at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas
eTurbineUserPeer.java:241)
at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas
eTurbineUserPeer.java:214)
at
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.addU
ser(TurbineUserManagement.java:283)
at
org.apache.jetspeed.services.JetspeedUserManagement.addUser(JetspeedUser
Management.java:95)
at
org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.j
ava:213)
at
org.apache.jetspeed.modules.actions.CreateNewUserAndConfirm.doPerform(Cr
eateNewUserAndConfirm.java:171)
at org.apache.turbine.modules.Action.perform(Action.java:87)
at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:14
3)
at org.apache.turbine.modules.Page.build(Page.java:90)
at
org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
at org.apache.turbine.Turbine.doGet(Turbine.java:563)
at org.apache.turbine.Turbine.doPost(Turbine.java:658)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardCo

CastorRegistryService & FreeBSD - xreg's broking & more minors...

2004-12-05 Thread Vladimir Figurov
hi!
need help!
I have a wrong work Portal XML-subsystem in next config:
-Jetspeed 1.5 on Tomcat 5.0.18 under FreeBSD 5.2.1-RELEASE
I checked this Portal on:
- Mandrake 10   - work excellent
- Debian (the old-old-old version)  - work excellent
- W2K, XP   - work excellent
A question: whether where to take correct CastorRegistryService and in 
it put???

---
The list errors in work Portal XML-subsystems on FreeBSD:
=
1)-in Catalina.out next error messages:
=
...
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
...
[Fatal Error] :2:1: Content is not allowed in prolog.
[Fatal Error] :2:1: Content is not allowed in prolog.
[Fatal Error] :2:1: Content is not allowed in prolog.

=
2)-in WEB-INF/log/JetspeedServices.log next error messages:
=
2004-12-03 10:00:58,244 [DaemonThread:feeddaemon] ERROR 
CastorRegistryService - RegistryService: Could not create fragment: 
/home/.../www/WEB-INF/conf/feed_apache.xreg
org.xml.sax.SAXParseException: Content is not allowed in prolog.
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
	at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:270)
	at 
org.apache.jetspeed.services.registry.CastorRegistryService.createFragment(CastorRegistryService.java:596)
	at org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:165)
	at org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:109)
	at org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:74)
2004-12-03 13:00:58,953 [DaemonThread:feeddaemon] ERROR 
CastorRegistryService - RegistryService: Could not create fragment: 
/home/.../www/WEB-INF/conf/feed_apache.xreg
org.xml.sax.SAXParseException: Content is not allowed in prolog.
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
	at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:270)
	at 
org.apache.jetspeed.services.registry.CastorRegistryService.createFragment(CastorRegistryService.java:596)
	at org.apache.jetspeed.daemon.impl.FeedDaemon.run(FeedDaemon.java:165)
	at org.apache.jetspeed.daemon.DaemonThread.runDaemon(DaemonThread.java:109)
	at org.apache.jetspeed.daemon.DaemonThread.run(DaemonThread.java:93)
=
3) if in WEB-INF/cache I delete previosly cached urls, number errors - 
is less
=

PS. After reception of mistake N2 I have come to a conclusion that the 
demon "daemon.entry=feeddaemon" does not work, and mistake N3 shows, 
that does not work and "daemon.entry=diskcachedaemon" - it turns out, 
all demons - do not work. After reading the letter on
[EMAIL PROTECTED]/msg12919.html has 
come to a conclusion, that it does not work CastorRegistryService.

Has taken
nagoya.apache.org/jira/secure/attachment/13183/CastorRegistryService.java 
- and this module - the oldest (2003), than in 1.5 distrib a portal (2004).
A question: whether where to take correct CastorRegistryService and in 
it put???

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


Re: Compile

2004-10-18 Thread Vladimir Figurov
in file project.properties add next :
maven.compile.encoding=windows-1251
Vladimir Lisin wrote:
Hi all,
Were I can specify to Maven that it executed the compile with parameter 
"encoding=windows-1251" ?
For example:javac -encoding=windows-1251 ..

Thanks in advance
VL
 


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


Allways Empty Turbine_user.CREATED field

2004-09-02 Thread Vladimir Figurov
Hi I have a truble:
ORACLE. TURBINE_USER Table. A field "CREATED"  - allways empty 8(((
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


i10n messages in email subsystem Jetspeed 1.5

2004-08-24 Thread Vladimir Figurov
Hi!
Any body know How To make i10n message in email subsystem Jetspeed 1.5 ???
By example, I try send Confirmation email from jetspeed and, I see 
correct National Chars only SUBJECT-field mail 8(
In BODY - the all chars is broken (as "" )
In header-mail ALLWAYS setting Content-Type: "test/plain; 
charset=us-ascii" 8(((
but I working in utf-8 !!!

in velocity.properties I setting:
#
# T E M P L A T E  E N C O D I N G
#
#template.encoding=8859_1
template.encoding=utf-8
#
# C O N T E N T  T Y P E  
#
# This is the default content type for the VelocityServlet.
#

#default.contentType=text/html
default.contentType=text/html; charset=utf-8
but not effect 8((
--
Vladimir
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: relative links in portlet controllers navigation.

2004-08-23 Thread Vladimir Figurov
Carlo Pascoli wrote:
In layout files like jetspeed-tab.vm navigation links are displayed calling
$tab.Link which produce absolute urls.
Is there any reason for that?
How is it possible to change this behaviour?
Thanks again
 

I think - it's make for simple modify a application context path. For 
example:
-for change Portal's URL  from http://aaa.com to http://bbb/com

without BASE tag - not working 8(
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: relative links in portlet controllers navigation.

2004-08-23 Thread Vladimir Figurov
No No
Look:
- I use this conversion on output HTML-Docs from database - storage 
(where many users Uploading any HTML-docs )
in jsp page, example "DocView.jsp" have a code:

 <%if (doc != null) {%>
 <%=HTML.addFullURL2LocalHrefs(doc.getContent())%>
 <%}%>


there is a "doc" - it is torque mapper class for DB.table with BLOB 
field with documents, pict,... e.t.s
and I have (make) a utilits for search and replace (if need) in 
HTML-Documents HTML TAG.

in HTML.addFullURL2LocalHrefs() method may use CNeko HTML-parser, for 
convert to w3c.DOM then convert to XML.DOM (dom4j libs) and search 
element  by XPath
(but not working this combination on old Tomcat (with xerces version 1))
or made self mini-parser, use a SWING API for presentation HTML-file to 
DOM model (but ... this method is bad, ... "cherez jopu autogenom" - 
russian folklor)

Carlo Pascoli wrote:
Thanks Vladimir for your reply,
do you mean that your custom servlet filter filters outgoing html converting
jetspeed absolute to relative urls
and also filters incoming http requests converting relative to absolute
urls?
Isn't there any easiest way of doing that like defining a property in
TurbineResorce or JetspeedResource files?
I've been looking for it without any luck...
In layout files like jetspeed-tab.vm navigation links are displayed calling
$tab.Link which produce absolute urls.
Is there any reason for that?
How is it possible to change this behaviour?
Thanks again
Carlo


-Original Message-
From: Vladimir Figurov [mailto:[EMAIL PROTECTED]
Sent: 23 August 2004 12:57
To: Jetspeed Users List
Subject: Re: relative links in portlet controllers navigation.
Hi
I make a additional servlet-filter for parsing outing html before response
and converting relative url to absolute url
Carlo Pascoli wrote:
 

Hi all,
I would like to know how it's possible to get relative urls in jetspeed
navigation instead of absolute urls that jetspeed builds.
My server stands behind a proxy hence it's not directly accessible from the
internet and the absolute urls that jetspeed builds for the navigation are
not usable.
Changing the html base ref doesn't help, is there a way to avoid jetspeed
building absulute urls in the portlet controller navigation?
I very urgently need to fix this isssue.
Thanks in anvance for a reply.
Carlo

-
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: relative links in portlet controllers navigation.

2004-08-23 Thread Vladimir Figurov
Hi
I make a additional servlet-filter for parsing outing html before response
and converting relative url to absolute url
Carlo Pascoli wrote:
Hi all,
I would like to know how it's possible to get relative urls in jetspeed
navigation instead of absolute urls that jetspeed builds.
My server stands behind a proxy hence it's not directly accessible from the
internet and the absolute urls that jetspeed builds for the navigation are
not usable.
Changing the html base ref doesn't help, is there a way to avoid jetspeed
building absulute urls in the portlet controller navigation?
I very urgently need to fix this isssue.
Thanks in anvance for a reply.
Carlo

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


Where is "button" for auto-delete files in Tomcat-ROOT after upload files?

2004-08-15 Thread Vladimir Figurov
Hello,
After any upload file  - a copy this file (and 3-5 another tmp-files) is 
stay on root directory webapplication.
Any body know, where need "turn on" parameter for auto-delete this
temp-files?
or I must use a combination :
...
FileItem fi = ...
... // Store in database
...// Delete
if (! fi.inMemory()) {
  fi.getStoreLocation().delete();
}
- but this code working only in debug-mode in DevelopIDE, on run-mode - 
not working 8(((
??

--

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


Re: Downloading files with portlets.

2004-08-11 Thread Vladimir Figurov
hi
I use deprecated!!!, but excellent package import 
org.apache.turbine.util.upload :
import org.apache.turbine.util.upload.FileItem;
...
   FileItem fi = parameters.getFileItem("content_file");
   byte[] byteContent = fi.get();
...

Paolo Victor Gonçalves Soares / Projeto Ourgrid - Projeto OurGrid wrote:
Hello,
I'm developing a jetspeed portlet, which runs an application on the 
server with some parameters given by the user as input and produces an 
output file that should be available for downloading.

The application runs, the file is created but I'm having a problem 
with the download implementation: the file should be available to, and 
only to, the user who had ran the portlet. This means that I can't 
just copy the file to a folder in the portal, because any user would 
have access to it.

I've tried putting the output file in a "hidden" directory (such as 
the user's psml dir) and download it through the HttpServletResponse, 
but I keep getting "getWriter() has already been called for this 
response" exceptions.

So, do you guys have any idea of how to implement this?
Thanks for your attention,
~Paolo Victor
-
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: Jetspeed Release 1.5 - Standard WAR IE problem....

2004-08-03 Thread Vladimir Figurov
It's problem a have name is "RTFM" - look tutorial - it's l10n - your IE
have a national language in ferst position. Make "en" on ferst position
in IE ... or tuned l10n in jetspeed (need RTFM)


김태식 wrote:

>I have a task of creating a potal using jetspeed 1.5 release.
>
>But.. IE(Internet Explorer) gave the follwing problems
>
> 
>
>--
>
>$l10n.TOP_USERWELCOMEMSG Jetspeed Admin
>
>$l10n.CUSTOMIZER_MEDIATYPE : html
>
> 
>
>$l10n.CUSTOMIZER_NAME
>
>1 -->  link
>broke..  http://localhost:8080/jetspeed/$jslink.getAction(
>
>--
>
> 
>
>however..  Mozila or Netscape goes well.
>
>Is it IE problem or other problem ?
>
> 
>
>why This problem happens?
>
> 
>
>Thank you.
>
>
>  
>



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



Safety DB

2004-07-19 Thread Vladimir Figurov
Hi
People, share a secret of safe work with a DB!
In fact Torque - mappers the DB have full access... and this OPEN way 
for SQL-Injection and damage DB 8(((

--
Владимир Фигуров
ТОО "АЗИЯ-СОФТ"
Департамент разработки
ведущий специалист
ICQ:  332054482
офис: 8-3272-754400
моб:  8-300-7270789
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Three level menu problems

2004-07-15 Thread Vladimir Figurov
Yes, I also have a this problem...
This  time I seek resolve in mail-list...
Oriol Carcelle Bayona wrote:
Hi,
Can anybody help me?
I have a three level menu defined in my default.psml, and i'm trying 
to make a link to one of the third level panes:

But I'm having problems, it seems it doesn't find the third level.
Thanks in advanced.
Oriol Carcelle
-
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: HTML page with

2004-07-14 Thread Vladimir Figurov
Stefano Bianchi wrote:
Dear Vladimir,
I'm not a programming expert, but I thought that wrapping some plain HTML in
JspPortlet would allow you to put code also in the HTML files (after all,
the rendering on the portal is of a jsp, not of an html!) included. This
sounds a bit strange to me, but it could be.
Did you use the  tag? I used it but I had file system based files
and not from DB.
 

I don`t use  tag,
I insert HTML-Pages in jsp-pages next method:
...
 <%if (doc != null) {%>
 <%=doc.getTitle()%>
 <%=doc.getContent()%>
 <%}%>
...
Where "doc" is a class-wrapper for sample of various HTML-files of a database.
For resolve problem with DOMDoc->XMLDoc) for find (use XPath) this tag
and transform then his to correct absolute URL.
-use CyberNeko HTML2DOM parsers lib - 
http://www.apache.org/~andyc/neko/nekohtml-latest.zip
-& DOM4J XML lib - http://sourceforge.net/projects/dom4j/
I made next:
   String result = null;
   // Get full URL current Portals Page
   StringBuffer currURL = request.getRequestURL();
   currURL.append(";jsessionid=").append(request.getRequestedSessionId());
   currURL.append("?").append(request.getQueryString());
   // Convert HTML Document to DOM Document (for fast find by XPath)
   org.cyberneko.html.parsers.DOMParser parser = new 
org.cyberneko.html.parsers.DOMParser();
   try {
 parser.parse(new InputSource(new StringReader(htmlSource)));
 org.w3c.dom.Document docDOM = parser.getDocument();
 // Convert DOM 2 XML Document
 org.dom4j.io.DOMReader readerDOM = new org.dom4j.io.DOMReader();
 org.dom4j.Document docXML = readerDOM.read(docDOM);
 // Find by XPath all 
 List listNode_A_HREFs = docXML.selectNodes("//A[starts-with(@href,'#')]");
 for (Iterator it = listNode_A_HREFs.iterator(); it.hasNext();) {
   // Convert LOCAL refs to ABSOLUTE refs
   org.dom4j.Element node_A_HREFs = (org.dom4j.Element)it.next();
   String hrefValue = node_A_HREFs.attributeValue("href");
   hrefValue = currURL+hrefValue;
   node_A_HREFs.addAttribute("href",hrefValue);
 }
 // Out to HTML
 StringWriter sw = new StringWriter();
 org.dom4j.io.OutputFormat format = org.dom4j.io.OutputFormat.createPrettyPrint();
 //These are the default formats from createPrettyPrint, so you needn't set them:
 //  format.setNewlines(true);
 //  format.setTrimText(true);
 format.setNewlines(setNewlines);
 format.setTrimText(setTrimText);
 format.setIndent(setIndent);
 format.setXHTML(setXHTML);
 format.setExpandEmptyElements(setExpandEmptyElements);
 format.setNewLineAfterNTags(setNewLineAfterNTags); //print a line every so often.
 org.dom4j.io.HTMLWriter writer = new org.dom4j.io.HTMLWriter(sw, format);
 writer.write(docXML);
 writer.flush();
 result = sw.toString();

Couldn't you change the file format of include files from html to jsp?
Good luck
Stefano
- Original Message - 
From: "Vladimir Figurov" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 13, 2004 7:21 AM
Subject: Re: HTML page with 

 

To Stefano:
Yes, it's working on JSP, but my JSP-portlet - is wrapper for varios
HTML-pages outing from data base & in this HTML-pages (clean HTML, not
JSP)  placed jsp-code don't work - HTML-pages out to stream server
response & and not compiling ;-(
Stefano Bianchi wrote:
   

I solved this by paasing to JspPortlet and using this code
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld'
 

prefix='jetspeed'
 

%>
...
<%
String s = request.getRequestURI();
String ss = s.substring(s.lastIndexOf("portal")+6);
%>
...

 

 

What is this?
   

...
 
...
Not so clean but it worked it out!
Good luck
Stefano
- Original Message - 
From: "Vladimir Figurov" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 12, 2004 5:28 AM
Subject: HTML page with 


 

Hi
I have a trubles with working HTML pages. If HTML page has code:

Goto step ONE

Step ONE:

at output this page on portal has wrong ref. on "Step ONE" - #anchor1
write at once after Base URI Portal, without the current page (portlet)
and its parameters.
Example:
"http://localhost/jetspeed/#anchor1";
---
Certainly, this is a wrong refs...
Please, help! need optimal choise (this page is taken from data base):
1) I must use org.apache.jetspeed.util.HTMLRewriter class and after out
   

from base and before render page portlets, TRANSFORMed  

2) or have is another, better resolv...???
Bob Figurov
   

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


Re: HTML page with

2004-07-12 Thread Vladimir Figurov
To Stefano:
Yes, it's working on JSP, but my JSP-portlet - is wrapper for varios 
HTML-pages outing from data base & in this HTML-pages (clean HTML, not 
JSP)  placed jsp-code don't work - HTML-pages out to stream server 
response & and not compiling ;-(

Stefano Bianchi wrote:
I solved this by paasing to JspPortlet and using this code
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>
...
<%
 String s = request.getRequestURI();
 String ss = s.substring(s.lastIndexOf("portal")+6);
%>
...

 

What is this?
   

...
 
...
Not so clean but it worked it out!
Good luck
Stefano
- Original Message - 
From: "Vladimir Figurov" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 12, 2004 5:28 AM
Subject: HTML page with 

 

Hi
I have a trubles with working HTML pages. If HTML page has code:

Goto step ONE

Step ONE:

at output this page on portal has wrong ref. on "Step ONE" - #anchor1
write at once after Base URI Portal, without the current page (portlet)
and its parameters.
Example:
"http://localhost/jetspeed/#anchor1";
---
Certainly, this is a wrong refs...
Please, help! need optimal choise (this page is taken from data base):
1) I must use org.apache.jetspeed.util.HTMLRewriter class and after out
from base and before render page portlets, TRANSFORMed 
Bob Figurov
-
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: HTML page with

2004-07-12 Thread Vladimir Figurov
Somebody knows, what for in
WEB-INF/templates/jsp/layouts/html/default.jsp include tag  ???
- It because of him local references do not work!
Vladimir Figurov wrote:
Hi
I have a trubles with working HTML pages. If HTML page has code:

Goto step ONE

Step ONE:

at output this page on portal has wrong ref. on "Step ONE" - #anchor1 
write at once after Base URI Portal, without the current page 
(portlet) and its parameters.
Example:
"http://localhost/jetspeed/#anchor1";
---
Certainly, this is a wrong refs...
Please, help! need optimal choise (this page is taken from data base):
1) I must use org.apache.jetspeed.util.HTMLRewriter class and after 
out from base and before render page portlets, TRANSFORMed 
2) or have is another, better resolv...???

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


HTML page with

2004-07-11 Thread Vladimir Figurov
Hi
I have a trubles with working HTML pages. If HTML page has code:

Goto step ONE

Step ONE:

at output this page on portal has wrong ref. on "Step ONE" - #anchor1 
write at once after Base URI Portal, without the current page (portlet) 
and its parameters.
Example:
"http://localhost/jetspeed/#anchor1";
---
Certainly, this is a wrong refs...
Please, help! need optimal choise (this page is taken from data base):
1) I must use org.apache.jetspeed.util.HTMLRewriter class and after out 
from base and before render page portlets, TRANSFORMed 
2) or have is another, better resolv...???

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


ParameterParser have a broken national char after receive from form with multipart/form-data

2004-06-24 Thread Vladimir Figurov
Hello.
I have a trubles with upload files:
If the HTML-form with attribute  enctype="multipart/form-data" has 
additional text fields, besides a field "", values 
(national characters) of these fields come in the broken kind.
;(
For example:



http://localhost/kka/";>

Uniform Register



http://localhost/kka/portal"; enctype="multipart/form-data">
 
 
 
   Description:
<-- -  -->
<---->
<-- THIS FIELD A BROKEN in request -->
<---->
<---->
   **
<---->
<-- -  -->
 
 
   Specify a file for loading ( <=100 Kbyte):
   
 
 
   
 
   
 
 



CODE in xxxAction.java:
...
ParameterParser parameters = rundata.getParameters();
String title = parameters.getString("title",null);  <-- BROKEN 
National characters 8(((
--

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


parse request for get Date with non zero Time field

2004-06-23 Thread Vladimir Figurov
Somebody knows a good method of work with classes DateSelector and 
TimeSelector?
If "POST" from DateSelector I still can pull out from request:

Date dateActivate = rundata.getParameters () .getDate (NAME_DATE_SELECTOR);
that for "POST" from TimeSelector something I cannot find a ready 
method... 8((
make hand?

--
Владимир Фигуров

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


Localization in DateSelector ?

2004-06-23 Thread Vladimir Figurov
How localization in "org.apache.turbine.util.DateSelector" is done?
Here so:
   Calendar calendar = 
Calendar.getInstance(Localization.getLocale(request));
   DateSelector.getMonthSelector(nameSelector,calendar)

- does not work - always returns name Month in system locale (ru). 8(
---
It was necessary to be inherited from ххх:
public class DateSelector extends org.apache.turbine.util.DateSelector {
 /**
  * Get HTML-Selector with names month on requested locale
  * @param name - selector
  * @param now - 
  * @param locale - request locale
  * @return
  */
 public static Select getMonthSelector(String name, Calendar now, Locale locale) {
   String monthName[] = (new DateFormatSymbols(locale)).getMonths();
   Select monthSelect = (new Select()).setName(name);
   for(int curMonth = 0; curMonth <= 11; curMonth++) {
 Option o = new Option();
 o.addElement(monthName[curMonth]);
 o.setValue(curMonth);
 if(now.get(2) == curMonth)
   o.setSelected(true);
 monthSelect.addElement(o);
   }
   return monthSelect;
 }

}
=
but can eat better a way?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DateSelector - Localization ?

2004-06-21 Thread Vladimir Figurov
How localization in "org.apache.turbine.util.DateSelector" is done?
Here so:
   Calendar calendar = 
Calendar.getInstance(Localization.getLocale(request));
   DateSelector.getMonthSelector(nameSelector,calendar)

- does not work - always returns name Month in system locale (ru). 8(
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem building Jestsepped

2004-06-14 Thread Vladimir Figurov
Max Sjögren wrote:
Hi jetspeed-user
I have problem building jetspeed 1.5
When I do $maven war or $maven clean I get the following "error"
Tag library requested that is not present: 'maven' in plugin: 'null'
When I do clean the build succeed when I do war it fails.
 

maven clean -  It is impossible to do! It kills all src...
I want to use MYSQL instead of Hypersonic. I believe that I have
configured all the files necessary, 

project.properties
project = jetspeed
# ---
# 
#  T A R G E T  D A T A B A S E
#
# ---
# db2
# hypersonic
# mysql
# oracle
# postgresql
# mssql
# sybase
# ---
database = mysql

#targetPackage = org.apache.jetspeed.om.torque
torque.retrievableInterface = org.apache.fulcrum.intake.Retrievable
torque.database.url = jdbc:mysql://localhost:3306/jetspeed15
torque.database.driver = org.gjt.mysql.Driver
torque.database.user = jetspeed15
torque.database.password = detault
and
webapp/WEB-INF/conf/Torque.properties
torque.database.default=default
###torque.database.default.adapter=hypersonic
torque.database.default.adapter=mysql
### torque.database.default.adapter=oracle
### torque.database.default.adapter=mssql
##
## Using torque's old pool
##
torque.dsfactory.default.connection.driver = org.hsqldb.jdbcDriver
torque.dsfactory.default.connection.url =
jdbc:hsqldb:${webappRoot}/WEB-INF/db/jetspeed
torque.dsfactory.default.connection.user = sa 
torque.dsfactory.default.connection.password = 

torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
# The number of database connections to cache per ConnectionPool
instance (specified per database)
torque.dsfactory.default.pool.defaultMaxConnections=10
torque.dsfactory.default.pool.maxExpiryTime=3600
torque.dsfactory.default.pool.connectionWaitTimeout=10
### MySQL
torque.dsfactory.default.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.default.connection.url =
jdbc:mysql://localhost:3306/jetspeed15
torque.dsfactory.default.connection.user =  jetsqeep15
torque.dsfactory.default.connection.password = default
### Oracle
### torque.dsfactory.default.connection.driver = oracle.jdbc.driver
This is the output from the build.
[junit] INFO - loading component: name=fulcrum
class=org.apache.fulcrum.Fulcrum
config=webapp/WEB-INF/conf/Fulcrum.properties
   [junit] INFO - Finished initializing all services!
   [junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 3.571
sec
   [junit] [ERROR] TEST
org.apache.jetspeed.services.security.TestUserManagement FAILED
   [junit] Running org.apache.jetspeed.util.rewriter.TestFrameRewriter
   [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.28 sec
   [junit] Running org.apache.jetspeed.util.TestOverwriteProperties
   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.002
sec
   [junit] Running org.apache.jetspeed.util.TestValidation
   [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 1.009
sec
   [junit] Running
org.apache.jetspeed.util.TestValidationParameterParser
   [junit] INFO - loading component: name=torque
class=org.apache.torque.Torque
config=webapp/WEB-INF/conf/Torque.properties
   [junit] INFO - loading component: name=fulcrum
class=org.apache.fulcrum.Fulcrum
config=webapp/WEB-INF/conf/Fulcrum.properties
   [junit] INFO - Finished initializing all services!
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 6.281
sec
   [junit] Running
org.apache.jetspeed.util.template.TestJetspeedLinkFactory
   [junit] INFO - loading component: name=torque
class=org.apache.torque.Torque
config=webapp/WEB-INF/conf/Torque.properties
   [junit] INFO - loading component: name=fulcrum
class=org.apache.fulcrum.Fulcrum
config=webapp/WEB-INF/conf/Fulcrum.properties
   [junit] INFO - Finished initializing all services!
   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.055
sec
BUILD FAILED
File..
file:/home/max/.maven/plugins/maven-test-plugin-1.5/plugin.jelly
Element... fail
Line.. 148
Column 54
There were test failures.
Total time: 8 minutes 37 seconds
Finished at: Sat Jun 12 11:51:23 CEST 2004

I tried to look at the documentation for jelly, it didn't help.
Can someone give me some hints.
Jestspeed builds if I disable testing

I appreciate any help I can get.
Sincerely 
Max Sjögren

 


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


Re: 2 or more identical portlets on one page

2004-06-03 Thread Vladimir Figurov
Thanks :)
PortletSessionState.setAttribute(portlet, rundata, "currPage",""+currPage);
...
...
PortletSessionState.getAttribute(portlet, rundata, "currPage");
==
it's working very well !!! it's cool !

David Sean Taylor wrote:
On Jun 3, 2004, at 4:18 AM, Vladimir Figurov wrote:
2 or more identical portlets on one page - how to do independent 
their condition?
Only through session.setAttribute()? Or in the object portlete it is 
possible to remember his current condition?
portlet.setAttribute("currPage",""+currPage, rundata);  - not working 
:-(

Recommend looking at o.a.j.util.PortletSessionState for managing 
session state on a per portlet instance basis

I originally misunderstood your question, and thought you were asking 
about portlet instances.
Here is my original response, which I was about to erase, then thought 
it might be useful to someone anyway:

Jetspeed-1 has the concept of a Portlet Instance (or entity).
// from a portlet
PortletInstance instance = this.getPortletInstance(rundata);
instance.getAttribute(name);
The portlet's getAttribute actually gets the instance, so amounts to 
the same as above

Finally,
Take a look at PortletSessionState.getAttributeWithFallback which 
attempts to find an attribute in the following:

- request param
- session attribute (from session per instance)
- instance attribute (psml 'instance')
- config param (registry)
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

-
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: Encoding problem

2004-06-03 Thread Vladimir Figurov
look in *.properties & in title xml-tag: 

Floßmann Christoph wrote:
Hi folks!
The jetspeed default encoding is UTF-8 what causes some problems with my portlets (here in Germany we use some letters like üöä) 
How do I change the encoding to ISO-8859-1 by default?

Regards 
Chris

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


2 or more identical portlets on one page

2004-06-03 Thread Vladimir Figurov
2 or more identical portlets on one page - how to do independent their 
condition?
Only through session.setAttribute()? Or in the object portlete it is 
possible to remember his current condition?
portlet.setAttribute("currPage",""+currPage, rundata);  - not working :-(

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


Re: How To insert predefined roles

2004-06-01 Thread Vladimir Figurov
Thanks ;)
Yes, I think about replace HS on MySQL or Oracle, but on 10 - 20 user - 
HS - is simpless & and working ... (it time)

David Sean Taylor wrote:
On Jun 1, 2004, at 2:28 AM, Vladimir Figurov wrote:
How To insert predefined roles (myRole) in jetspeed1.5-src, what they 
would be then in result deployment war?
In \src\sql\external\populate-* ???
- But I not find populate-* for hypersonic DB ;(

With Hypersonic the database script is actually the database.
So you edit the the database scripts under 
webapp/WEB-INF/db/jetspeed.script
If you are doing anything more than a demo system, I don't recommend 
this approach.
Recommend:

1. Start a new project with the Jetspeed Plugin
2. Replace the Hypersonic database with MySQL

-
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: import/include with XSL portlet

2004-06-01 Thread Vladimir Figurov
URI Resolver must be for correct working with import type:

[EMAIL PROTECTED] wrote:
When using the XSLPortlet, is it possible to import/include another XSL 
document with a relative file reference?  I have two XSL documents in my 
WEB-INF/xsl directory (alongside the RSS XSL documents,) one of which 
includes the other with the  element.  The only way I can get 
the import to work correctly is to fully qualify the file name of the 
included XSL document.

Example, the following entries don't work for me:




The following works fine:


Thanks,
Eric Olson
 


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


psml "test" in deployment war - what is it?

2004-06-01 Thread Vladimir Figurov
WEB-INF/test - what is it?
HowTo remove it?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How To insert predefined roles

2004-06-01 Thread Vladimir Figurov
How To insert predefined roles (myRole) in jetspeed1.5-src, what they 
would be then in result deployment war?
In \src\sql\external\populate-* ???
- But I not find populate-* for hypersonic DB ;(

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