× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: JSP question
  • From: Eric Merritt <cyberlync@xxxxxxxxx>
  • Date: Thu, 5 Apr 2001 14:50:58 -0700 (PDT)

Lawrence,

  It looks like your problem is with the JavaScript. I
am sorry but my knowlege in that area is limited at
best. JavaScript is just not stable and crossplatform
enought for any large applications so I ahve not used
it.


--- Lawrence_Tuttle@eogresources.com wrote:
> 
> Eric,
> 
> Thanks, but, I don't seem to communicate my problems
> very well.
> 
> Suppose I have a result set of data displayed in
> html.  One column is a
> radio button.  As I build my table, I build a string
> to act as a URL that
> references a jsp file.
> When one selects a radio button, nothing happens
> except the value is
> assigned the URL string.  At the top to the form, I
> have a gif that, when
> pressed, should ask the browser to retrieve the
> value of the selected radio
> button; that is, the URL that was built as the table
> was built..
> 
> Below is the code that builds my tables.  sQry is
> the URL string (never
> mind the bad variable name).  I want to replace the
> code in red with a
> radio button and place a Edit give at the top of the
> page that will ask the
> browser to retrieve the value of sQry.
> 
>       <table width="61%" border="0">
>         <tr class=blueheading>
>           <td width="8%" height="32">
>             <div align="center"><font
> size="1"><b>Select</b></font></div>
>           </td>
>           <td width="34%" height="32">
>             <div align="center"><font
> size="1"><b>Date
> Received</b></font></div>
>           </td>
>           <td width="34%" height="32">
>             <div align="center"><font size
> ="1"><b>Description</b></font></div>
>           </td>
>         </tr>
> 
>      <%
> 
>      DataInt diObj
> =
>
(DataInt)hcObj.get(PcNameConstants.UNASSIGNED_RESULTS);
>           System.out.println("Post null ");
> 
>           int iSize           = diObj.getRowCount();
>           String sFileTitle       = null;
>           String sCreatedDate     = null;
>           String sFileDescription = null;
>           String sFileID      = null;
> 
>           for (int iLooper=0; iLooper < iSize;
> iLooper++) {
>                sFileTitle =
>
diObj.getItemString(iLooper,PcNameConstants.FILE_TITLE);
>                sCreatedDate =
>
diObj.getItemString(iLooper,PcNameConstants.CREATED_DATE);
>                          sFileDescription =
>
diObj.getItemString(iLooper,PcNameConstants.FILE_DESCRIPTION);
>                     sFileID =
>
diObj.getItemString(iLooper,PcNameConstants.FILE_ID);
> 
>                     String sQry =
> "PcController.jsp?hToPageID=" +
>                PcConstants.PROCESS_DOCS_HEADER + "&"
> +
>                PcNameConstants.FILE_TITLE + "=" +
> sFileTitle +"&"  +
>                PcNameConstants.CREATED_DATE + "=" +
> sCreatedDate + "&" +
>                PcNameConstants.FILE_DESCRIPTION +
> "=" +  sFileDescription +
> "&" +
>                PcNameConstants.FILE_ID + "=" +
> sFileID + "&";
>           %>
> 
> 
>         <tr>
>           <td width="8%">
>             <div align="center"> <font size="1">
>               <a href=<%= sQry %>>
>                <%= sFileID %>
>                </a>
>               </font></div>
>           </td>
>           <td width="34%">
>             <div align="center"><font size="1"><%=
> sCreatedDate %>
> </font></div>
>           </td>
>           <td width="34%">
>             <div align="center"><font size="1"> <a
> href
> ="unassigneddocsb.htm" onClick="MM_openBrWindow
> ('Call%20Center%20Review.doc','','')"
> target="mainFrame"><%= sFileTitle  %>
>               1 </a></font></div>
>           </td>
>         </tr>
>         <tr>
>         <%}%>
>       </table>
> 
> 
> 
>                                                     
>                                                     
>               
>                     Eric Merritt                    
>                                                     
>               
>                     <cyberlync@yahoo.c        To:   
>  JAVA400-L@midrange.com                             
>               
>                     om>                       cc:   
>                                                     
>               
>                     Sent by:                 
> Subject:     Re: JSP question                       
>                      
>                     owner-java400-l@mi              
>                                                     
>               
>                     drange.com                      
>                                                     
>               
>                                                     
>                                                     
>               
>                                                     
>                                                     
>               
>                     04/05/2001 10:21                
>                                                     
>               
>                     AM                              
>                                                     
>               
>                     Please respond to               
>                                                     
>               
>                     JAVA400-L                       
>                                                     
>               
>                                                     
>                                                     
>               
>                                                     
>                                                     
>               
> 
> 
> 
> 
> Lawrence,
> 
>  I am sorry I misunderstood the question. basicaly
> you
> want to use an image as a submit button. That is
> really easy just do as follows :
> 
> <input type="image" name="whatever"
> src="imagelocation">
> 
> This should do it
> --- Lawrence_Tuttle@eogresources.com wrote:
> >
> >  I understand how to pass the values to the page.
> > All I really need to
> > know is how to link the  radio button value to the
> > gif.     The  gif at the
> > top of the form.  There is only one gif.  It is
> like
> > a button.  When
> > pressed, I need to forward the values associated
> > with the select radio
> > button to the next page.  I would like to see some
> > actual syntax.
> >
> >
> >
> >
> >
> >
> >                     Eric Merritt
> >
> >
> >                     <cyberlync@yahoo.c        To:
> >  JAVA400-L@midrange.com
> >
> >                     om>                       cc:
> >
> >
> 
=== message truncated ===


=====
Eric Merritt
Information Systems Consultant
McCormack & Associates, Inc.
Rock Hill, South Carolina
(V) 803-327-3358 X 225
eric@mccinc.com
http://www.mccinc.com/

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.