<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WebDeveloper.com - Java (NOT JavaScript!)</title>
		<link>http://www.webdeveloper.com/forum/</link>
		<description>For discussion of the Java programming language as it applies to the Web ( Not JavaScript ).</description>
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 10:30:02 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.webdeveloper.com/forum/images/misc/rss.png</url>
			<title>WebDeveloper.com - Java (NOT JavaScript!)</title>
			<link>http://www.webdeveloper.com/forum/</link>
		</image>
		<item>
			<title>Craigslist Posting With Different Proxies</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?278337-Craigslist-Posting-With-Different-Proxies&amp;goto=newpost</link>
			<pubDate>Tue, 21 May 2013 19:47:32 GMT</pubDate>
			<description>Two part question... 
 
we want to post ads on craigslist.org by automation... rather than a human posting these items for sale ads manually. 
Anyone program such a thing? 
 
We need some tips for our pc settings for posting ads in Craigslist.org 
We think craigslist must be tracking our ip because...</description>
			<content:encoded><![CDATA[<div>Two part question...<br />
<br />
we want to post ads on craigslist.org by automation... rather than a human posting these items for sale ads manually.<br />
Anyone program such a thing?<br />
<br />
We need some tips for our pc settings for posting ads in Craigslist.org<br />
We think craigslist must be tracking our ip because when we post ads in their items for sale section, our ad never goes up. It is immediately &quot;deleted&quot;. [within 1 second]<br />
<br />
We are trying to use craigslist to post 1 item for sale ad in 1 city but... we have many ads to post each day across north america.<br />
<br />
Here's what we've tried:<br />
<br />
proxy ip<br />
new craigslist accounts<br />
different browsers like chrome, ie, firefox<br />
delete cookies<br />
incognito<br />
but we can't get the ad to stay up. we are not spamming. we only place 1 ad in only 1 city. we never re-post.<br />
<br />
If someone has had success at posting 1 ad in 1 city and then a completely different ad in a different city, etc etc. we'd love to know how to set our pc to have our ads stay up.</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?31-Java-(NOT-JavaScript!)">Java (NOT JavaScript!)</category>
			<dc:creator>adworkchamp</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?278337-Craigslist-Posting-With-Different-Proxies</guid>
		</item>
		<item>
			<title>Servlet error on compilation</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?278293-Servlet-error-on-compilation&amp;goto=newpost</link>
			<pubDate>Tue, 21 May 2013 08:22:24 GMT</pubDate>
			<description>Please I am getting this error when I try to compile a web application in Eclipse. what am i doing wrong? kindly share your professional advice. Thanks. as a newbie to Spring-hibernate application i am following this tutorial -...</description>
			<content:encoded><![CDATA[<div>Please I am getting this error when I try to compile a web application in Eclipse. what am i doing wrong? kindly share your professional advice. Thanks. as a newbie to Spring-hibernate application i am following this tutorial - [URL=&quot;http://viralpatel.net/blogs/spring3-mvc-hibernate-maven-tutorial-eclipse-example/?replytocom=42097#respond&quot;]<br />
<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">type Exception report<br />
<br />
message Servlet.init() for servlet spring threw exception<br />
<br />
description The server encountered an internal error that prevented it from fulfilling this request.<br />
<br />
exception <br />
<br />
javax.servlet.ServletException: Servlet.init() for servlet spring threw exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.lang.Thread.run(Thread.java:722)<br />
<br />
<br />
root cause <br />
<br />
java.lang.NoSuchMethodError: org.springframework.core.io.ResourceEditor.&lt;init&gt;(Lorg/springframework/core/io/ResourceLoader;Lorg/springframework/core/env/PropertyResolver;)V<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)<br />
&nbsp; &nbsp; &nbsp; &nbsp; javax.servlet.GenericServlet.init(GenericServlet.java:160)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.lang.Thread.run(Thread.java:722)<br />
<br />
<br />
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.30 logs.</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?31-Java-(NOT-JavaScript!)">Java (NOT JavaScript!)</category>
			<dc:creator>ken2010</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?278293-Servlet-error-on-compilation</guid>
		</item>
		<item>
			<title>android studio</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?278173-android-studio&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 05:28:16 GMT</pubDate>
			<description>so with android studio does this make eclipse obselete?  
 
Can you develop Java in Android Studio? or can you only use it for making android apps?</description>
			<content:encoded><![CDATA[<div>so with android studio does this make eclipse obselete? <br />
<br />
Can you develop Java in Android Studio? or can you only use it for making android apps?</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?31-Java-(NOT-JavaScript!)">Java (NOT JavaScript!)</category>
			<dc:creator>Nicholas Diaz</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?278173-android-studio</guid>
		</item>
		<item>
			<title>problème jsp servlets getParameter null</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?278007-problème-jsp-servlets-getParameter-null&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 10:24:04 GMT</pubDate>
			<description><![CDATA[Bonjour, 
 
J'ai un problème un peu particulier. J'utilise dans une page jsp (maPage.jsp) un tableau avec pagination comme ceci : 
 
 
Code: 
--------- 
  
<% 
    int cpt = 0;]]></description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
<br />
J'ai un problème un peu particulier. J'utilise dans une page jsp (maPage.jsp) un tableau avec pagination comme ceci :<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> <br />
&lt;%<br />
&nbsp; &nbsp; int cpt = 0;<br />
&nbsp; &nbsp; int d = (Integer.parseInt(request.getAttribute(&quot;currentPage&quot;).toString()) - 1) * Integer.parseInt(request.getAttribute(&quot;recordsPerPage&quot;).toString());<br />
&nbsp; &nbsp; int f = d + Integer.parseInt(request.getAttribute(&quot;recordsPerPage&quot;).toString()) - 1;<br />
%&gt;<br />
&nbsp;<br />
&lt;c:forEach begin=&quot;&lt;%=d%&gt;&quot; end=&quot;&lt;%=f%&gt;&quot; var=&quot;myObject&quot; items=&quot;${requestScope.liste1}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;form1&quot; class=&quot;form1&quot; method=&quot;post&quot; action=&quot;&lt;c:url value='/test/test1'/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th align =&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; value=&quot;${myObject}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class=&quot;myButton&quot; type=&quot;submit&quot; name=&quot;myButton&quot; value=&quot;&nbsp; &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&lt;/c:forEach&gt;<br />
&nbsp;<br />
&lt;c:if test=&quot;${currentPage != 1}&quot;&gt;<br />
&lt;table class=&quot;table_placeholderContent_pagination&quot; border=&quot;0&quot;&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;form_pagination&quot; method=&quot;post&quot; action=&quot;&lt;c:url value='/test/test1'/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input id=&quot;page&quot; name=&quot;page&quot; type=&quot;hidden&quot; value=&quot;${currentPage - 1}&quot; readonly=&quot;readonly&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input class=&quot;inputPagination&quot; type=&quot;submit&quot; value=&quot;Previous&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/c:if&gt;<br />
&nbsp;<br />
&lt;table class=&quot;table_placeholderContent_pagination&quot; border=&quot;0&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:forEach begin=&quot;1&quot; end=&quot;${nbPages}&quot; var=&quot;i&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:choose&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:when test=&quot;${currentPage eq i}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input class=&quot;inputPagination1&quot; type=&quot;button&quot; value=&quot;${i}&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/c:when&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:otherwise&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;form_pagination&quot; method=&quot;post&quot; action=&quot;&lt;c:url value='/test/test1'/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input id=&quot;page&quot; name=&quot;page&quot; type=&quot;hidden&quot; value=&quot;${i}&quot; readonly=&quot;readonly&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input class=&quot;inputPagination&quot; type=&quot;submit&quot; value=&quot;${i}&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/c:otherwise&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/c:choose&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/c:forEach&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&nbsp;<br />
&lt;c:if test=&quot;${currentPage lt nbPages}&quot;&gt;<br />
&lt;table class=&quot;table_placeholderContent_pagination&quot; border=&quot;0&quot;&gt;<br />
&nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form id=&quot;form_pagination&quot; method=&quot;post&quot; action=&quot;&lt;c:url value='/test/test1'/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input id=&quot;page&quot; name=&quot;page&quot; type=&quot;hidden&quot; value=&quot;${currentPage + 1}&quot; readonly=&quot;readonly&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input class=&quot;inputPagination&quot; type=&quot;submit&quot; value=&quot;Next&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/c:if&gt;</code><hr />
</div> Et dans ma servlet test1, j'ai le code suivant :<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> <br />
&nbsp; &nbsp; &nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int page = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int recordsPerPage = 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int noOfRecords;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int noOfPages;<br />
&nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;recordsPerPage&quot;, recordsPerPage);<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List&lt;String&gt; liste1 = new LinkedList&lt;&gt;();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; liste1.add(&quot;test&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;liste1&quot;, liste1);<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (request.getParameter(&quot;myButton&quot;) != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // venir ici !!!!<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (request.getParameter(&quot;page&quot;) != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; page = Integer.parseInt(request.getParameter(&quot;page&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; noOfRecords = liste1.size();<br />
&nbsp; &nbsp; &nbsp; &nbsp; noOfPages = (int) Math.ceil(noOfRecords * 1.0 / recordsPerPage);<br />
&nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;nbPages&quot;, noOfPages);<br />
&nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;currentPage&quot;, page);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.getServletContext().getRequestDispatcher(&quot;maPage.jsp&quot;).forward(request, response);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; doGet(request, response);<br />
&nbsp; &nbsp; }</code><hr />
</div> Mon problème est le suivant :<br />
si nous sommes sur le 1er élément de la dernière page, alors le clic sur le bouton submit ne marchera pas (j'ai essayé avec un débuggeur, il ne rentre pas dans le if (request.getParameter(&quot;myButton&quot;) != null), je ne comprends pas pourquoi !<br />
par exemple, si comme ici nous avons qu'un seul élément dans la liste, alors nous sommes sur la page 1 qui est la dernière page. Et comme nous cliquons également sur le bouton de la ligne 1 (qui est également la dernière de cette dernière page), eh bien ça ne marche pas !<br />
<br />
Si vous ne comprenez pas dans quel cas ça ne marche pas pcq je me suis mal exprimé, n'hésitez pas à me le dire et je ré-expliquerai !<br />
<br />
dans tous les autres cas (si la liste est plus grande et qu'on clique sur n'importe quel autre bouton de n'importe quelle ligne à part la dernière de la dernière page), ça fonctionne (il rentre bien dans le if)<br />
<br />
Vous comprenez pourquoi vous ??!<br />
<br />
PS :<br />
<br />
C'est un peu flou pour vous pcq j'ai généralisé et simplifié le code car tout ne peut pas être public !<br />
<br />
Pourquoi j'ai fait ça, tout simplement pcq chaque ligne de mon tableau est un formulaire à lui seul (chaque ligne contient du blabla, et un bouton supprimer (ainsi que d'autres boutons mais c'est celui là qui pose problème))<br />
<br />
Lors du clic sur ce fameux bouton, la ligne est censée être supprimée (et comme je l'ai dit auparavant, ça marche dans 99% des cas !)<br />
<br />
Le seul cas d'erreur, c'est lors du clic sur le bouton supprimer du tout dernier élément de ma liste: il ne se passe rien pcq le request.getParameter('myButton') renvoie null..<br />
<br />
Au cas où vous penseriez à cette cette solution : je ne peux donc pas mettre un form global, car chaque ligne est un formulaire !</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?31-Java-(NOT-JavaScript!)">Java (NOT JavaScript!)</category>
			<dc:creator>JohnSheppard</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?278007-problème-jsp-servlets-getParameter-null</guid>
		</item>
		<item>
			<title>Steganography Program</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277861-Steganography-Program&amp;goto=newpost</link>
			<pubDate>Mon, 13 May 2013 02:47:30 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
I'm wondering if anyone can help me out. I have a program that I need done soon, and am wondering if anyone can either 
 
a) Give me tips on how to complete it 
b) Do it for me for a fee 
 
Here's the program requirements: 
 
People use cryptography to send secret messages to one...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I'm wondering if anyone can help me out. I have a program that I need done soon, and am wondering if anyone can either<br />
<br />
a) Give me tips on how to complete it<br />
b) Do it for me for a fee<br />
<br />
Here's the program requirements:<br />
<br />
People use cryptography to send secret messages to one another without a third party overseeing the message. Steganography is a type of cryptography in which the secret message is hidden in a digital picture. Think of all those pixels in an image and each pixel has three color numbers — there are zillions of numbers in an image. If you were to change a few of these color numbers the resulting picture would probably look a lot like the original image; in fact, most people probably couldn’t tell that you had changed the image at all. Steganography works by changing a few pixel color values; we will use selected pixel values to represent characters instead of a color value. Of course, the resulting image will still look mostly like the original except that a few tiny ”blips” might seem a little out of place if you look very closely. We can then send the image to a friend and they can extract the message if they know which pixels to decode.<br />
<br />
In this part of the assignment you will be writing a java application that will enable you to exchange secret messages with another person. We will use our knowledge of pixel manipulation to implement a steganographic system.<br />
<br />
Here are the requirements for this assignment:<br />
<br />
    First you will need to read your picture as a jpg and then save it in 24-bit bmp format. You will need to use bmp files for this assignment because jpg’s are ”lossy” meaning that what you write to the file may be changed slightly so that the resulting image can be stored more efficiently. Thus jpg will not work for steganography because jpgs will change the secret message when storing the file to disk. Here are the commands to save your file. You can give it the same name except be sure to put a .bmp file extension on the end. (For example, I loaded ”Mark.jpg” and then saved ”Mark.bmp”). You can use Microsoft Paint to do this conversion.<br />
    Create an application for implementing the steganography. Name your class Steganography (and thus name your file Steganography.java). Note that bmp files take a lot of memory. You will run in to less trouble if your image is smaller.<br />
    Prompt the user if they want to encode or decode a message.<br />
    Prompt the user for an input file.<br />
    If encode, prompt the user for an input message. Encode the message into the picture (details below), then prompt the user for an output file name, and save the new picture/message in this file (using bmp format).<br />
    If decode, extract the message from the file and display the message.<br />
    Hand in electronically your Steganography main program containing necessary methods and pictures (bitmap). <br />
<br />
Encoding/Decoding Method<br />
You have three options for how to encode/decode a message. You must implement two of these options. You can start with the easiest (A) and then add to it to create (B) and then (C).<br />
<br />
A. Standard method.<br />
B. Key method.<br />
C. Key + bit method.<br />
A. Standard method.<br />
You will extract all the pixels from the image in one big array. You will be changing the red value for every 10th pixel starting with pixel at array index 0. At this first location (array index 0), change the red value to be the count of the number of characters in your secret message. Note this limits your secret message to a maximum length of 255 characters. Then every 10th pixel after (array index 10, 20, 30, ...) change the red value to reflect the character number in your secret message.<br />
<br />
For example, suppose your secret message is ”secret”. This has 6 characters so you would set the red value of the pixel at index 0 as 6. Then ”s” has a unicode character number of 115. So you would then set the red value of the pixel at index 10 as 115. Next ”e” has a unicode character number of 101, so you would set the red value of the pixel at index 20 as 101. And so on for the rest of the message.<br />
B. Key method.<br />
Implement the standard method as described above. Then also add the following key protection features.<br />
<br />
If someone knew how our algorithm worked, it would be easy for them to extract secret messages from the image files. We can improve our security by using a ”key”. In this case, a key will be a word or phrase. You can combine the key with the message to produce a scrambled message that is not legible. Only by using the key can you unscramble the message to retrieve the original message.<br />
<br />
Here is how we will implement the key feature. The secret message is one string while the key is a second string (usually a shorter string). We will pair up the characters in each string by their positions. Because the key is usually shorter, we will have to reuse the key starting back at the beginning. For example, suppose the secret message is ”a secret” while the key is ”key”. The matching will be as follows (notice the blank space is a character):<br />
<br />
a   s e c r e t<br />
k e y k e y k e<br />
<br />
Now that we have the characters matched up, we will need to perform an xor operation on each pair to create a new output character. You can test your xor operation by writing a small program first or by typing commands at the Dr. Java interactions pane. From the secret/key example, we obtain a resulting output string with mostly non-printable characters (there is an ”E” in the second position).<br />
<br />
To unscramble the message, simply repeat the xor operation using the same key. Performing the xor operation twice undoes the scrambling and you will be left with your original message. Now you will have to communicate the key to your friend when you give them the image; be sure to keep the key secret (like a password) because people will be able to read your secret messages once they have the key.<br />
C. Key + bit method.<br />
Implement the key method as described above. Then also add the following bit manipulation features.<br />
<br />
The problem with changing the red values in our encode/decode steps, is that these often cause quite visible changes in the resulting image. This is especially true if the pixels that are being changed are part of a large section of uniformly colored pixels – the ”dots” stand out and are noticeable. As an option, we can change only the lower order bits of each pixel color (red, blue, and green). This will make subtle changes to each pixel’s color and will not be as evident.<br />
<br />
Remember that each pixel has three bytes: one byte for red, blue and green colors. Each byte has 8 bits to encode a number between 0 and 255. When we swap out the red color byte for a character, it is possible that we are changing the redness of that pixel by quite a bit. For example, we might have had a pixel with values of (225, 100, 100) which has lots of red, some green and some blue – this is basically a reddish pixel with a slight bit of pink color to it. Now suppose we are to store the character ”a” in the red part of this pixel. An ”a” is encoded as decimal number 97 so our new pixel becomes (97, 100, 100). Now we have equal parts of all three colors to produce a dark grey pixel. This dark grey is noticeably different than the dark pink we had before; it will definitely stand out in the image especially if the other nearby pixels are all dark pink.<br />
<br />
We want a way to encode our message without making such drastic changes to the colors in the original image. If we only change the lowest bits of each pixel, then the numeric values can only change by a small percentage. For example, suppose we only change the last three bits (lowest three bits) – these are the bits that determine the ”one's place”, the ”two's place” and the ”four's place”. We can only alter the original pixel color value by ±7. Let us think of our original pixel as a bits:<br />
<br />
(r7 r6 r5 r4 r3 r2 r1 r0, g7 g6 g5 g4 g3 g2 g1 g0, b7 b6 b5 b4 b3 b2 b1 b0).<br />
<br />
And our character (byte) as some bits:<br />
<br />
c7 c6 c5 c4 c3 c2 c1 c0<br />
<br />
Then we can place three of these character bits in the lowest red pixel, three more in the lowest green pixel, and the last two in the lowest blue pixel as follows:<br />
<br />
(r7 r6 r5 r4 r3 c7 c6 c5, g7 g6 g5 g4 g3 c4 c3 c2, b7 b6 b5 b4 b3 b2 c1 c0).<br />
<br />
If we had done this to the example of pixel (225, 100, 100) with character ”a”, we obtain:<br />
<br />
original pixel = ( 11100001, 01100100, 01100100 )<br />
”a” = 01100001<br />
new pixel = ( 11100011, 01100000, 01100101 )<br />
new pixel = ( 227, 96, 101 )<br />
<br />
Notice the new pixel of (227, 96, 101) is almost the same value as the old pixel of (225, 100, 100). There will be no noticeable color difference in the image! To retrieve the message, you simply extract the appropriate pixels from the rgb values to reconstruct the secret character.<br />
<br />
To accomplish this, you might want to use the ”logical and” and ”logical or” operators and also the ”shifting” operator. <br />
<br />
Thanks in advance</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?31-Java-(NOT-JavaScript!)">Java (NOT JavaScript!)</category>
			<dc:creator>Kevin123</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277861-Steganography-Program</guid>
		</item>
	</channel>
</rss>
