Friday, 15 July 2011

java - pass integer between action and jsp page? -


I have some problems in passing between action and jsp, and I do not understand why this is my code :

  & lt; S: iterator value = "listinga classification" & gt; & Lt; TR & gt; & Lt; Td> & Lt; S: Property value = "idCategoria" /> & Lt; / Td> & Lt; Td> & Lt; S: property value = "name" /> gt; & Lt; / Td> & Lt; S: form action = "adapter" & gt; & Lt; Td> & Lt; S: submit type = "button" name = "btnName" value = "idCategoria" /> gt; & Lt; / Td> & Lt; / S: Forms & gt; & Lt; S: Form Action = "Deleted Effect" & gt; & Lt; Td> & Lt; S: submit type = "button" name = "btnName" value = "idCategoria" /> gt; & Lt; / Td> & Lt; / S: Forms & gt; & Lt; / TR & gt; & Lt; / S: iterator & gt;  

I can not assume value in the variable idCategoria. This is my execution code:

  Public string applyingPernPhenza () throws an exception {/ esegui l'azione in the base add-ad / ram pref map & lt; String, Object & gt; Session = ActionContext.getContext (). GetSession (); UserBean = (user) session.get ("user"); If (userService.aggiungiPreferenza (idCategoria, userBean)) returns the success; And return INPUT; } Public string rimuoviPreferenza () throws an exception {// Base add ad / ray pref map in the string, object & gt; Session = ActionContext.getContext (). GetSession (); UserBean = (user) session.get ("user"); If (userService.rimuoviPreferenza (idCategoria, userBean)) returns to success; And return INPUT; }  

Can you help me? Thank you.


No comments:

Post a Comment