How to generate Login-error msg?

2002-04-08 Thread Irene Huang

Hello,

Where is the pre-defined error msg if the user has entered the wrong
username/password?
How can I check the username/password and generate a error msg for user to
re-login?


Sincerely,

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Security Problem: Can't "add user" after login as admin

2002-04-04 Thread Irene Huang


Problem solved.
I replaced the files under WEB-INF/db which have been messed up.


-Original Message-
From: Irene Huang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 3:42 PM
To: Jetspeed user
Subject: Security Problem: Can't "add user" after login as admin


I login as admin, and click "Add User" in  "Security"-> "User Browser"
After I filled in the user info, click "Add User", it gave me the Horrible
exception:

Where should I look to fix add user? JR.p?
I tried to add user ccd and in db/Jetspeed.scripts:

SET AUTOCOMMIT TRUE
/*C2*/INSERT INTO TURBINE_USER
VALUES(400,'ccd','beta','ccd','ccd','[EMAIL PROTECTED]','CONFIRMED',NULL,NULL,'200
2-04-03
15:03:02.114','aced0005737200136a6176612e7574696c2e486173687461626c6513bb0f2
5214ae4b803000246000a6c6f6164466163746f724900097468726573686f6c6478703f4
07708000178')
INSERT INTO TURBINE_USER_GROUP_ROLE VALUES(400,1,1)
DELETE FROM TURBINE_USER_GROUP_ROLE WHERE USER_ID=400 AND GROUP_ID=1 AND
ROLE_ID=1
DELETE FROM TURBINE_USER WHERE USER_ID=400



Horrible Exception: java.lang.reflect.InvocationTargetException:
org.apache.jetspeed.om.profile.ProfileException:
org.apache.turbine.util.security.UnknownEntityException: Unknown user
'turbine'
at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.createProfile(
JetspeedProfilerService.java:704)
at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.createProfile(
JetspeedProfilerService.java:190)
at org.apache.jetspeed.services.Profiler.createProfile(Profiler.java:162)
at
org.apache.jetspeed.services.security.JetspeedDBSecurityService.addUser(Jets
peedDBSecurityService.java:225)
at
org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.java:
127)
at
org.apache.jetspeed.modules.actions.portlets.security.UserUpdateAction.doIns
ert(UserUpdateAction.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityA
ctionEvent.java:166)
at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.perform(V
elocityPortletAction.java:116)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:143)
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:565)
at org.apache.turbine.Turbine.doPost(Turbine.java:655)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:403)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1046)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1001)
at org.mortbay.http.HttpServer.service(HttpServer.java:697)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:148)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
at java.lang.Thread.run(Unknown Source)

Regards,

Irene


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




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




Security Problem: Can't "add user" after login as admin

2002-04-03 Thread Irene Huang

I login as admin, and click "Add User" in  "Security"-> "User Browser"
After I filled in the user info, click "Add User", it gave me the Horrible
exception:

Where should I look to fix add user? JR.p?
I tried to add user ccd and in db/Jetspeed.scripts:

SET AUTOCOMMIT TRUE
/*C2*/INSERT INTO TURBINE_USER
VALUES(400,'ccd','beta','ccd','ccd','[EMAIL PROTECTED]','CONFIRMED',NULL,NULL,'200
2-04-03
15:03:02.114','aced0005737200136a6176612e7574696c2e486173687461626c6513bb0f2
5214ae4b803000246000a6c6f6164466163746f724900097468726573686f6c6478703f4
07708000178')
INSERT INTO TURBINE_USER_GROUP_ROLE VALUES(400,1,1)
DELETE FROM TURBINE_USER_GROUP_ROLE WHERE USER_ID=400 AND GROUP_ID=1 AND
ROLE_ID=1
DELETE FROM TURBINE_USER WHERE USER_ID=400



Horrible Exception: java.lang.reflect.InvocationTargetException:
org.apache.jetspeed.om.profile.ProfileException:
org.apache.turbine.util.security.UnknownEntityException: Unknown user
'turbine'
at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.createProfile(
JetspeedProfilerService.java:704)
at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.createProfile(
JetspeedProfilerService.java:190)
at org.apache.jetspeed.services.Profiler.createProfile(Profiler.java:162)
at
org.apache.jetspeed.services.security.JetspeedDBSecurityService.addUser(Jets
peedDBSecurityService.java:225)
at
org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.java:
127)
at
org.apache.jetspeed.modules.actions.portlets.security.UserUpdateAction.doIns
ert(UserUpdateAction.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityA
ctionEvent.java:166)
at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.perform(V
elocityPortletAction.java:116)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:143)
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:565)
at org.apache.turbine.Turbine.doPost(Turbine.java:655)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:403)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1046)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1001)
at org.mortbay.http.HttpServer.service(HttpServer.java:697)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:148)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
at java.lang.Thread.run(Unknown Source)

Regards,

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to disable "pane Customization" ?

2002-04-02 Thread Irene Huang

Hello,

