Gvn Karthik

Greenhorn
+ Follow
since Feb 07, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gvn Karthik

If so, then how do I configure my JSP pages in web.xml ?
12 years ago
JSF
My doubt is why is it that I need to configure it in web.xml. When I worked with JSF 1.2, I just created the JSP page and just ran my application.

Now in ICEaces, do I have to configure each and every JSP page of my application in web.xml?
12 years ago
JSF
I have recently configured ICEfaces with Eclipse Helios and I want to create a JSP page and run it as a sample before I can use the other components. But, I'm not able to run a simple JSP page successfully. I get a HTTP Status 404 error page. I have attached the screenshot of the simple JSP page and also the error page that I get.

Please help me what should I do to successfully execute a JSP page in an ICEfaces project.
12 years ago
JSF
I didn't get your question. I have configured Tomcat as my server in Eclipse to run my application. And I run the application in Eclipse only.
12 years ago
JSF
I have put the LoginBean class in session scope.
12 years ago
JSF
Once the user logs in, he will be directed to a home page where he has to fill in a form which updates a table in the database in the back end. In that table I'm inserting the username across the user who has successfully logged in. That's why I'm using a session variable. Also, I can have tasks that can be done in a user-specific manner. If the user updates his personal details, then I can use the value of the session variable to query my database and update according to the user who has logged in.


But the exception which is coming up here is creating a problem, I mean it is trying to fetch a view which no longer exists. PFB the code in my backing bean.



Any suggestions to resolve this exception? But, here is the catch. When I run it for the second time after I launch eclipse and then refresh the login page by pressing the reload button on the eclipse browser; I don't get this exception. So, as a workaround I thought I will use javascript to automatically reload the login page as it loads. I know this is not how I should be doing but I think this might help.
12 years ago
JSF
Hi,

I'm using Eclipse Helios, Apache Tomcat 6.0.29 and JSF 1.2. I'm having a simple application which has a Login page, Home Page and a Logout page. Once the user logs in, a session variable is set and Home page is displayed which has a logout button. When I launch Eclipse and run the Login page and use the correct credentials, I'm able to go to the home page but when I re-run the Login page, I get an error saying "view cannot be restored".

How do I resolve this exception? PFB the exception.



Also, when I re-run the application and when the Login page comes up, I press the refresh button in the Eclipse browser and after that I dont get any such exception. If I dont refresh the login page after a re-run of the application, I get the above exception. How do I get rid of this exception?
12 years ago
JSF
I'm not building a security system here. I just need to know how the whole concept of session tracking works. What I gave was a simple example. I wanted to know how data from session variables can be accessed in a bean class. I know that I have to use HttpSession but I could not figure out how to use it exactly. So, I need help in that aspect.
13 years ago
JSF
I'm new to session tracking. So, need some detailed advice.

I'm having two beans - UserBean(session scope) and StudentDetailsBean(request scope) and I have two JSP pages. In the first JSP page, a user has to login. If the login is successful, then the second JSP page comes up which asks for student details. These details are inserted into the corresponding table in the database. But, in that table, I need to insert the student's userId also which I have to get from the session bean (Userbean.userId). UserId is an attribute of UserBean and not of StudentDetailsBean

What should I add to the code in the StudentDetailsBean that will extract the session variable (UserId) so that I can insert the appropriate UserId for every successful login?

Please let me know how to do this as I haven't used JSF for session tracking earlier.
13 years ago
JSF
I read the stuff from the links above but I could not create the table successfully. How should I modify the following query to suit larger image insertion?

create table images(imageid number(10), photo blob);

So how can I solve my issue of inserting bigger images? I mean, more than 4kB?
So, you mean to say that I can use the datatype BLOB in the back end and I should use the datatype Lob(@Lob) in my Entity class???

Then how do I read the image? As a stream of bytes?
That size refers to 4000 bytes. Thats why I was able to insert only images of size approximately 4kB. When I created the table in the database, I used the following query:

create table images(id number(5),photo BLOB);

How should I change query so that I can accomodate bigger size images?
I have Oracle 10g Express Edition installed. I'm not able to insert images into the database of size greater than 3kB. I want to insert images of higher sizes say 200kB.

When I checked the size of the image column which is of BLOB type, the size turned out to be 4000. That explains why I was not able to insert an image of higher size.

How do I increase the size of the BLOB field so that I can store bigger images?
I have Oracle 10g Express Edition installed. When I checked the size of the image column which is of BLOB type, the size turned out to be 4000. That explains why I was not able to insert an image of higher size.

How do I increase the size of the BLOB field so that I can store bigger images?