Help coderanch get a
new server
by contributing to the fundraiser

abdel solarie

Greenhorn
+ Follow
since Oct 29, 2010
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 abdel solarie

I would like to create a page that contains multiple forms ,the action compte responsible for that send a "voiture " vector to the jsp , the property "idVoiture" of "voiture" will be used to differentiate between those form:

compte
....
Vector <voiture> Vect continet un vecteur de voiture
request.setAttribute("Vect_voiture", Vect); mettre ce vecteur dans la requet
.....

the jsp result

<logic:iterate id="vf" name="Vect_voiture">
<bean:define id="idd" name="vf" property="idVoiture"/>

<html:form action="update_img" method="POST" styleId="updat_<%=idd%>" enctype="multipart/form-data">

<div ><html:file property="file" styleId="file0" /></div>

<div > <html:submit value="update"/></div>

</html:form>

</logic:iterate>

what is strange : is that I receive all form in html with:

<form name="voiture" id="updat_<%=d%>" method="POST" action="/projet_web/update_img.do" enctype="multipart/form-data">

<div ><input type="file" name="file" value="" id="file0" > </div>
<div > <input type="submit" value="update"/>
</div>
</form>

it's like the <html:form > tag cancel the effect of <%=%>
13 years ago
hello,

i have made one application ( struts ) to store car picture , one application's feature is to change the stored pictures , the problem is when the user upload the new picture to change the existing one , on the jsp result page the old picture is displayed , i must refresh that jsp in order that the change take effect and the new picture is being displayed
it's like the browser remember the old one in its cache , i have tried to disable the cache feature with the meta but no result.
13 years ago
hello

I want to develop one web site for buying and selling (with java struts), but I am blocked on authentication step:
1) is the authentication with cookies good choice?
2) if answer is yes, how many cookies we need to do it ?
3) how we can secure the exchange between the server and the client using cookies ?

thank you in advance.
13 years ago
JSP
but it works with firefox et IE why it's not works on chrome ?
teh server should do the redirection,
this is the form <form id="myform" action="urlt0.do" method="post">
<html:hidden name="urlt0" property="url_page_t0" value=""/>
</form>

fro the redirect: this is the link :

<a id="myLink" href="/projet_web/search.do?ml=38&fpc=1000&tpc=66" >
<input type="hidden"/></a>
<input name="button" type="button" class="inputbutton" value="Recherche" onclick="cll()" />
i have made this function:

function cll()

{this.document.forms["myform"].submit();
var p=document.getElementById('myLink').href;
location.href =p;
}

it work under firefox but under IE but it's notworking with google chrome

hi,
i developed one application using struts , i have tested it with Firefox ad IE i works verry well but i have got problem with google chrome,
the problem is that : whene i click on one button i excpect that the rattched javascipt function submit first oen form then redirect me to another link, but under google chrome , the form isn't submitted (for Firefox and IE no problem)

the function
function cll()

{this.document.forms["myform"].submit();
var p=document.getElementById('myLink').href;
location.href =p;
}

the form :

<form id="myform" action="urlt0.do" method="post">
<html:hidden name="urlt0" property="url_page_t0" value=""/>
</form>
hi,
i developed one application using struts , i have tested it with Firefox ad IE i works verry well but i have got problem with google chrome,
the problem is that : whene i click on one button i excpect that the rattched javascipt function submit first oen form then redirect me to another link, but under google chrome , the form isn't submitted (for Firefox and IE no problem)

the function
function cll()

{this.document.forms["myform"].submit();
var p=document.getElementById('myLink').href;
location.href =p;
}

the form :

<form id="myform" action="urlt0.do" method="post">
<html:hidden name="urlt0" property="url_page_t0" value=""/>
</form>

the button
<td class="divleft"><div align="center" ><a id="myLink" href="/projet_web/search.do?ml=38&fpc=1000" >
<input type="hidden"/></a>
<input name="button" type="button" class="inputbutton" value="Recherche" onclick="cll()" />
13 years ago
JSP
hi,
i developpet one application using struts , i have tested it with Firefox ad IE i works verry well but i have got problem with google chrome,
the problem is that : whene i click on one button i excpect that the rattched javascipt function submit first oen form then redirect me to another link, but under google chrome , the form isn't submitted (for Firefox and IE no problem)

the function
function cll()

{this.document.forms["myform"].submit();
var p=document.getElementById('myLink').href;
location.href =p;
}
problem with submit and redirection {javascipt struts under google chrome}
the form :

<form id="myform" action="urlt0.do" method="post">
<html:hidden name="urlt0" property="url_page_t0" value=""/>
</form>

the button
<td class="divleft"><div align="center" ><a id="myLink" href="/projet_web/search.do?ml=38&fpc=1000" >
<input type="hidden"/></a>
<input name="button" type="button" class="inputbutton" value="Recherche" onclick="cll()" />
13 years ago