Questions tagged [usebean]

46 questions
0
votes
0 answers

How to set and get jsp:useBean ArrayList class in jstl

usually in jsp , one could use an arrayList . I could create one as follows: but how to set one is abit of a problem. for example, I want to add employee beans to it.
user200188
  • 93
  • 1
  • 9
0
votes
0 answers

passing jsp variable of a $ function() to a java class function as argument: how treat taglib code

I have written an insert function with taglibs in jsp in a $ function () which uses this code for calling it in a java script: ${tf:insertEdge(obj, stateid)} I know that my code of…
e nahang
  • 3
  • 1
  • 7
0
votes
1 answer

Not getting CatalogEntryDataBeans using CategoryDataBean

I am using a UseBean in my Jsp then I try to get 'CatalogEntryDataBeans' value using 'category' instance, something like…
Just_another_developer
  • 5,737
  • 12
  • 50
  • 83
0
votes
0 answers

Assigning value using setProperty

I have made a JSP page which has . The problem is that, whenever the form is submitted, the value of testName is null in bean and same for timLim.
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
0
votes
1 answer

How to set property using setproperty and param in beans

I want to set property in bean using and assigning value using param. Here is the code: In create.jsp:
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
0
votes
1 answer

How can i use the class that i wrote in other jsp file?

I'm a beginner in JSP. I wrote a package for userdata like this: package user; public class UserData { String username; String email; int age; public void setUsername( String value ) { username = value; } …
0
votes
1 answer

send parameter from jsp to servlet using jsp:useBean

I am beginner in java and trying to figure out how to send parameter from jsp to servlet using this inside my jsp - <%! String option;%> <% option = request.getParameter("option"); %>
user3331487
  • 43
  • 1
  • 11
0
votes
1 answer

JSP useBean - Property not found on type mybeans.FrageAntwortListeBean

I'm struggeling on this and I can't figure out why this error occurs. I have a bean: package mybeans; import java.io.Serializable; public class FrageAntwortListeBean implements Serializable { private static final long serialVersionUID = 1L; …
creativeby
  • 859
  • 6
  • 10
0
votes
1 answer

How to get instance created by in a servlet

I have a JSP with the following : I would like to get the instance from the session in a servlet. How can I achieve this?
PankajSays
  • 965
  • 1
  • 9
  • 12
0
votes
1 answer

Exception in JSP usebean

I've been working with JSP usebean, when I am trying to use bean in JSP, its throwing an exception that "It cannot find the class". But I've followed the correct structure, I assume, and included everything required. Please go through the code and…
i2ijeya
  • 15,952
  • 18
  • 63
  • 72
0
votes
1 answer

JSP Get Value of Property

I am very new to JSPs so I need your help. Google didn't give me what I was looking for, I might just entered the wrong search term. So please forgive me, but I think its a really dumb question, however nothing seems to be on the net about it. I…
Daniel
  • 72
  • 1
  • 2
  • 8
0
votes
4 answers

Web-Inf, JSPs and useBean

I have the following web structure Root - ----- Web-Inf - --------- (classes, web.xml, etc...) - ----- Members area (a normal folder) - --------- FileB.jsp - ----- FileA.jsp and I am having this really weird problem, both FileA and B.jsp have in…
Yehia A.Salam
  • 1,987
  • 7
  • 44
  • 93
0
votes
1 answer

The value for the usebean class attribute is invalid in jsp

I searched thru stackoverflow for this error and all the answers relating to this do not seem to apply to my circumstance (or perhaps I overlooked something in those answers). Anyway, I am a self-taught newbie Java hobbyist, so any help will be…
bachma0507
  • 1,543
  • 2
  • 11
  • 22
0
votes
2 answers

Set attribute before include jsp

consider this situation: <% for (int i = 0; i < 10; i++) { %> <% request.setAttribute("i", new Integer(i)); %> <% request.removeAttribute("i"); %> <% } %>