Robert Jaeger

Ranch Hand
+ Follow
since Apr 29, 2002
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 Robert Jaeger

Hey Sheriff Bear Bibeault

Thanks, you helped me a lot with your hints!

Still a lot to learn for me ... I think about going the JSP 2.0 way.

Saludos desde Colombia,
Robert.
17 years ago
JSP
Again thanks for your answer!

Well, the content of the <form>-tag is not scriptless (<% ... %> , so I should set the body-content to JSP, which is not supported by the SimpleTag:



The two other available values "empty" and "tagdependent" don't work: empty produces an error since the content is not empty, tagdependent ignores the content.

Does that mean I can't work with SimpleTags in this case?

current code (extended class for Form Tag)


Thanks for your hints! Am I on the right way? So I have to extend from TagSupport?
Regards,
Robert.
17 years ago
JSP
Hi!
Thanks for you answer!
I checked it, but everything seems to be correct. Moreover it works, when I put the <select>-tag outside the <form>-tag, so the tld-setting should be correct. It seems that variables passed by expressions don't work with inner tags
But maybe I have to add some code to the form tag to pass variables. Seems that you know more than I do



Regards from Bogot�, Colombia,
Robert
17 years ago
JSP
Of course I did! In a scriptlet:



and then I placed my custom tag code that doesnt recognize the "options"-variable in the nested element "sapo-select" whereas the request variable in the "sapo:form"-tag is recognized!:



Don�t understand it
But anyway, thanks for your answer!
17 years ago
JSP
Hi!

I wrote my first custom tags for form processing and everything works fine.
But then I had the following problem:



Unfortunately options (expression!) for the "select"-tag are not passed:



If I put the <sapo:select>-Element outside the form-tag it can access the value, but the outer-tag-relations gets lost.

Can somebody tell me why this happens? Would be great, I couldn't find a solution. I read something about tei-classes, but I cannot find a good explanation what they are good for, they seem to be a relict from the old tag-library-specification.

Regards,
Robert


17 years ago
JSP
Hi!

After investigating myself in a problem I am giving up and so I ask clever people in this forum

I have successfully installed and configured apache web server 2.x, tomcat 5.x and mod_jk (by usting xampp) to enable communication between both servers.

Everything works fine, the requests are redirected from the web server to tomcat.

Unfortunately the session object that is filled with attributes in my JSPs gets lost after each request (object = null). I think I still have a problem with my configuration - seems that apache doesn't receive or redirect the session to tomcat Or it fails because my requests are targeted to an apache/htdocs-directory where a htaccess-file waits to redirect the request to my webapplication. I need htaccess/modrewrite for proper urls for search engines.

I do this:
localhost/mywebapp/my.jsp -> adds attribute to session object -> link on jsp references to localhost/apachedir/ -> htaccess references to localhost/mywebapp/my.jsp -> added session attribute is gone

Maybe someone has a good advice - would be great, I could not solve the problem on my own

Thanks and regards from Bogota, Colombia,
Robert.
17 years ago
Hi!

As far as I know it is possible to decompile java code.
But there are tools that modify the code that it cannot be understood anymore.
Unfortunately my JSP files wouldn't be able anymore to use the API I made.

Is there a way to protect/encrypt my entire web application?

Regards (and thanks for your help!),
Robert.
18 years ago
Hi,

I am running my web application on Tomcat 4.1.x (configured with IIS) and found out that Tomcat seems to have a bug under the following circumstances:

A user can access my web application without problems. But the download of an applet fails when:
- JRE 1.4.1 is installed
- Tomcat is running with IIS (AJP-Connector)
- SSL
- a user context is passed from IIS to Tomcat (REMOTE_USER)
- sessions are used to grant access to the applet (servlet filter)

Does somebody know why this happens under these circumstances?

I would appreciate you help,
regard,
Robert.
19 years ago
Hi!

Well, you're right, there is some information on the openoffice-website and I could download a xsl-file.

Let's see how it will work ...

Thanks,
Robert.
Hi,

does anybody know where I can find a (free) XSL-file which transforms my xml-source (docbook.dtd) to a wordxml- or openofficexml-document?

I think there should be already some examples available?!

Hopefully somebody has a good advice,
I would appreciate your help,
thanks,
Robert.
Hi,

I lost some hours to find a solution, finally it would be great if you could help me.

I found out how to store sessionIDs with a SessionListener.
However, later when I request them I want to get each user's session data for each running session.

e.g.:
Vector sessionIDs = tomcat.getSessions();
for (int s=0; s<sessionIDs.size(); s++)
{
String sessionID = (String) session.IDs.get(s);
HttpSession usersession = tomcat.getSession(sessionID );
System.out.println("username: " + (String)usersession.getAttribute("username")):
}

Is this possible?
I read someting about a StandardManager and the method findSession ... well, but don�t get it ... how do I get the right (actual) instance for this manager?

Maybe someone can help me,
that would be great.

Thanks,
Robert
19 years ago
Hi,

I would appreciate your help concerning the following problem:

I have an application running on Tomcat.
After uploading some xml-files I want to restart the application which uses these xml-files.

Usually I can do that with the Tomcat Manager.
Unfortunately I can�t do that in that case (www.myproject.com sends me to the webapp-director => index.html, I don�t have access to the tomcat root page).

So I need a servlet/jsp that does the following thing:
WebApp mywebapp = Tomcat.getWebApp("mywebapp");
mywebapp.restart();

Or can I transfer the existing tomcat manager somehow into my webapplication?

Or can I write a second application that starts/stop/restarts my webapplication?

Thanks for your advice,
Robert.
19 years ago
Hi,

I am using the formatting object processor to transform from XML to PDF and I think it is a great thing.
However, my included images (PNGs) are scaled. I saved them with 96dpi, fop changes the size to display them in 72dpi, that is what I think. I cannot scale the images (make them smaller) in advance since they are screenshots (scaled screenshots look really bad).
It seems that it doesn't matter if I save an image with 72, 96 or 300dpi, they are always displayed about 30% to big
What can I do to avoid this problem?

It would be great if someone has a good advice
Regards,
Robert.
Hi!

Another idea would be the use of valves (since Tomcat4) or servlet filters (since ServletSpec 2.3) that restrict the access to a certain directory for IPs, ...

Regards,
Robert
19 years ago
Hi,

the filter protects webapps/myProtectedRessources/*

If I leave the ressources outside the servlet server directories, e.g. in "C:/myProtectedRessources/" I need a servlet that loads the requested data and sends it via an ServletOutputStream to the client. Doing that I had problems with applets, paths-defintitions ... that�s why I wanted to ask if these filters are good enough to protect my ressources from "evil" access, even it is in the webapp-directory. Each time a user requests a file from this directory I am checking his session parameters.

Or is there a way to redirect the request to a local directory outside the servlet server directory? That would be great!!!

Maybe you have some advice,
thanx anyway,
Robert.
19 years ago