Question about back button on forward.
Hi All: In IE when user hits back button then I want to forward user to my main page. I want to do this in reset method of the form. How can I 1) forward using request object to forward to main page. 2) Or redirect to main page Note: At this time I am not executing action class. So I cannot return mapping. I am just in form. And I want to Forward to a specific page. Any hints? Help?? Thanks. Shrihas Shah NYS Office for Technology [EMAIL PROTECTED] Phone (518) 408-2382 Fax (518) 473-3389 (US Postal Service Regular Mail Address) State Capitol ESP, PO Box 2062 Albany, NY 12220-0062 (Parcel Post/Overnight and Interagency Mail Address) Empire State Plaza Swan St., Core 4, 1st Floor Albany, NY 12223
Trick question, Can I pass multiple values to setter getter methods??
Hi: In my jsp if I have TDhtml:text property='topping(pepperoni)'//TD And in my form if I have public String getTopping(String t1) { return t1; } public void setTopping(String t1,String value) { } Then it works fine, but If I want to pass another parameter then it says that no getter method found. How can I pass multiple variables in property like the way I am doing below. TDhtml:text property='topping(pepperoni,pepperoni2)'//TD And in form public String getTopping(String t1, String t2) { return t1; } public void setTopping(String t1,String t2,String value) { } Thanks in Advance. The reason I want to do is that I want to store this in a multilevel hashtable in my setTopping method(I have not shown the code here). But I was just wonder that is it possible? Thanks Sincerely, Shrihas Shrihas Shah NYS Office for Technology [EMAIL PROTECTED] Phone (518) 408-2382 Fax (518) 473-3389 (US Postal Service Regular Mail Address) State Capitol ESP, PO Box 2062 Albany, NY 12220-0062 (Parcel Post/Overnight and Interagency Mail Address) Empire State Plaza Swan St., Core 4, 1st Floor Albany, NY 12223
Collection Intriguing question...
Hi All: I am unable to use html:options tag or unable to use JSTL in following scenario. But I can use scriptlets. Here is the scenario. I have search.jsp and actionform is SearchForm.java (It's name in struts-config.xml is 'searchForm') In search.jsp the code is html:select property=po html:options property=po / /html:select --- if I have following code in search.jsp it does not work either c:forEach var=x items=${searchForm.po} / c:out value=${x} / /c:forEach In SearchForm.java the getPo function is as follows. public HashSet getPo() { po = new HashSet(); // And this does return results. If I return array list it does not work either ArrayList al = lu.getAttributes(nyappPODAdminOU); po.addAll((Collection)al); return po; } When I run the search.jsp it gives following error. Error 500: An error occurred while evaluating custom action attribute value with value ${searchForm.po}: Unable to find a value for po in object of class us.ny.state.oft.da.forms.SearchForm using operator . Any clue?? If I use scriptlet as below it works fine. (after I use jsp:useBean tag) % HashSet hs = searchForm.getPo(); for ( Iterator i=hs.Iterator(); i.hasNext();) {% html:option value=%(String)i.Next()%/ % } % Thanks in advance. Shrihas. Shrihas Shah NYS Office for Technology [EMAIL PROTECTED] Phone (518) 408-2382 Fax (518) 473-3389 (US Postal Service Regular Mail Address) State Capitol ESP, PO Box 2062 Albany, NY 12220-0062 (Parcel Post/Overnight and Interagency Mail Address) Empire State Plaza Swan St., Core 4, 1st Floor Albany, NY 12223
Unable to do search on struts-user list
Hi : Did anybody is having problem with searching the struts-user list?. I just type any type of search and it tells me that Text search not available for this list Any idea what is wrong with the way I search. By the way I went to the address http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] ta.apache.org to search the archive. Thanks Shrihas Shah. Shrihas Shah NYS Office for Technology [EMAIL PROTECTED] Phone (518) 408-2382 Fax (518) 473-3389 (US Postal Service Regular Mail Address) State Capitol ESP, PO Box 2062 Albany, NY 12220-0062 (Parcel Post/Overnight and Interagency Mail Address) Empire State Plaza Swan St., Core 4, 1st Floor Albany, NY 12223