I have successfully disabled user's permission to do any customization for
porlets with specified security tag "user".
However, I still can't disable the "Pane Customization" (the small pencil)
for each of the tab. (I was using layout  "TabPane")
Any idea where I can disable the customization for the layout I choose? (so
the user won't be able to add portlets, change layout/skin)


Please help!


Irene




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to disable "pane Customization" ?

2002-03-28 Thread Irene Huang

Hello,

Anyone know how to remove the little "pencil" at right corner of each pane
if I don't
want to let user customize the layout and skin?


Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




IFrame?

2002-03-27 Thread Irene Huang

Hello,

I was trying to customize the default layout in
"/WEB-INF/templates/vm/layouts/html/default.vm
There were posting about using "IFrame", the "target" attribute will
work with "IFrame" so that I can place the search results in the frame
desired.
However, $screen_placeholder didn't work anymore. The html souce will
show all the portles code, but it didn't show on the browser.
Any idea?
Is there other way to display results within desired portlets/frames without
override the whole screen?



Regards,

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to remove "feed_local.xreg" and "feed_apache.xreg"?

2002-03-25 Thread Irene Huang

Hello,

I have tried to delete feed_local.xreg and feed_apache.xreg, but they would
be
generated again after I restart jetspeed.
Any idea about how to remove these two files / where can we modify the
source?



Regards,
Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Please help!! $screen_placeholder in layout\default.vm ?

2002-03-19 Thread Irene Huang

Hello,

with 
the form will display at the place of  " $screen_placeholder" (and the
top.vm will not be replaced by the results.)
If this is correct,

when I call a servlet in
\web-inf\templates\vm\navigations\html\top.vm,
is there a way I can display my result  in the place of  "left.vm" (where
all the portlets display)
without directing the results to a whole new page?

Or can I set up a frameset in default.vm and use  etc...to
direct my results to the specified frame? Will frame mess up jetspeed's
default structure?



Irene



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




General questions about the looks of portlets

2002-03-19 Thread Irene Huang

Hi,

I am new to velocity but I need to modify the looks of Jetspeed portlets.

for example:

in /WEB-INF/templates/vm/contols/jetspeed.vm
#if (${skin.TitleBackgroundColor})
  #set ($portletStyle="border-color: ${skin.TitleBackgroundColor}")
#end

in skins.xreg:



Q: How does these setting in jetspeed.vm related to skins.xreg? for example,
what is $portletStyle?
Please explain it in "plain Egnlish"

Q: After I click "Add Portlet", the portlets table shown has 2 different
background colors for each row.
Any idea of how and where to define this kind setting?


Appreciate all of your help.


Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can Admin add/edit/remove user?

2002-03-18 Thread Irene Huang

Paul,


I have tried to login as "admin/jetspeed" and it will return to the same
page after i click on edit/remove/add user.
where is the file that control these functions? (maybe I have deleted needed
classes...)

I can't find the html directory under
/WEB-INF/templates/vm/"html"/hello-customize.vm, (I am using
jetspeed 1.3a2)

The error I got  using $l10n.TOP_EDITACCOUNT
($data.User.UserName) :
HTTP ERROR: 404 Not Found
Could not find resource for /myjetspeed/$link.setAction(

If I only want to add this "edit" function to one of the portlet, and in my
.xreg:
   

Edit User
Edit User

/html/editUser.vm


I put it under /html, but where should I put my editUser.vm?





Irene

-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:58 PM
To: Jetspeed Users List
Subject: Re: Can Admin add/edit/remove user?




Irene Huang wrote:

> Hello,
>
> For now, can Admin add/edit/remove user?


Yes, in the User browser under the security tab.


> If not, how could I delete the user account that appears in User Browser?
> Has anyone implemented these functions yet?


See above

>
> Also, if I want to implement the Customization in portlet, how should I do
> it?

/WEB-INF/templates/vm/html/hello-customize.vm for the
HelloVelocity portlet)

> I tried to reuse the same link:
> $l10n.TOP_EDITACCOUNT/WEB
-INF/templates/vm/html/hello-customize.vm for the
HelloVelocity portlet)
> ($data.User.UserName)
> But the browser will not be able to find the link.


What was the error message? What did the link evaluate to, i.e.
http://localhost/jespeed/portlet/...?

>
> Any help will be appreciated!
>
> Irene
>


Paul Spencer



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



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




Can Admin add/edit/remove user?

2002-03-18 Thread Irene Huang

Hello,

For now, can Admin add/edit/remove user?
If not, how could I delete the user account that appears in User Browser?
Has anyone implemented these functions yet?

Also, if I want to implement the Customization in portlet, how should I do
it?
I tried to reuse the same link:
$l10n.TOP_EDITACCOUNT
($data.User.UserName)
But the browser will not be able to find the link.

Any help will be appreciated!

Irene



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Page Expired problem when click "back" after login

2002-03-18 Thread Irene Huang

Hello,

After I login jetpeed and click "Back", I got "Warning: Page has Expired".
And I have to click refresh to get to the page.  How should I fix it?


Thank your for the help :)


Irene

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: why i cannot modify local-skin.xreg?

2002-03-15 Thread Irene Huang

Paul,

so we will control the looks of portlets from this file?
/WEB-INF/templates/vm/contols/jetspeed.vm

I see "Set portle style", "Set title style", and "set content style"
Q: could you explain how this works in a little more details? like what is
${skin.TitleBackgroundColor} and $portletStyle="border-color" ? how and
where do I define it?

#if (${skin.TitleBackgroundColor})
  #set ($portletStyle="border-color: ${skin.TitleBackgroundColor}")
#end

Q: How does these setting in jetspeed.vm related to property entry in
skins.xreg?
if in the selected skin entry,




