fabrizio bellomo

Greenhorn
+ Follow
since Jul 07, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by fabrizio bellomo

Good Morning ,
i need your help^^"

how can i use <optgroup label="title" inside a logic:iterate??

That's my problem.. i have this

<select name="scelta" class="size" onChange="javascript:setIdArea(this);">

<logic:iterate id="CreaGrigliaAttivitaForm" name="elenco" >

<option value='<bean:write name= "CreaGrigliaAttivitaForm" property="idatt"/>'>
<bean:write name= "CreaGrigliaAttivitaForm" property="idatt"/>-
<bean:write name= "CreaGrigliaAttivitaForm" property="nomeatt"/>-
<bean:write name= "CreaGrigliaAttivitaForm" property="status"/>
</option>

</logic:iterate>

</select>

but if i put the <optgroup label=" <bean:write name= "CreaGrigliaAttivitaForm" property="status"/>"> before the logic:it, i can see the title only at the beginning. If i put the tag after, i can see the title in all the information.

I want to order the informations for status. Any suggestion??

Thanks in advance

F
12 years ago
hello ,
i'm working in a struts project but i have a little problem with a combobox

<td>Stato</br>
<select id="scelta" name="scelta" onchange="javascript:fun(this.selectedIndex);" >
<logic:iterate id="MonitoringBackForm" name="elenco" >
<option value='<bean:write name= "MonitoringBackForm" property="idrequeststatus"/>'>
<bean:write name= "MonitoringBackForm" property="requeststatus"/>
</option>
</logic:iterate>
</select>
</td>

My problem is that everytime i submit the form, the value of the combobox returns at the default value, instead of remaining at the current.
So for example if i have in the combo
1- accept
2- refuse
3-all

at the beginning i see accept. Then, if i search for all, i can view corretly all the information i need, but the value of the combo returns at the accept value,instead of remaining at all.

Thanks for any help
12 years ago
Hi everyone, and sorry if it isn't the right zone to explain my problem.

I need to see database informations in the jsp but i don't know how.
(i 'm not allowed to use java code on the jsp)

For example after the login action i want to see the message welcome "user" in the other pages, where user is his name saved in the db.
Now in my ActionClass i m calling a method

User user = daoFactory.userDAO().checkLogin(loginform.getUserName(), loginform.getPassword(),connection);

and it 'll return a object user with all the information i need.


Then in my jsp :

<jsp:useBean id="Mrbean"
class="it.tbr.action.LoginAction" />

welcome<jsp:getProperty name="Mrbean" property="name" />

where
name=request.getParameter(user.getFirstName()); (in the ActionClass)

but in my jsp i got a null name.

i miss something but i don t know where.
can someone help me?
thanks
12 years ago