473,327 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

html:link paramProperty Problem

I'm having issues with my html:link tag. I've tried this two ways.

1) This gets me to my proper dispatch action with the bean:
[HTML]<html:link forward="editMyInfo"
paramId="<%=BeanNames.MY_BEAN_ID%>"
paramName="myBean">Edit</html:link>[/HTML]

2)This also gets me to my proper dispatch action without the bean, and without the id:
[HTML]<html:link forward="editMyInfo"
paramId="<%=BeanNames.MY_BEAN_ID%>"
paramName="myBean"
paramProperty="id">Edit</html:link>[/HTML]

My forward tag in struts config is:
[HTML]<forward name="editMyInfo" path="/secure/editMyInfo.do?dispatch=edit"/>[/HTML]

I do notice the following -

For example 1 the generated html is:
[HTML]<a href="/mywebsite/research/secure/editMyInfo.do?dispatch=edit&myBean=com.mywebsite.s truts.research.primate.gorilla.MyBean%401563e06">E dit</a>[/HTML]


For example 2 the generated html is:
[HTML]<a href="/mywebsite/research/secure/editMyInfo.do?dispatch=edit">Edit</a>[/HTML]

What I want is to get to my dispatch action (edit) with just the id stored in the bean, and not the whole bean. Can anyone tell what I'm doing wrong?


After beating my head against the wall I discoverd that in one my test case where I declared bean1, bean2, and bean3 I was setting bean1 3 times.

Let's hear if for copy and paste mistakes. WooooHooooo!!
Jul 31 '07 #1
0 1571

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: crispy | last post by:
Hello group, I'm again having trouble putting ASP records INSIDE html link. Here's the string I put inside Access field: No room number specified (<a...
2
by: Gordon H. | last post by:
I'm trying to email a HTML link to a HTML file attached in the same message. I DO NOT want to have the attached HTML file displayed in the message, I just want a link in the email to the HTML file...
7
by: olga | last post by:
Hi, On my site, i want to pass a javascript variable to php. I know that this needs to done in a link or in a post. I want to know if there is a way i can do it with an html link. I should...
4
by: Red Ogden | last post by:
Hello - is there any way to create an html link to an xml file and get it to open directly in an XML editor rather than in the browser window? Many thanks in advance. Redge.
7
by: palgrave | last post by:
Hi, How do you create an html link from a web page to a read-only excel spreadsheet without the browser asking if the user wants to open it or save it?
3
by: active | last post by:
I draw text in a bitmap and then draw the bitmap on a picturebox and get text that is not all displayed the same. Note the different text style in the (40, 100) area. Got any insight into...
1
by: Miranhat | last post by:
How do I open a new window from html link with flash in it? In my homepage i want to create a link to open a blank page using javascript with flash in the blank window. I have the flash created...
0
by: jerger | last post by:
I found a great page that reads a language i need in the program... is there anyway to have a clickable or launching html link from my program? all i have is copy/paste. also is there a way i...
2
by: requeth | last post by:
Hey, I havnt done ASP in a long time, and I think I'm forgetting something. I have the following block, and it runs fine s long as the HTML link code isint in, but if I put the code in I get a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.