Hi!
I want to write a JSP portlet in jetspeed,contain two
jsp pages,
input page and result page,

in the input page,key a query condition,such as
:name,then connect
to database and execute the simple sql statement and
output the result to the result page,

the first input page(input.jsp) maybe be displayed
with other portlet output screen,it's code like below:

($jetspeed-home\WEB-INF\templates\jsp\portlet\input.jsp)

.......................................
<html>
<form action='xxxxxxx'>
   <input type='text' name='queryName'>
   <input name="action" type="hidden"
value="QueryAction" />
   <input type='submit' value='query'>
</form> 
</html>
.......................................

after i input,click,i want the result page will be
display within my portlet,but it's in full screen,
with four button
'customize','close','minimize','maxmize',how can i do
for this?

i define the portlet in .xreg file :
**********************************************************************************************************
    <portlet-entry name="InputJSP" hidden="false"
type="ref" parent="JSP" application="false">
        <meta-info>
            <title>InputJSP</title>
            <description>InputJSP</description>
        </meta-info>
        <parameter name="template" value="input.jsp"
hidden="false"/>
        <media-type ref="html"/>
    </portlet-entry>
***********************************************************************************************************
my question is :
1) how should i define the 'xxxxxx' in <form action> 
in input.jsp file? i think it maybe like:
http://localhost:8080/jetspeed/portal?action=controls.Maximize&portlet=InputJSP
how can get  
                        
'action=controls.Maximize&portlet=InputJSP'?
i looked the file
\jetspeed\WEB-INF\templates\vm\controls\html\jetspeed.vm,it's
a Velocity file,and it get 
'action=controls.Maximize&portlet=InputJSP'? 
through 
****************************************************
#foreach ( $action in $actions )
      <a href="${action.Link}" 
#end
******************************************************
but how can i do this in jsp file not a velocity file?

2) where can i define the result page refer to
output.jsp?
 in the 'form' element in input.jsp???or in the .xreg
file?

3)and i think there are only two steps and two pages
in my portlets,
input  --->result ,if i have three or more steps,such
as 
input  --->input ---> result,how do i define 'form
action' in every steps?

4) how do i code the "QueryAction.java",how do i get
database connection?
i think i can write it manully with JDBC,but it seems
that Turbine can
implment
this, how do i use Turbine database connection ?anyone
call tell me?

thanks!

James Wang

Best regards. 
 
James Wang 
------------------------------------ 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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

Reply via email to