Given that your foreach controller works and ${jspPage}.csv is being correctly populated it should be fine to read CSV data.
Assuming that you have each link in a new line could you please make sure that following configuration is applied:
For Loop Controller: should be > than 1 loop. Elsewise it'll read only the first line.
For CSV Data Set Config:
- Filename - ${jspPage}.csv (should resolve to csv file)
- File encoding - must match your file encoding (it's recommended to use UTF-8)
- Variable name - anything meaningful. If you're using full URLs like protocol://host:port/path you need to split it via Beanshell function elsewise you'll be getting errors like "Host is null"
Delimiter - something like "\r\n" (without quotes). You may wish to use
${__BeanShell(System.getProperty("line.separator");)}
as line separator may vary on Windows, MacOSX and Linux.
Other properties are according to your use case. With defaults which are
- Allow quoted data - false
- Recycle on EOF - true
- Stop Thread on EOF - true
- Sharing mode - all threads
You should get the number of requests per JSP CSV file equal to loops, defined in your Loop Controller.