Paola Orsini L

Greenhorn
+ Follow
since Jan 12, 2009
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 Paola Orsini L

Hi,

I need to write images into my project folder images.
The thing is the user will create a product with this picture, but I want that image be store inside the projet to be able to open in a jsp as easy as any other image

But I have been not able to write any file into a folder inside my project

Someone can help me please
15 years ago
Hi
I am trying to preview an image so I am using a FormFile to get the image and in a new windows show that image, but in the Action class I get all parameters in the form but not the file.

in the JSP



some one could help .. Thanks
15 years ago
Hi I having problems in getting back the values of the users.
I have a shopping cart that display and I have an array with the quantities, to be display and can be edited by the user, I can display the content but I can not get the values enter for the user, can anyone help.

ProductsForm:


Action to set the values


in the jsp:


So I hava a javascript function that change the value of quant[] each time the value cant has change but when I sumit the form i can not retrieve this values, even I tried without the javascript and its the same

I have session scope in my struts-config.xml action
15 years ago
Hi I had having trouble retrieving the values of the indexed properties.. I am trying to created a shoping cart and have a list of products with their name, id and quantity, the user edit the field quantity but I can not get that value into my form class

ProductsForm:
private List<Productos> productsList;

public List<Productos> getProductsList()
{
return productsList;
}

public void setProductsList(List<Productos> productsList) {
this.productsList = productsList;
}
public Productos getProducts(int index)
{
return (Productos) productsList.get(index);
}

JSP:
<logic:iterate name="products_form" property="productsList" indexId="index" id="products" >
<td><table cellpadding=1 cellspacing=1>
<tr><td>
<H1 Style="Font: 10px Verdana;color:#D00000">Bsf. <bean:write name="products" property="costo" /></H1>
</td>
<td><H1 Style="Font: 10px Verdana;color:#787878">cant <html:text name="products" property="cant" size="3" indexed="true" /></ </H1>
</td></tr>
</table>
</td>
</logic:iterate>

struts-config.html
<action path="/openProducts" type="com.jnj.actions.ProductsAction" parameter="method" name="products_form" input="/shoppingcar/shopping.jsp" scope="session" validate="false">
<forward name="success" path="/shoppingcar/shopping.jsp" />
<forward name="backlogin" path="/index.jsp"></forward>
</action>

when I try to get the new quantities I get null, can some one help
Thanks
15 years ago