Re: html:link tag multiple parameter gotcha!
I don't know if I'm the right person to respond to this since I've only been using Struts a short while, but why can't you access the formbean properties in a scriptlet. The formbean is stored in the pageContext so why can't you do this: % MyFormBean form = pageContext.getAttribute(name or form bean in struts-config.xml, pageContext.REQUEST_SCOPE); Map map = new Map(); map.put(systemCode, form.getSystemCode()); etc % Of course, REQUEST_SCOPE might be SESSION_SCOPE or whatever scope you specify in struts-config.xml. Cory R. Newey [EMAIL PROTECTED] Senior Software Engineer Novell, the leading provider of Net services software [EMAIL PROTECTED] 02/04/03 03:18PM Hi, I have been struggling in vain to use the html:link tag with multiple parameters. I know you're supposed to use a java.util.Map to hold the parameters, since there could be any number of them, but the question is, how do you set up this map within a scriptlet when you can't access formbean properties from scriptlets??! It so happens I am in a loop, and want to pull in two parameters, one of which is a property of the bean being iterated over in the loop. I want to do something like: logic:iterate name=systemForm property=subSystems id=subSystem tr tdbean:write name=subSystem property=systemCode //td tdbean:write name=subSystem property=shortName //td tdbean:write name=subSystem property=longName //td td % Map map = new Map(); * impossible part coming up *** map.put(systemCode, bean:write name=systemForm property =systemCode/); map.put(systemCode, bean:write name=subSystem property=systemCode /); * end impossible part ** % html:link href=editSubSystemPrepare.do paramName =mapEdit/html:link /td /tr /logic:iterate I have searched many times and found no answer to this problem. Help!! Thanks, Andrew Broderick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link tag multiple parameter gotcha!
At end. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] I have been struggling in vain to use the html:link tag with multiple parameters. I know you're supposed to use a java.util.Map to hold the parameters, since there could be any number of them, but the question is, how do you set up this map within a scriptlet when you can't access formbean properties from scriptlets??! It so happens I am in a loop, and want to pull in two parameters, one of which is a property of the bean being iterated over in the loop. I want to do something like: logic:iterate name=systemForm property=subSystems id=subSystem tr tdbean:write name=subSystem property=systemCode //td tdbean:write name=subSystem property=shortName //td tdbean:write name=subSystem property=longName //td td % Map map = new Map(); * impossible part coming up *** map.put(systemCode, bean:write name=systemForm property =systemCode/); map.put(systemCode, bean:write name=subSystem property=systemCode /); * end impossible part ** % html:link href=editSubSystemPrepare.do paramName =mapEdit/html:link /td /tr /logic:iterate I have searched many times and found no answer to this problem. Help!! First of all, the id attribute of logic:iterate specifies the name of the scriptlet variable to create to hold the value. You can then reference that scriptlet variable in a scriptlet inside the loop. Your code which is creating the map properties is confusing. I'm not sure what you meant to do, as you're trying to use the same key for both entries. In any case, your second parameter to map.put() would just be: subSystem.getSystemCode().toString() (The .toString() might be unnecessary.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link tag
Easiest way to pass multiple parameters on a html link. Use the standard anchor tag. eg: a href=SomeAction.do?empid=bean:write name=myForm property=%=\emp[\+i+\].empId\%/salary nce=bean:write name=myForm property=%=\empList[\+i+\].salary\%/ Here the myForm should have indexed getters for empBean Clas MyForm(){ List empList = new ArrayList(); getEmp(int index){ while(empList.size index){ empList.add(new EmpBean()); } return (EmpBean)empList.get(index); } } Very, very ugly but works just fine! I think the struts way(using map)is not very easy alwqys... -Original Message- From: garyd [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 3:44 AM To: struts-user Cc: garyd Subject: html:link tag Anyone know if/how to add multiple query parameters using this tag? ie: www.myserver.com/foo.jsp?id=1bar=2... Thanks, Gary -- 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: html:link tag
I agree, the Map method isn't very straight forward for simply adding 2-3 params to the link. The only thing to remember with the traditional method is to encode the parameters. Thanks, Gary -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 12:24 AM To: [EMAIL PROTECTED] Subject: RE: html:link tag Easiest way to pass multiple parameters on a html link. Use the standard anchor tag. eg: a href=SomeAction.do?empid=bean:write name=myForm property=%=\emp[\+i+\].empId\%/salary nce=bean:write name=myForm property=%=\empList[\+i+\].salary\%/ Here the myForm should have indexed getters for empBean Clas MyForm(){ List empList = new ArrayList(); getEmp(int index){ while(empList.size index){ empList.add(new EmpBean()); } return (EmpBean)empList.get(index); } } Very, very ugly but works just fine! I think the struts way(using map)is not very easy alwqys... -Original Message- From: garyd [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 3:44 AM To: struts-user Cc: garyd Subject: html:link tag Anyone know if/how to add multiple query parameters using this tag? ie: www.myserver.com/foo.jsp?id=1bar=2... Thanks, Gary -- 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]
RE: html:link tag
Please read the docs at http://jakarta.apache.org/struts/userGuide/struts-html.html#link. It explains how to set up a Map to provide multiple parameters. Sri -Original Message- From: Damm, Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 9:44 PM To: Struts Users Mailing List Subject: html:link tag Anyone know if/how to add multiple query parameters using this tag? ie: www.myserver.com/foo.jsp?id=1bar=2... Thanks, Gary -- 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: html:link/ tag - multiple query string params
-Original Message- From: Don Najd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 3:50 PM To: [EMAIL PROTECTED] Subject: html:link/ tag - multiple query string params html:link page=page.jspTasks/html:link in a tag like this on.. how can I add the equvilent of: a href=page.jsp?day=%=Calendar.DAY_OF_MONTH%month=%=Calenda r.MONTH%Tas ks/a the html:link/ tag wont let me embed %=statments% like the anchor tag does? First of all, if you use an rtexprvalue for an attribute value, it has to be the ENTIRE attribute value. You can't have part of it be static and the rest be in the scriptlet. You could also use the documented attributes of the html:link tag to specify a Map object containing your request parameters and values. It might also be worthwhile to consider using the JSTL and Struts-EL, as the c:url tag allows nested elements to specify multiple request parameters. You could then use the resulting value as the EL value of the html:link href attribute. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: html:link/ tag - multiple query string params
Try this: html:link href='%=page.jsp?day= + Calendar.DAY_OF_MONTH + month= + Calendar.MONTH %' Tasks /html:link you may have to change the month to amp; month. - Original Message - From: Don Najd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 6:49 PM Subject: html:link/ tag - multiple query string params html:link page=page.jspTasks/html:link in a tag like this on.. how can I add the equvilent of: a href=page.jsp?day=%=Calendar.DAY_OF_MONTH%month=%=Calendar.MONTH%Tas ks/a the html:link/ tag wont let me embed %=statments% like the anchor tag does? Thanks, Don -- 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: html:link .../ Tag Confusion
Change html:link page=/traveldetails.jsp ... to html:link href=/traveldetails.jsp ... or you could use html:link forward=oneof.your.global-forwards ... This being the better form as it will call your action class. Joe -Original Message- From: Christian Nelson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 28 August 2002 5:09 PM To: [EMAIL PROTECTED] Subject: html:link .../ Tag Confusion Greetings, I'm new to struts and would like to start off by saying it's an absolute joy to work with. I'm creating a new dynamic home page as a pet project, and will soon start developing a real commercial system using struts. Great work guys!!! I have a question however, and I can't figure out what's going wrong despite reading the various documents out there. I recently switched to using html:link tags from a href/a, and am having some trouble with adding dynamic parameters. Here is the error I'm getting: javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of forward, href, or page at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:490) at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:350) ... at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125 ) at java.lang.Thread.run(Thread.java:536) Here are some code snippets from the page that's causing me grief: logic:iterate id=trip type=cnelson.beans.travel.TravelData collection=%=cnelson.beans.travel.TravelService.tripDetails(orderCode)% html:link page=/traveldetails.jsp paramId=id paramName=trip paramProperty=id%=trip.getTitle()%/html:link There is obviously a ton of other stuff in the file, but those two lines are most important. The first shows where the trip bean is created, and the second is where I'm getting my problem. I have attached the complete page source for those who need it. It's important to note that the url that is generated looks correct on the screen when i mouse over it (http://localhost:8081/traveldetails.jsp?id=1), it's just when I click on it that it blows up and I get the above exception. Also, the link worked correctly before when I was using a href instead of html:link. I switched to the lattre because it offered the 'page' mode which helped me deal with relative paths. I'm clearly only using one of the three modes, page, so the exception confuses me. Any ideas on what I'm doing wrong... your help is greatly appreciated. Cheers, Christian --- Christian 'xian' Nelson [EMAIL PROTECTED] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Don't ask yourself what the world needs. Ask yourself what makes you come alive, and go do that, because what the world needs is people who have come alive. -- Howard Thurman --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
feedback loop (NOT Re: html:link .../ Tag Confusion)
Oh, great, it's happening here, too. Where next? Not a great way to advertise, if any of you guys at basebeans.com are reading. Subject: html:link .../ Tag Confusion [snipped] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: feedback loop (NOT Re: html:link .../ Tag Confusion)
On Wed, 2002-08-28 at 08:40, Joel Rees wrote: Oh, great, it's happening here, too. Where next? Not a great way to advertise, if any of you guys at basebeans.com are reading. I don't think b**ching about it is going to be very productive either (or good advertisement for the struts-user mailing list), it's not like we've been spammed or anything - there have only been a few extra messages so far. Everyone has technical problems from time to time - don't tell me you're perfect ;) -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.com --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: feedback loop (NOT Re: html:link .../ Tag Confusion)
nah mate not bitchin about it. Was just wondering what was happening. I guess basebeans echoes these mailing lists for some reason, and somehow the original lists are now getting included in the echo... (though surely that would result in an 'amusing' infinite loop rather then the single extra postings that are occuring so perhaps thats not the case eh?) -Original Message- From: Cliff Rowley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 15:42 To: Struts Users Mailing List Subject: Re: feedback loop (NOT Re: html:link .../ Tag Confusion) On Wed, 2002-08-28 at 08:40, Joel Rees wrote: Oh, great, it's happening here, too. Where next? Not a great way to advertise, if any of you guys at basebeans.com are reading. I don't think b**ching about it is going to be very productive either (or good advertisement for the struts-user mailing list), it's not like we've been spammed or anything - there have only been a few extra messages so far. Everyone has technical problems from time to time - don't tell me you're perfect ;) -- Regards --- Cliff Rowley| [EMAIL PROTECTED] Software Engineer | www.doctype.co.uk +44 (0) 1206 514263 | www.cliffrowley.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: html:link .../ Tag Confusion
At 03:40 pm 28-08-2002, you wrote: Change html:link page=/traveldetails.jsp ... to html:link href=/traveldetails.jsp ... or you could use html:link forward=oneof.your.global-forwards ... This being the better form as it will call your action class. Joe Be careful that using html:link forward=forwardToAction will not setup the sub-application context correctly. Therefore, you should not use it in subapps. -- John Yu Scioworks Technologies e: [EMAIL PROTECTED] w: +(65) 873 5989 w: http://www.scioworks.com m: +(65) 9782 9610 Scioworks Camino - Don't develop Struts Apps without it! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:link tag question
Try this: bean:define id=linkParam name=myObject property=Link type=java.lang.String/ html:link href=%=linkParam% bean:write name=myObject property=item/ /html:link The bean:define tag defines a page scope bean so that it can be accessed in JSP expressions. I don't think you need the type attribute, but I put it anyway for clarity. cheers, Joe Barefoot -Original Message- From: Parmar, Deepak [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 4:15 PM To: Struts Users Mailing List Subject: html:link tag question I would like to display href from my object. html:link href=??? bean:write name=myObject property=item/ /html:link MyObject has item and Link property and I would like to put Link value at ??? in above example. Deepak -- 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: html:link tag question
wut abt this: a href='bean:write name=myObj property=link/'bean:write name=myObj property=item/ /a ? (i often use like this way ) - Original Message - From: Parmar, Deepak [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 8:15 AM Subject: html:link tag question I would like to display href from my object. html:link href=??? bean:write name=myObject property=item/ /html:link MyObject has item and Link property and I would like to put Link value at ??? in above example. Deepak -- 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: html:link Tag and Actions
Try html:link page=/testFinishReason.do Tim. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 8:37 PM To: [EMAIL PROTECTED] Subject: html:link Tag and Actions I have searched the archive, and read through the documentation but I can't seem to find how to set my html:link tag to point to an Action class. Here are some code examples... Using the html:form/ block I can get the proper action when the submit button is pressed. ...snip... html:form action=/testFinishReason table border=0 width=100% tr td align=right html:submit property=submit value=Submit/ /td td align=left html:reset/ /td /tr /table /html:form ...snip... However, when I try coding it with the html:link/ block like this: html:link page=/testFinishReasonbean:message key=finishReasonTest.testLink//html:link it doesn't work. I've tried page= and forward= with equally bad results. I'm guessing that I need to change my global forward in some way to point at the proper action class so that the forward= would work. But I haven't been successful in figuring out how to code that forward. If anyone could point me in the right direction I would appreciate it very much. best regards, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson -- 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: html:link Tag and Actions
Thanks. I thought I had tried that before, but I must have had a competing error hiding the correctness of that syntax. I'm still new to struts and I guess I don't understand all I know about it yet. =) /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson [EMAIL PROTECTED] 02/26/02 02:41PM Try html:link page=/testFinishReason.do Tim. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 8:37 PM To: [EMAIL PROTECTED] Subject: html:link Tag and Actions I have searched the archive, and read through the documentation but I can't seem to find how to set my html:link tag to point to an Action class. Here are some code examples... Using the html:form/ block I can get the proper action when the submit button is pressed. ...snip... html:form action=/testFinishReason table border=0 width=100% tr td align=right html:submit property=submit value=Submit/ /td td align=left html:reset/ /td /tr /table /html:form ...snip... However, when I try coding it with the html:link/ block like this: html:link page=/testFinishReasonbean:message key=finishReasonTest.testLink//html:link it doesn't work. I've tried page= and forward= with equally bad results. I'm guessing that I need to change my global forward in some way to point at the proper action class so that the forward= would work. But I haven't been successful in figuring out how to code that forward. If anyone could point me in the right direction I would appreciate it very much. best regards, /\/\ark ___ - mark h. nichols - dhsv022 at dhs dot state dot il dot us Ooo. They've got the Internet on computers now. - Homer Simpson -- 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]
Re: html:link Tag
So what's your problem in this. Ravi Kharse wrote: Hi, I need to achieve some thing using struts tag library html:link page=/viewRequestApprovalDetails.do?Index=1 +bean:message key=Details//html:link html:link page=/viewRequestApprovalDetails.do?Index=2 +bean:message key=Details//html:link html:link page=/viewRequestApprovalDetails.do?Index=3 +bean:message key=Details//html:link html:link page=/viewRequestApprovalDetails.do?Index=4 +bean:message key=Details//html:link where Index=1/2/3/4... etc is derived from the for loop. I:e for (int i=0; i 10 ; i++) { html:link page=/viewRequestApprovalDetails.do?Index=i +bean:message key=Details//html:link } Your help is appreciated Thanks Ravi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --H P-- - i n v e n t - https://ecardfile.com/id/kicha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HTML:link tag
When I change my code from html:cancel to html:button I get the following error: html:button onclick=location.href='/NASApp/timetracker/mainMenu' bean:message key=button.done styleClass=inputButtonNormal / /html:button I would leave this as html:cancel, but the onClick doesn't work. Any ideas? Matt - Original Message - From: Matt Raible [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 1:01 PM Subject: Re: HTML:link tag I have a search page that displays a list of data, it is a jsp that only talks to itself. I'd like to add a done button at the bottom that takes them back to the main menu when they are done. In my JSP, I'd like to put: html:cancel / And map it in my struts-config.xml using: action path=/searchResource forward=/resourceList name=resourceForm scope=request validate=false input=/mainMenu forward name=cancel path=/mainMenu / /action But this does NOT work, so I am looking for a work around using the following: html:button onClick=location.href='/NASApp/appName/mainMenu' And I want to get /NASApp/appName/mainMenu from html:link, rather than hardcoding it into my application. Thanks, Matt - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 10:06 AM Subject: RE: HTML:link tag Matt, Not sure I follow what you are trying to do. Do you want to post some more info...? Cheers, Dave Matt Raible [EMAIL PROTECTED] on 06/26/2001 11:06:02 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: HTML:link tag Does anyone know how to extract the link url using struts, rather than the full a.../a tag? I would like to get a URL from a global-forward for use in a javascript function. Thanks, Matt --- Michael Skariah [EMAIL PROTECTED] wrote: Thanks a million Spencer. -Michael. -Original Message- From: Spencer Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: HTML:link tag %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % *make sure above line is in your jsp page html:link page=/test.do target=_topClick Here/html:link *in order for above line to work you need to set up an action in struts-config.xml ie: !-- Handle actions for /Test -- action path=/Test.do type=com.pfizer.ecms.ws.TestAction /action - Original Message - From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: HTML:link tag
I think you'd have to use an Action class to get the html:cancel / behavior. The action class would call isCancelled(request) to find out if the form was canceled, and then return a forward mapping to the cancel path ex: return (mapping.findForward(cancel)); If you can use html:cancel / (or submit for that matter) without an action class, please let me know. D -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:02 PM To: [EMAIL PROTECTED] Subject: Re: HTML:link tag I have a search page that displays a list of data, it is a jsp that only talks to itself. I'd like to add a done button at the bottom that takes them back to the main menu when they are done. In my JSP, I'd like to put: html:cancel / And map it in my struts-config.xml using: action path=/searchResource forward=/resourceList name=resourceForm scope=request validate=false input=/mainMenu forward name=cancel path=/mainMenu / /action But this does NOT work, so I am looking for a work around using the following: html:button onClick=location.href='/NASApp/appName/mainMenu' And I want to get /NASApp/appName/mainMenu from html:link, rather than hardcoding it into my application. Thanks, Matt - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 10:06 AM Subject: RE: HTML:link tag Matt, Not sure I follow what you are trying to do. Do you want to post some more info...? Cheers, Dave Matt Raible [EMAIL PROTECTED] on 06/26/2001 11:06:02 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: HTML:link tag Does anyone know how to extract the link url using struts, rather than the full a.../a tag? I would like to get a URL from a global-forward for use in a javascript function. Thanks, Matt --- Michael Skariah [EMAIL PROTECTED] wrote: Thanks a million Spencer. -Michael. -Original Message- From: Spencer Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: HTML:link tag %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % *make sure above line is in your jsp page html:link page=/test.do target=_topClick Here/html:link *in order for above line to work you need to set up an action in struts-config.xml ie: !-- Handle actions for /Test -- action path=/Test.do type=com.pfizer.ecms.ws.TestAction /action - Original Message - From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: HTML:link tag
Matt, Not sure I follow what you are trying to do. Do you want to post some more info...? Cheers, Dave Matt Raible [EMAIL PROTECTED] on 06/26/2001 11:06:02 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: RE: HTML:link tag Does anyone know how to extract the link url using struts, rather than the full a.../a tag? I would like to get a URL from a global-forward for use in a javascript function. Thanks, Matt --- Michael Skariah [EMAIL PROTECTED] wrote: Thanks a million Spencer. -Michael. -Original Message- From: Spencer Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: HTML:link tag %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % *make sure above line is in your jsp page html:link page=/test.do target=_topClick Here/html:link *in order for above line to work you need to set up an action in struts-config.xml ie: !-- Handle actions for /Test -- action path=/Test.do type=com.pfizer.ecms.ws.TestAction /action - Original Message - From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: HTML:link tag
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html % *make sure above line is in your jsp page html:link page=/test.do target=_topClick Here/html:link *in order for above line to work you need to set up an action in struts-config.xml ie: !-- Handle actions for /Test -- action path=/Test.do type=com.pfizer.ecms.ws.TestAction /action - Original Message - From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael.
RE: HTML:link tag
this day I installed tomcat with apache using mod_jk. To use struts, the *.do URIs that go to the controller servlet will not be recognized until I add the appropriate handler. To fix this, I must add the following line to the httpd.conf (in my own configuration) file: AddHandler jserv-servlet .do Is this will work with mod_jk or there is another syntax for mod_jk to add a handler ? Thanks Mustapha
RE: HTML:link tag
I found this message to be quite helpful for integrating struts with Tomcat/Apache http://www.mail-archive.com/struts-user@jakarta.apache.org/msg00476.html -Original Message- From: Mustapha Essalihe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:47 PM To: [EMAIL PROTECTED] Subject: RE: HTML:link tag this day I installed tomcat with apache using mod_jk. To use struts, the *.do URIs that go to the controller servlet will not be recognized until I add the appropriate handler. To fix this, I must add the following line to the httpd.conf (in my own configuration) file: AddHandler jserv-servlet .do Is this will work with mod_jk or there is another syntax for mod_jk to add a handler ? Thanks Mustapha
RE: HTML:link tag
Thanks a million Spencer. -Michael. -Original Message- From: Spencer Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: HTML:link tag %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % *make sure above line is in your jsp page html:link page=/test.do target=_topClick Here/html:link *in order for above line to work you need to set up an action in struts-config.xml ie: !-- Handle actions for /Test -- action path=/Test.do type=com.pfizer.ecms.ws.TestAction /action - Original Message - From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael.
RE: HTML:link tag
Does anyone know how to extract the link url using struts, rather than the full a.../a tag? I would like to get a URL from a global-forward for use in a javascript function. Thanks, Matt --- Michael Skariah [EMAIL PROTECTED] wrote: Thanks a million Spencer. -Michael. -Original Message- From: Spencer Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: HTML:link tag %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % *make sure above line is in your jsp page html:link page=/test.do target=_topClick Here/html:link *in order for above line to work you need to set up an action in struts-config.xml ie: !-- Handle actions for /Test -- action path=/Test.do type=com.pfizer.ecms.ws.TestAction /action - Original Message - From: Michael Skariah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 3:23 PM Subject: HTML:link tag Hello all, I am trying to replace the following with the Struts HTML link tag. a href=test.doTest/a Could anyone help me out here\. Thanks, Michael. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/