Thanks a lot!!

Irene


-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 1:23 AM
To: Jetspeed Users List
Subject: Re: why i cannot modify local-skin.xreg?


James,
I verified the colors and style where not being set on the  element,
just the , in the title area of jetspeed.vm.

>From /WEB-INF/templates/vm/contols/jetspeed.vm
 ** Current **

   $portlet.Title


 ** Corrected **

   $portlet.Title


I will commit the change shortly.

Paul Spencer

WANG Zheng, James wrote:

> Dear Paul
> I had added a new skin entry like this
>
> 
> 
> 
> 
>  hidden="false"/>
>  hidden="false"/>
>  hidden="false"/>
>  hidden="false"/>
> 
> it seem that  "title-background-color" take effect and become
blue(#FF),
> but "title-text-color" is still black(#00)
> althought i change it to white(#FF),so the title-text is not  clear
> because color blue and black are same in hue.,why
> and how?
>
> and
>  "text-color" value="#FF"
>
> it take effect, text in each pane become red "FF",why?
>
> Best regards.
>
> James Wang
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with rename jetspeed: the portlets can't be shown!

2002-03-14 Thread Irene Huang

Hello,

After I renamed "jetspeed" to "mycopy", I can still login and add the
portlets registered in .xreg, but
no portlets show up.

any idea?


Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to modify the skin? can't change the font color for the table

2002-03-13 Thread Irene Huang

Paul,

I have tried to use style attribute in the  tag, and in the souce code,
it showed 
However, it didn't show the color on the screen.
Then I hard code   in my portlet, it worked!
Is there a rule that I couldn't change the font color ?
(in the default.css, I have deleted the "color" attribute in TD, TR, and
FONT)
Any idea?


Irene



-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 12:29 PM
To: Jetspeed Users List
Subject: Re: How to modify the skin?




Irene Huang wrote:

> Hello,
>
> I want to change the text font, color, backgroud color of the tabs and the
> portlet title bar.
> I have looked into the skin.xreg, but I can't figure out how and where to
> modify  those "style-class".
> Any advice? A simple example will be great help!!
>
>
>
> Q1: where and how to define/modify these style-class?
> for example, in skin.xreg:
> 
>  hidden="false"/>
>  hidden="false"/>
>  hidden="false"/>
>  hidden="false"/>
> 
>  hidden="false"/>
>  hidden="false"/>
> 
>

The "value" refers to a class default.css. As an example property
"tab-content-style-class" uses the following entry from the default.css

 .TabContentStyleClass
 {
   background-color: white;
   border-style: none;
   color: black;
   font-weight: normal;
   padding: 0;
 }

See the jetspeed documentation for more information.
   http://jakarta.apache.org/jetspeed/site/config_skin.html

>
> Q2: I have created a html table in the portlet, but i can't change the
color
> of the row and text. Any idea?
>
Use the bgcolor or style attribute in the , , or  tags


>
>
> Thank you for the advice!
>
>
>
>
> Sincerely,
> Irene
>
>


Paul Spencer



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



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




Rename "Jetspeed" problem

2002-03-13 Thread Irene Huang

Hello,

I tried to have 2 copies of jetspeed running under the \webapps,
but the copied one, "newjetspeed", can't read my portlets in
\webapps\newjetspeed\WEB-INF\classes\myportlet;
instead, it read the original copies.

Q: how do i keep 2 different copies of jetspeed under the same webapps?

Then I deleted the original jetspeed.
I replaced all "jetspeed" with "newjetspeed" in web.xml,
and go to http://localhost/newjetspeed,  the portlets i wrote didn't show up
at all.
( I had the portlets in WEB-INF\classes\myportlet  )

Q: If I only want to change the name of "jetspeed", what should i do?
should i replace all the  from "jetspeed" to "newjetspeed" in
web.xml?

   
  jetspeed
   
   
 /portal/*
   


   
  jetspeed
   
   
 /jetspeed/*
   



Thank you for the help!!



Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to modify the skin?

2002-03-13 Thread Irene Huang

Hello,

I want to change the text font, color, backgroud color of the tabs and the
portlet title bar.
I have looked into the skin.xreg, but I can't figure out how and where to
modify  those "style-class".
Any advice? A simple example will be great help!!



Q1: where and how to define/modify these style-class?
for example, in skin.xreg:











Q2: I have created a html table in the portlet, but i can't change the color
of the row and text. Any idea?



Thank you for the advice!




Sincerely,
Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Added Portlets didn't show up when re-login!!

2002-03-12 Thread Irene Huang

Hello all,

After I add the portles that I choose from the list and re-login, I can only
see the original portles in user's default.psml,  Those portlets I added
when I last login didn't show up.

Is there something wrong with the database access?
Please help!!



Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with Log In after use Microsoft soucesafe ( Horrible Exception: database already in use )

2002-03-12 Thread Irene Huang

David,

Thank you for the help :)
The problem is that sourcesafe made the file read-only.

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 8:33 PM
To: 'Jetspeed Users List'
Subject: RE: Problem with Log In after use Microsoft soucesafe ( Horrible
Exception: database already in use )


> when i try to login. Is there something wrong with the
> database? but I didn't touch the db folder...

Perhaps when SourceSafe checked in your database, it made the file
read-only on the file system.
Do you have to check everything into the source control system?
Its better to routinely backup the database

> Horrible Exception: java.lang.Error: Error in
> BasePeer.initTableSchema(TURBINE_USER): The database is
> already in use by another process

Could it be possible that you another program accessing the Hypersonic
database at this time?
Or perhaps because the files are read-only, this error occurs.



> -----Original Message-
> From: Irene Huang [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 6:15 PM
> To: Jetspeed user
> Subject: Problem with Log In after use Microsoft soucesafe (
> Horrible Exception: database already in use )
>
>
> Hello,
>
> Is there anybody use Microsoft soucesafe? after I check in
> the whole jetspeed folder, compile and run the whole thing
> again, it will give me an Horrible Exception as following
> when i try to login. Is there something wrong with the
> database? but I didn't touch the db folder...
>
> Please help!
>
> Horrible Exception: java.lang.Error: Error in
> BasePeer.initTableSchema(TURBINE_USER): The database is
> already in use by another process
>   at
> org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:232)
>   at
> org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:194)
>   at
> org.apache.turbine.om.security.peer.TurbineUserPeer.(T
> urbineUserPeer
> .java:175)
>   at
> org.apache.turbine.services.security.db.DBUserManager.retrieve
> (DBUserManager
> .java:158)
>   at
> org.apache.turbine.services.security.db.DBUserManager.retrieve
> (DBUserManager
> .java:246)
>   at
> org.apache.turbine.services.security.BaseSecurityService.getAu
> thenticatedUse
> r(BaseSecurityService.java:312)
>   at
> org.apache.turbine.services.security.TurbineSecurity.getAuthen
> ticatedUser(Tu
> rbineSecurity.java:199)
>   at
> org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUs
> er.java:111)
>   at org.apache.turbine.modules.Action.perform(Action.java:87)
>   at
> org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
>   at
> org.apache.jetspeed.modules.actions.JLoginUser.doPerform(JLogi
> nUser.java:161
> )
>   at org.apache.turbine.modules.Action.perform(Action.java:87)
>   at
> org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
>   at org.apache.turbine.Turbine.doGet(Turbine.java:511)
>   at org.apache.turbine.Turbine.doPost(Turbine.java:655)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488)
>   at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler
> .java:403)
>   at
> org.mortbay.http.HandlerContext.handle(HandlerContext.java:1046)
>   at
> org.mortbay.http.HandlerContext.handle(HandlerContext.java:1001)
>   at org.mortbay.http.HttpServer.service(HttpServer.java:697)
>   at
> org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
>   at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
>   at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
>   at
> org.mortbay.http.SocketListener.handleConnection(SocketListene
> r.java:148)
>   at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
>   at
> org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
>   at java.lang.Thread.run(Thread.java:484)
>
>
> Sincerely yours,
>
> Irene
>
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
>



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



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




Problem with Log In after use Microsoft soucesafe ( Horrible Exception: database already in use )

2002-03-11 Thread Irene Huang

Hello,

Is there anybody use Microsoft soucesafe? after I check in the whole
jetspeed folder, compile and run the whole thing again, it will give me an
Horrible Exception as following when i try to login.
Is there something wrong with the database? but I didn't touch the db
folder...

Please help!

Horrible Exception: java.lang.Error: Error in
BasePeer.initTableSchema(TURBINE_USER): The database is already in use by
another process
at org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:232)
at org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:194)
at
org.apache.turbine.om.security.peer.TurbineUserPeer.(TurbineUserPeer
.java:175)
at
org.apache.turbine.services.security.db.DBUserManager.retrieve(DBUserManager
.java:158)
at
org.apache.turbine.services.security.db.DBUserManager.retrieve(DBUserManager
.java:246)
at
org.apache.turbine.services.security.BaseSecurityService.getAuthenticatedUse
r(BaseSecurityService.java:312)
at
org.apache.turbine.services.security.TurbineSecurity.getAuthenticatedUser(Tu
rbineSecurity.java:199)
at
org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:111)
at org.apache.turbine.modules.Action.perform(Action.java:87)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at
org.apache.jetspeed.modules.actions.JLoginUser.doPerform(JLoginUser.java:161
)
at org.apache.turbine.modules.Action.perform(Action.java:87)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at org.apache.turbine.Turbine.doGet(Turbine.java:511)
at org.apache.turbine.Turbine.doPost(Turbine.java:655)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:403)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1046)
at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1001)
at org.mortbay.http.HttpServer.service(HttpServer.java:697)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:148)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
at java.lang.Thread.run(Thread.java:484)


Sincerely yours,

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




PLEASE HELP!! Portlets didn't load!

2002-02-27 Thread Irene Huang

I have Jetspeed1.3a2

I moved all the .jar files from /webapps//WEB-INF/lib
into another directory /lib
I restart server and only the portlets didn' t load.

**ERROR in jetspeed.log**
Exception:  org.apache.jetspeed.portal.PortletException: PortletFactory:
Unable to load class com.bluesunrise.portal.portlets.HelloUserPortlet

Q: Does Jetspeed have its own class loader?

Q: where can I modify the classpath so jetspeed will look into the
/lib where I put all the .jar files?


Thank you for the help!!

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




XSL/XML portlet or servlet?

2002-02-25 Thread Irene Huang

Hi,

I am using Jetspeed1.3a2, and I need to use xsl to transform xml into html
to display my searching result.

Goal: have several servlets/portlets on same page without refresh all
servlets/portlets when doing another new search

my servlet:
try{
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new
StreamSource("http://localhost:9090/jetspeed/xsl/i.xsl";));
transformer.transform(new
StreamSource("http://localhost:9090/jetspeed/xsl/i.xml";), new
StreamResult(out));

} catch(Exception e) { e.printStackTrace();}

Q: How should I get the same result but using portlet API? Will it be better
than servlet?

Q: There's a few xsl file in /WEB-INF/xsl
 What is the use? Is there a example related to these xsl files?

Q: I have several servlets on the same page, it will refresh every servlets
every time I click "submit" in one of them.
 Is it possible that I can keep all servlets' result  when I do a new
search in one servlet? (will using portlets solve the problem?)



Thank you for your advice :)



Irene








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




refresh portlet?

2002-02-21 Thread Irene Huang

Hi,

Does anyone know how to make portlets refresh themselves?
I have jetspeed1.3a2.


Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Servlet as a portlet?

2002-02-18 Thread Irene Huang

Ozgur,

I didn't change the FormTest.java, and it is running fine stand-alone.
I think there's something wrong in my step 3, modify the .xreg.
Please check it:

 3. add following in \WEB-INF\conf\xxx.xreg

 

org.apache.jetspeed.portal.portlets.ServletInvokerPortlet

 
 
 
FormTest Servlet
FormTest Servlet
 
 
 
 


Q: how will this find my servlet? through the parameter name="url", which
define in web.xml?


Thank you for the help!

Irene


-Original Message-
From: Ozgur Balsoy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 2:03 PM
To: 'Jetspeed Users List'
Subject: RE: Servlet as a portlet?


Irene,

Test if your servlet is running stand-alone. You should be able to test
it with URL: http://host/jetspeed/FormTest.

Your question:
a) If you define your class, FormTest, in a package called "myfolder"
then the class file must be in /WEB-INF/classes/myfolder, and
in step 2, you need to change the servlet-class to:


myfolder.FormTest


b) If you want to change the URL of your servlet to, say,
/myservlets/FormTest, then you need to change the url-pattern in step 2
to


/myservlets/FormTest


and change your servlet entry so it reflects the change:



a) and b) do not depend on each other because of the servlet mappings in
web.xml.

Did you change FormTest.java file? If so, you can send it to me. I can
take a look at it.

Ozgur

> -----Original Message-
> From: Irene Huang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 9:43 PM
> To: Jetspeed user
> Subject: Servlet as a portlet?
>
> Hello,
>
> I was tring to add a servlet to work as a portlet in Jetspeed 1.3a2
(don't
> really know how to write a portlet..)
> I can see it on the portlet list. But after I click add portlet, the
> portlet
> didn't show up.
>
> ***Here are my steps, please take a look:***
>
> 1. put the "FormTest.class" in /WEB-INF/classes/
>
> Q: Can I create a folder "Servlet" and put my servlet class there?
> If I did, What will be the needed modification in step 2 and 3?
>
>
> 2. add following in /WEB-INF/web.xml
>
>   
>   FormTest
>   
>   
>   FormTest
>   
> 
>   
>   
>   FormTest
>   
>   
>   /FormTest
>   
> 
>
> 3. add following in \WEB-INF\conf\xxx.xreg
>   application="false">
>
>
> org.apache.jetspeed.portal.portlets.ServletInvokerPortlet
> 
> 
>parent="Servlet" application="false">
> 
> FormTest Servlet
> FormTest Servlet
> 
>
> 
> 
>
>
> Thank you for your help!!
>
>
> Irene
>
>
> --
> To unsubscribe, e-mail:   <mailto:jetspeed-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:jetspeed-user-
> [EMAIL PROTECTED]>



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




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




Servlet as a portlet?

2002-02-15 Thread Irene Huang

Hello,

I was tring to add a servlet to work as a portlet in Jetspeed 1.3a2 (don't
really know how to write a portlet..)
I can see it on the portlet list. But after I click add portlet, the portlet
didn't show up.

***Here are my steps, please take a look:***

1. put the "FormTest.class" in /WEB-INF/classes/

Q: Can I create a folder "Servlet" and put my servlet class there?
If I did, What will be the needed modification in step 2 and 3?


2. add following in /WEB-INF/web.xml
   

FormTest


FormTest


  

FormTest


/FormTest



3. add following in \WEB-INF\conf\xxx.xreg
 

org.apache.jetspeed.portal.portlets.ServletInvokerPortlet




FormTest Servlet
FormTest Servlet

   




Thank you for your help!!


Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




XSL portlet example?

2002-02-14 Thread Irene Huang

Hi,

Has anyone tried to use xsl portlet?
If there's any online resource with more details about it, please post it.

Thank you so much!!


Irene

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




PLEASE HELP: Question about jetspeed/index.jsp

2002-02-13 Thread Irene Huang

Can someone please explain how this line work in \index.jsp?



This should forward user to the default homepage of jetspeed, but it only
showed the souce code in my browser.
Is there anotherway I can access the default page or how should I check my
configuration?



Thank you for the help!

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Can't load the default homepage!!

2002-02-12 Thread Irene Huang

Dear all,

After I go to http://localhost:9090/jetspeed, the default home page didn't
show up..
it only showed, which is the code of jetspeed\index.jsp:




I could load other jsp/html file and they displayed fine.
Is there something missing in my xml file?
I have jetspeed1.3a2, jetty 1.3.2, and winXP

jetty.xml 

 
/
/servlet/*
/docroot/
TRUE

   JSP

*.html,*.htm,*.jsp,*.jsP,*.jSp,*.jSP,*.Jsp,*.JsP,*.JSp,*.JSP
  org.apache.jasper.servlet.JspServlet
 

   
 index.jsp
   
 
  

  

  /_mm_dd.request.log
  90
  true
false
  dd/MMM/:HH:mm:ss

  


  
/jetspeed/*
 /webapps/jetspeed

/etc/webdefault.xml
false 
  




/soap/*
/webapps/soap
/etc/soap.web.xml
false



/soap/*
/soap/
TRUE
TRUE



/soap/admin/*
/soap/admin/
/soap/admin/
TRUE


JSP
/soap/admin/*.jsp
org.apache.jasper.servlet.JspServlet

TRUE






Thank you for all kinds of idea!!

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can I use Jetty instead of Tomcat for Jetspeed?

2002-02-12 Thread Irene Huang

Chris,

You are awesome!!!
After I took out the extra jar files, it worked!

Thank you for the patient of helping out the newbie~!


Irene
-Original Message-
From: Chris Kimpton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:10 AM
To: Jetspeed Users List
Subject: RE: Can I use Jetty instead of Tomcat for Jetspeed?


Hello Irene,

--- Irene Huang <[EMAIL PROTECTED]> wrote:
> -
> I use Jetspeed 1.3a2, Jetty3.1.5, win XP,
> I followed the same set up instruction for Tomcat, and copied most
> of the
> jar file in jetspeed\lib to jetty\lib
> and set up the classpath in jetty.bat.
> but I put the Jetspeed folder(files deployed from jetspeed.war)
> under
> \webapps into \webapps
> Then I started Jetty, go to http://localhost:8080/jetspeed but it
> keeps
> loading forever...it just stuck ( I can still click to go other
> links on
> Jetty's default page)
> Is there something wrong for where I put the jetspeed folder? What
> and where
> exactly I need to put the Jetspeed so I can access it with Jetty?

I suggest you follow my instructions that I previously posted -
obviously something that you are doing is causing a problem - perhaps
because you put all the jetspeed jars into the jetty lib or did not
add the correct entry into the jetty demo.xml.

> -
>
>
> I built the 'install' target in ant and then pointed Jetty at the
> webapp, as follows:
>
> I added a webApp context into the default demo.xml file like this:
>
>
>   
> /jetspeed/*
>
>
F:\cvslocal\jakartarw\jakarta-jetspeed\bin\webapp\jetspeed
>  default="."/>/etc/webdefault.xml
> false 
>   
>
>
> ---
> I add the same thing in /etc/demo.xml
> but I have \webapps\jetspeed 

fine.

> (I couldn't find a similiar dir like urs.)


Note the F:\ directory is where I have jetspeed installed - this will
change depending on how you have configured your system.


>
> Is there someting wrong? I couldn't find webapp\jetspeed under
> \bin.

If you build the "install" target, then it creates the
webapp\jetspeed directory etc.


Just follow the steps from the earlier reply and if you get a
different thing happening, then let us know which step and what is
different and anything of note about the earlier steps.

In summary:

build the "install" target of jetspeed

copy xerces/xalan jars only into the jetty lib and add to its
classpath

add the WebApp entry into the jetty configuration file

start jetty.

HTH,
Chris

=
Need somewhere to Live in London? - Then go to http://freeflats.com

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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



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




RE: Can I use Jetty instead of Tomcat for Jetspeed?

2002-02-08 Thread Irene Huang

Thank you for the link, I have download turbine-2.2b1.jar
and set classpath in jetty.bat as:
set CP=%CP%;%JETTY_HOME%\lib\turbine-2.2b1.jar

rebuild use Ant
restart jetty

Howerver it still didn't work.
Is there any more details about how to set up jetspeed with jetty?


Irene


-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 5:58 PM
To: Jetspeed Users List
Subject: RE: Can I use Jetty instead of Tomcat for Jetspeed?


Others have tried Jetspeed with Jetty.
Search the Jetspeed mailing lists:

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
jetspeed-dev_jakarta_apache_org&restrict=&exclude=&words=jetty

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
jetspeed-user_jakarta_apache_org&restrict=&exclude=&words=jetty


> -Original Message-
> From: Irene Huang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 5:14 PM
> To: Jetspeed user
> Subject: Can I use Jetty instead of Tomcat for Jetspeed?
>
>
> Is there anyone familiar with Jetty? I have tried to run Jetspeed with
> Jetty, but I couldn't get it to work.
> Any advice? Or everyone is using Tomcat?
>
>
>
> Irene
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>



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




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




Can I use Jetty instead of Tomcat for Jetspeed?

2002-02-08 Thread Irene Huang

Is there anyone familiar with Jetty? I have tried to run Jetspeed with
Jetty, but I couldn't get it to work.
Any advice? Or everyone is using Tomcat?



Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Attn: Ozgur RE:Q:Servlets and Database search in Jetspeed

2002-02-04 Thread Irene Huang

Ozgur,

I've followed your instructions, after I click "add" portlet, the
"FormTestDemo" appeared in the customize pane.
After I click "Save&Apply", all the portlets still there but the
"FormTestDemo" didn't show up.
any idea?

thank you for quick reply :)

Irene


-Original Message-
From: Ozgur Balsoy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 5:05 PM
To: 'Jetspeed Users List'
Subject: RE: Attn: Ozgur RE:Q:Servlets and Database search in Jetspeed


Irene,

1) The portlet entry for my test servlet should be similar to this:


org.apache.jetspeed.portal.portlets.ServletInvokerPortlet
   



FormTest Demo
FormTest Demo





2) Add these entries to your jetspeed\WEB-INF\web.xml file:



formtest


FormTest





formtest


/formtest



3) Put FormTest.class file into WEB-INF\classes if you have no package
name for it. If you have a package name, it must be put properly, and
the servlet entry in web.xml must reflect that.

4) Restart Tomcat.

Let me know if these fail.

Ozgur

-Original Message-
From: Irene Huang [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 3:14 PM
To: Jetspeed Users List
Subject: Attn: Ozgur RE:Q:Servlets and Database search in Jetspeed

Ozgur,

I've tried the attached servlet sample you post, but I still couldn't
run it
as a portlet.
my steps:

1. add this into one of my .xreg:


Servlet Testing again

com.bluesunrise.portal.portlets.FormTest



2. put the class file of this servlet in
\WEB-INF\classes\com\bluesunrise\portal\portlets
3. Start Tomcat, Log in, and try to add portlet

but when I try to add this servlet after I click "save & apply", the
portlets all disappear.
Can you tell me the steps to make this servlet running as a Jetspeed
portlet?
Where should I put the class file of this servlet at?
Do I need to modify this web.xml file? //jetspeed/WEB-INF/web.xml


Thank you for help!!

Irene




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



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




Attn: Ozgur RE:Q:Servlets and Database search in Jetspeed

2002-02-04 Thread Irene Huang

Ozgur,

I've tried the attached servlet sample you post, but I still couldn't run it
as a portlet.
my steps:

1. add this into one of my .xreg:


Servlet Testing again

com.bluesunrise.portal.portlets.FormTest



2. put the class file of this servlet in
\WEB-INF\classes\com\bluesunrise\portal\portlets
3. Start Tomcat, Log in, and try to add portlet

but when I try to add this servlet after I click "save & apply", the
portlets all disappear.
Can you tell me the steps to make this servlet running as a Jetspeed
portlet?
Where should I put the class file of this servlet at?
Do I need to modify this web.xml file? //jetspeed/WEB-INF/web.xml


Thank you for help!!

Irene

-Original Message-
From: Ozgur Balsoy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 9:34 AM
To: 'Jetspeed Users List'
Subject: RE: Q:Servlets and Database search in Jetspeed


Actually, it is quite simple to keep the page within the portlet. Just
put the Jetspeed's path to the action field of the form. However, this
prevents you to link your form's action to another servlet. That is you
have to print out your form with your servlet and you have to process
the response with the very same servlet. I paste a small example to
illustrate the idea and this works fine.

The reason for this method is that Jetspeed is run by a central servlet
which is called 'jetspeed' in jetspeed/WEB-INF/web.xml and mapped to the
Java class org.apache.turbine.Turbine. This servlet retrieves the
request and response objects, initializes a new similar object called
rundata and and fills it with request, response, user profiler, etc and
forwards it to all the portlets.

When you set the action field to the main portal path, this Turbine
servlet acts like a mother servlet and passes your request and response
object to your child servlet.

Ozgur

--FormTest.java-
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class FormTest extends HttpServlet {
private static final String CONTENT_TYPE = "text/html";
//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();

String path = request.getContextPath() +
request.getServletPath();

out.println("FormTest");

if( request.getParameter("x_login") == null ) {
out.println("");
out.println("Username:");
out.println("Password:");
out.println("");
} else {
out.println("You have logged in as ");
out.println( request.getParameter("x_username") );
out.println("and your password is ");
out.println( request.getParameter("x_password") );

out.println("Click here for the
form");
}
out.println("");

}
//Process the HTTP Post request
public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
doGet( request, response );
}
}

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 12:27 AM
To: Jetspeed Users List
Subject: Re: Q:Servlets and Database search in Jetspeed


- Original Message -
From: "Irene Huang" <[EMAIL PROTECTED]>
To: "Jetspeed user" <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 4:39 PM
Subject: Q:Servlets and Database search in Jetspeed


> Dear all,
>
> If I have a JSP portlet, and I have a form:
>
> http://localhost:8080/examples/servlet/Dtest";>
>
> Q:
> after click submit, i will go to the servlet page.
> Is there a way i can display the result in the same page (without
going to
> the servlet page)?
> Or what's the "exact link path" that I could add to the servlet page
so
that
> user can click back to go to the starting page?
>

Im not sure if I understand the question, but I think you are trying to
always keep the servlet in the portlet window as you navigate thru the
servlet.

If so, you may need to somehow track the state of your session between
your
portlet and the servlet it is 'hosting'.
One simple way is to write the state into a query param or directly into
the
HTML(into an INPUT)
A more complex way would be to completely proxy the whole session
Also, you will also need to rewrite your links (something like in the
WebPagePortlet, but you want to rewrite back to Jetspeed)

> Q:
> If I want to add a portlet for user to do database search, what is the
> best/easist way 

Q:Servlets and Database search in Jetspeed

2002-02-01 Thread Irene Huang

Dear all,

If I have a JSP portlet, and I have a form:

http://localhost:8080/examples/servlet/Dtest";>

Q:
after click submit, i will go to the servlet page.
Is there a way i can display the result in the same page (without going to
the servlet page)?
Or what's the "exact link path" that I could add to the servlet page so that
user can click back to go to the starting page?

Q:
If I want to add a portlet for user to do database search, what is the
best/easist way to do it? any advice?



Thank you for help!!

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to make a servlet display a message as a portlet

2002-02-01 Thread Irene Huang

Dear all,

How to access a "servlet"?
I compiled the servlet and put the class file in jetspeed/WEB-INF/classes.
and then go to http://localhost:8080/jetspeed/ServletTest

the output:

Apache Tomcat/4.0.1 - HTTP Status 404 - /ServletTest


type Status report
message /ServletTest
description The requested resource (/ServletTest) is not available.

Q: Can someone please explain how to access servlet in Jetspeed? the
directory?
 How and which files that needed to be created/modified?


Thank you lots!!

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




General Question about .vm and .properties files in jetspeed1.3a2

2002-01-28 Thread Irene Huang

Dear all,

This is from \WEB-INF\templates\vm\navigations\html\top.vm




Q: please explain how to define "action", "enctype", input "name" "value".


$l10n.TOP_CREATENEWACCOUNT

Q: please define "$link.setPage("NewAccount")", where is it link to?

Q: what is the "$l10n." in front of "TOP_CREATENEWACCOUNT", how to access
other "predefined" variable in other .properties file?

Q: where do we define all the class? (class="MENUBUTTON"...etc.)?


Thank you so much for the help !!


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




General question about .vm and .properties files in Jetspeed1.3a2

2002-01-28 Thread Irene Huang


Dear all,

This is from \WEB-INF\templates\vm\navigations\html\top.vm




Q: please explain how to define "action", "enctype", input "name" "value".


$l10n.TOP_CREATENEWACCOUNT

Q: please define "$link.setPage("NewAccount")", where is it link to?

Q: what is the "$l10n." in front of "TOP_CREATENEWACCOUNT", how to access
other "predefined" variable in other .properties file?

Q: where do we define all the class? (class="MENUBUTTON"...etc.)?


Thank you so much for the help !!

Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Question: portlets configuration

2002-01-24 Thread Irene Huang

Dear all,

I have Jetspeed1.3a2
when you configurate portlets, how to decide the "parent" for
?

EXAMPLE 1:

/rss/Jetspeed.rss


Q: I can find Jetspeed.rss in /webapps /jetspeed/rss
so the parent will be "RSS", is this correct?

EXAMPLE2:



Stock Portfolio
Stock Portfolio Portlet







Q: Please tell me where to find "CustomizerVelocity"? what's the meaning for
value="portlets.StockQuoteAction" ?



**
Q: Please explain how to decide the value for "parent", the name and the
value for "parameter"?
 If parent="html" what is the actual path for the html file?

Q: what is the basic rule for .xreg and registry.xml? any hints/links?


Thank you all so much!


Irene




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Unable to add "Hello World" portlet following the online instruction

2002-01-21 Thread Irene Huang

Dear all,

SETTING:
I have installed Jetspeed1.3a2 and tomcat 4.0.1.
Also I follow the instructions
http://www.bluesunrise.com/jetspeed-docs/PortletHowTo.htm to
download and un-jar the "how-to-examples.jar", then use "ant deploy" to
build and deploy the
examples to "\jakarta-tomcat-4.0.1-src\catalina".

STEPS & RESULTS:
In order to add the portlet to the registry, the instructions stated that:
1. put your class in the classpath
2. add a reference to your portlet to Jetspeed's Portlet Registry

However, the instructions also stated that they already done both steps when
I built and deployed the examples.

Therefore,
===> I run the Jetspeed, login as "turbine, start the Jetspeed Customizer,
but can't see the "Hello World" portlet showing on the list.

QUESTIONS:
1.  I can't see the "Hello World" portlet showing on the list.
2.  Can someone give me more details (step by step) about how to add the
portlet to the registry if I want to write my own portlet?
3.  Please write out the whole directory instead of .."under
/WEB-INF/classes".  I can't really tell which "/WEB-INF" it should be...



Thank you, and PLEASE HELP!!!


Irene


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Do I have to install Tomcat in order to use Jetspeed?

2002-01-17 Thread Irene Huang

Hello everyone,

Q: Do I have to install Tomcat in order to use Jetspeed?

Please check  my steps:
1. install jetty3.1.5 and jetspeed1.3a2 in window XP
2. copy "jetspeed.war" to "D:..\Jetty-3.1.5\webapps"
3. add the following code into "D:..\Jetty-3.1.5\etc\jetty.xml"

  
/jetspeed/*

/etc/webdefault.xml
  

4. start jetty, open IE 6.0, http://localhost:8080/jetspeed/


HTTP ERROR: 404 Not Found
Could not find resource for /jetspeed/
RequestURI=/jetspeed/

Please let me know if there's something missing for the configuration or I
just simply can't use Jetty.
Thank you~!


Sincerely, Irene



--
To unsubscribe, e-mail:   
For additional commands, e-mail: