Can you add topicCategories as a session variable? Then you should be
able to access it from other classes.

On Feb 13, 3:34 am, Rafał Laczek <rafal_lac...@wp.pl> wrote:
>  
>
> Hi,
>
>  
>
> In doGet I add received data to topicCategories list.
>
> When I invoke getTopicCategories() in other class unfortunately list is
>
> empty.
>
> My goal is to pass and use topicCategories list in other class.
>
>  
>
> Can somebody help.
>
> NB. My previous e-mails are not actual already. I have rebuilt the
>
> project.
>
>  
>
> Regards,
>
> Rafal
>
>  
>
> public ArrayList<String> getTopicCategories() {
>
>             return topicCategories;
>
>           }
>
>  
>
>  
>
> protected void doGet(HttpServletRequest request, HttpServletResponse
>
> response) throws ServletException, IOException {
>
>         ServletOutputStream out = response.getOutputStream();
>
>         response.setContentType("text/html");
>
>         String select[] = request.getParameterValues("id");
>
>         if (select != null && select.length != 0) {
>
>         for (int i = 0; i < select.length; i++) {
>
>             topicCategories.add(select[i]);

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to