Questions tagged [usebean]
46 questions
18
votes
2 answers
javax.servlet.ServletException: bean [name] not found within scope
I'm getting this error:
javax.servlet.ServletException: bean not found within scope
on a page with this at the top.
The class exists in the classpath, it worked this morning, and I…

stu
- 8,461
- 18
- 74
- 112
4
votes
3 answers
Name was not previously introduced as per JSP.5.3
I need to recall a few things on jsp for personal reasons :) I've got a trivial login page:
Login

Łukasz
- 1,980
- 6
- 32
- 52
3
votes
1 answer
Initialize class with constructor in
I am trying to initialize a class by passing a parameter to the constructor. I need the scope to be "page". I know I have one argument in my constructor, but how do I have one that accepts parameter using , and can be called from a JSP…

ezhil
- 977
- 6
- 15
- 36
3
votes
0 answers
Direct send class's data with usebean
I have a setting.java class and in this class I read my data from a file and I want to use this data with jsp:useBean in my index.jsp page.
this class code is bellow:
public class setting {
private boolean setstatus=false;
private String …

Farshid Shekari
- 2,391
- 4
- 27
- 47
3
votes
2 answers
Getting data from the Java bean to be displayed on a JSP page
I've got a forum where a user can register there details and this gets sent to a Servlet and then a Java bean. What I'm having trouble with is that I can't get the data to be displayed on another JSP page when the Java bean is requested. So…

user3258979
- 87
- 1
- 1
- 6
3
votes
1 answer
Ebean: Join multiple expressions with OR
I use the PLAY Framework 2.2.1 and I want to build a query to search the database for terms I get from an input form.
This is what I have got so far but it doesn't work:
...
List terms;
public static Model.Finder find = new…

Matthias Munz
- 3,583
- 4
- 30
- 47
3
votes
2 answers
Tomcat 6.0 does not allow generic ArrayList to be used for useBean
In a jsp file I have this declaration:
This declaration works fine with GlassFish 2.1, however, when I switch to Tomcat 6.0, exceptions is…

Mr Cold
- 123
- 2
- 9
2
votes
1 answer
How to add values to an ArrayList referenced by jsp:useBean?
In JSP/JSTL, how can I set values for a usebean of class="java.util.ArrayList".
If I try using c:set property or value, I get the following error:
javax.servlet.jsp.JspTagException: Invalid property in : "null"

Jonathan Hult
- 1,351
- 2
- 13
- 19
2
votes
1 answer
Blank window during the first access to the page
I have a very strange problem, I have a useBean loginCheck which is stored in session and I want to use it to display a different menu according to the user logged. So here is my code in the JSP :

Simon M.
- 2,244
- 3
- 17
- 34
2
votes
1 answer
org.apache.jasper.JasperException: PWC6054: Cannot find any information on property 'str' in a bean of type 'beanpack.BeanDemo'
I wrote a simple jsp code that uses Bean class - BeanDemo.
I am using NetBeans IDE and GlassFish Server 4.0.
Now when I try to run the jsp file,I get the exception mentioned above.
I looked for similar questions in StackOverflow but none of the…

Aakanksha Pandey
- 65
- 9
2
votes
1 answer
Getting InstantiationException while using
Can anybody tell me what is the exact meaning of type and class attributes of jsp:usebean tag.?
I am getting an exception InstantiationException while using them in my application.

RockAndRoll
- 2,247
- 2
- 16
- 35
2
votes
1 answer
1
vote
1 answer
How to reset a session scoped jsp:useBean?
I am creating a TreeMap bean. I want to pass this around in the session scope. However, I need to reset/clear this TreeMap bean.
This is how I am declaring my bean:
Any ideas on how…

Jonathan Hult
- 1,351
- 2
- 13
- 19
1
vote
1 answer
how does jsp:useBean scope attribute work?
I am trying to understand how exactly scope attribute in jsp:useBean JSP action tag works. In my understanding scope is used to indicate where the bean is located (request,session,application etc.), but after some testing I came across an…

Mykhailo Seniutovych
- 3,527
- 4
- 28
- 50
1
vote
1 answer
Session scoped CDI bean accessed via seems to be a different one than in servlet
I would like to inject CDI SessionScoped bean into JSP page.
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;
@SessionScoped
public class UserSessionBean implements Serializable {
private String email = "email";
…

Vadim Dissa
- 961
- 3
- 13
- 32