Re: href

2003-02-10 Thread Michael Burke
Michael Burke wrote:


I've got a jsp page that iterates through a list of web links, I can
t figure out how to use just the link without it being appended to 
http://localhost...
Here's the page in question:

%@ taglib uri=/bean prefix=bean %
%@ taglib uri=/html prefix=html %
%@ taglib uri=/logic prefix=logic %
%@ taglib uri=/template prefix=template %

br/
html:errors/
br/



  table cellpadding=2 width=80%

 tr
  td
  /td
  td
 bCategories/b
  /td
  /tr

  logic:iterate name=allLinksList
   id=links
   scope=request
   type=linkapp.entity.Links

   tr
   td
a href='bean:write name=links property=url/'
bean:write name=links property=url//a
   /td
/tr

  /logic:iterate

  /table


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


I thought this was an easy question, as I said in my first post when I 
iterate and print a list of hyperlinks the link gets appended to the 
link of my webapp (http://localhost:8080/linkapp) instead of just being 
an independant link. any suggestions would be appreciated.


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



Re: href

2003-02-10 Thread Michael Burke
Michael Burke wrote:


I've got a jsp page that iterates through a list of web links, I can
t figure out how to use just the link without it being appended to 
http://localhost...
Here's the page in question:

%@ taglib uri=/bean prefix=bean %
%@ taglib uri=/html prefix=html %
%@ taglib uri=/logic prefix=logic %
%@ taglib uri=/template prefix=template %

br/
html:errors/
br/



  table cellpadding=2 width=80%

 tr
  td
  /td
  td
 bCategories/b
  /td
  /tr

  logic:iterate name=allLinksList
   id=links
   scope=request
   type=linkapp.entity.Links

   tr
   td
a href='bean:write name=links property=url/'
bean:write name=links property=url//a
   /td
/tr

  /logic:iterate

  /table


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


Sorry for the questions, I realized if I didn't enter a correct address 
(http://www...) it gets appended to my webapp address.


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



href

2003-02-09 Thread Michael Burke
I've got a jsp page that iterates through a list of web links, I can
t figure out how to use just the link without it being appended to 
http://localhost...
Here's the page in question:

%@ taglib uri=/bean prefix=bean %
%@ taglib uri=/html prefix=html %
%@ taglib uri=/logic prefix=logic %
%@ taglib uri=/template prefix=template %

br/
html:errors/
br/



  table cellpadding=2 width=80%

 tr
  td
  /td
  td
 bCategories/b
  /td
  /tr

  logic:iterate name=allLinksList
   id=links
   scope=request
   type=linkapp.entity.Links

   tr
   td
a href='bean:write name=links property=url/'
bean:write name=links property=url//a
   /td
/tr

  /logic:iterate

  /table


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



javascript with a href

2002-10-21 Thread Michael Burke
When I click on the edit, delete  bid  or Accept Bid links in the logic 
tags below nothing happens. Any suggestions why?

% taglib uri=/bean prefix=bean %
% taglib uri=/html prefix=html %
% taglib uri=/logic prefix=logic %
% taglib uri=/template prefix=template %

br/
html:errors/
br/

script language=javascript

 function editOffer() {
  offerList.action = editOffer.do?action=edit;
  offerList.actn.value = edit;
  offerList.submit();
 }

 function deleteOffer() {
  offerList.action = deleteOffer.do;
  offerList.actn.value = delete;
  offerList.submit();
 }

 function acceptBid() {
  offerList.action = acceptBid.do;
  offerList.actn.value = accept;
  offerList.submit();
 }

 function bid() {
  offerList.action = bid.do;
  offerList.actn.value = bid;
  offerList.submit();
 }

/script

form name=offerList

  input type=hidden name=actn/

  table cellpadding=2 width=80%

 tr
   td
   /td
   td
  bUser/b
   /td
   td
  bName/b
   /td
   td
  bDescription/b
   /td
   td
  bExpected Value/b
   /td
   td
  bMax Bid/b
   /td
 /tr   

 logic:iterate name=offerList
   id=offer
   scope=request
   type=auction.entity.Offer

   tr
  bean:define id=offerId name=offer property=offerId/
  td
input type=radio name=offerId checked value=%= offerId %/
  /td
  td
bean:write name=offer property=userId/
  /td
  td   
bean:write name=offer property=name/
  /td
  td
bean:write name=offer property=description/
  /td
  td
bean:write name=offer property=expectedValue/
  /td
  td
bean:write name=offer property=maxBid/
  /td
   /tr

 /logic:iterate

 tr
   td colspan=6 align=center

  logic:equal parameter=actn value=public
input type=text name=bidValue/
nbsp;
a href=javascript:bid()Bid/a
  /logic:equal

  logic:equal parameter=actn value=mine
a href=javascript:editOffer()Edit/a
nbsp;
a href=javascript:deleteOffer()Delete/a
nbsp;
a href=javascript:acceptBid()Accept Bid/a
nbsp;
  /logic:equal

   /td
 /tr
  /table

/form




--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org