Jenn Person

Ranch Hand
+ Follow
since Jan 16, 2005
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 Jenn Person

Good point, I am actually! I'll try Firefox and see what I get. Thanks Bear.
12 years ago
JSP
Hi Chandra,

I tried adding <%@ page isErrorPage="true" %> to my error page, but it still isn't working. Is there anything else I'm missing beside this code and what I've already placed in my DD?
12 years ago
JSP
Hi Manoj,

I noticed you posted the exact same message Please Help Me in this forum earlier and you were told to look else where for assistance. I don't think starting a new thread with a different name will help much.

If you're looking for help on how to solve your questions, as opposed to just straight answers, I think you would find better reception. Try the beginner/intermediate Java forums, they may be better suited.

Jenn
12 years ago
JSP
Hi,

I wasn't sure which forum this was best suited for, so my apologies if this is the wrong place. I'm trying to catch HTTP Error Responses like 404, 500, etc using the error-page element in my deployment descriptor.

For example I have this in my web.xml file:


When I enter in a url like http://localhost:8080/myapp/nonsense, where nonsense doesn't exist, I get my browser's or container's response depending on the error code instead the error.jsp page I've prepared.

How can I properly catch these?
[ June 05, 2007: Message edited by: Jenn Person ]
12 years ago
JSP

Originally posted by Jack Bolton:



Check your for loop. Trace through each loop, paying careful attention to the value of your i variable as you go along, and take a look at your loop condition as well. You'll see why it only prints once when you enter 3.
12 years ago
I'm certain there is a more elegant solution, but I would just test the incoming paramater to see if it's null or not.

if (request.getParameter("my_parameter") != null)
{
//do something
}
else
{
//do something else
}
12 years ago
JSP
I agree with Bear, if you want to backup your database, then Servlets and JSP is a poor choice. You'll have to create something in DOS since you're using Windows to run a MySQL dump on the interval you want.
[ May 15, 2007: Message edited by: Jenn Person ]
12 years ago
a process should trigger automatically from the server and take all the backups daily or whatever.

Are you referring to backups of your database? Please clarify.
12 years ago
Hi Steve,

Regarding my first post, I assumed you were displaying "remote data" that was retrieved from a database which would typically be generated by submitting an SQL statement to it.

So I was proposing you make a query that will include the user's parameters.
ex.
"Select * from Some_table" would be your first query, possibly.

"Select * from Some_table Where Some_table.some_attribute = " + attribute would be something your second query could be like.


Are you in fact using a database, and servlets? Or if not, how is this original page being created?
[ May 10, 2007: Message edited by: Jenn Person ]
12 years ago
Hi Steve,

Yes you can do this. You'll have to make a form, containing that input box you mentioned, and have it post to a servlet. This servlet can take those parameters and refine the displayed information by submitting a query simliar to what was used to generate the page in the first place, but this time including the submitted parameters in the WHERE claus.

After retrieving the results, attach them to the request object and forward back to the JSP page and display the updated information.
12 years ago
Hi Satou,

You're right, it was referring to another WriteUpBean.class file I had in another webapp!

Thank you so much for you help!
Jenn
12 years ago
Hi Satou,

I thought about what you said and deleted my WriteUpBean.class file. I then recompiled it and tried to then compile my WriteUpModel but I still get the same error.

I've even renamed the method in my WriteUpBean to something completely different, like getJenn() but it just brings the same error with the getJenn() method unresolved.

I'm at a complete loss here. Any ideas?
12 years ago
Hi,

I have the following class acting as a simple bean to store the details of written articles as shown below.



I have a model that uses this bean as follows:



My problem is that I cannot compile this model, I get the following error:


I don't know what is wrong with the setUpdated method. The other methods work, so I can only think that setUpdated is a reserved method name and cannot be used?

Any help with this would be greatly appreciated!
[ May 07, 2007: Message edited by: Jenn Person ]
12 years ago
Hi Ben,

I need to make a HTTP posts from one application to another, whereas the two applications are both maintained in the same container.

I'll take a look at the libraries to see if I can figure it out!

Thanks,
Jenn
12 years ago

Originally posted by Ben Souther:
If they need to work together, why make them two separate applications?
Why not just add some administrator components to the application?



I had done that originally, but these two sites are being used to replace an old static website and the network administrator insists they be separated so he can apply SSL to the administrative end. He demanded complete separation of the two sites, so my hands are tied in this case.

Any suggestions?
12 years ago