Alberto Dousdebes

Greenhorn
+ Follow
since Sep 02, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Alberto Dousdebes

I've looking for a while for instructions about how to integrate Struts 1.x with Ayax. Take a look at this (it's in spanish) as a start:

http://abunaineko.wordpress.com/2008/09/15/ajax-usando-jquery-y-struts/

bye!
6 years ago
Hi!

You can call a JavaScript function in "onChange" event. This function retrieves the selected value and call any action you want:



And the javaScript function



Havent tested but it's an idea.

bye!
6 years ago
Hello people!

I'm using Struts 1.3 + tomcat 5 + Java 1.4 + Jasper. Recently i was asked to migrate a 9g oracle jsp report and include into my site. The Structure of the report is:


<%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
<%@ page language="java" import="java.io.*" errorPage="/rwerror.jsp" session="false" %>
<%@ page contentType="text/html;charset=ISO-8859-1" %>
<!--
<rw:report id="report">
<rw:objects id="objects">
etc...
etc....



Is there any chance to integrate my usual JSP's and Oracle Report (passing parameters, DataSource.....)???

7 years ago
I'm running on 8080. It seems the problem is heading to https protocol. Because i change the url to:




and works right.

Thanks
7 years ago
Hi ranchers:

I'm having troubles with struts 1.3, netbeans, tomcat 5: Actions are not executed. When i call any action i get this (in chrome):

URL:

https://localhost/rentasmuni/loginMultaHistorial.do


Error Message:


this is my web.xml


Any lines about this?

Thanks a lot!

7 years ago
Hello!

I'm working with NetBeans 6.8 and recently installed the SVN Plug In (Tortoise previously installed on my pc) .

I've done the initial import into repository and everything looks good. But after editing a file and commit, NetBeans (or SVN or both of them ) don't let me edit the file again (the file is marked as read only). In order to edit i'm changing the file properties in windows, unchecking "read only".

I've read the "guided tour to subversion" - http://netbeans.org/kb/docs/ide/subversion.html#checking but can't found anything about read only modes.

Why the file put itself in read only mode after commit?

Thanks in advance!!!




Hi everybody!. Suddenly my faces-config file changes to this. As you can see it's a mess!: curved lines disappeared and now i only have straight lines...




i'm using NetBeans 6.5 and can't find the way to get it ordered.


thanks!!
9 years ago
JSF
I'm not using SEAM but Facelets + RichFaces so i've manage to adapt this aproach to my situation:

Link to solution

this is the solution: i've found it on the jaspersoft forums:

If you put both print objects on the session under the same name (ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE), the second object will overwrite the first one so when the first image will be requested, the servlet will actually extract it from the second report. So you need to use distinct names for the two print objects on the session:



Thanks lucianc!
Hi, i have two reports embedded in a web page.



The problem is that they are two diferent reports. And Jasper put the generic name "image_0_0_0" on each image, and after it's generated by the ImageServlet. I mean:

Report 1 >>> image_0_0_0 (it's really a meter)
Report 2 >>> image_0_0_0 (it's a thermometer)

Maybe one aproach it's tell Jasper to change the name of the images on each report.

Report 1 >>> report1_0_0_0
Report 2 >>> report2_0_0_0

¿How can i do this?.

Thanks!!!

Hi there! I'm facing a big trouble. I need to embed a report generated in html format in my facelets page. I've searched for days but couldn't find anything .
So, the question is: How would you embed the HTML content from an HTML-based Jasper report into xhtml?

I've try the following:
1) Generate the html file on the hard disk.
2) Include in my xhtml page using <ui:include> or <iframe> tags.

The main disadvantage of this aproach is that files are stored on the hard disk.

¿Any Ideas?

Thanks a lot!!!
Hi everyone!

That's my question....which is better?.

a) Write the sql statement inside a report using iReport for example. Some situations may be not be solved with a unique sql query, and Jasper does not allow multiples queries in a single report.

b) Prepare a class that make some queries and input the reports with parameters with the precalculed values.

Thanks!!!
Hi there! I need to add a declaration to an HTML file in order to get it work with JSF tag <ui:include>.

The declaration is the following:



And my html has the classic structure:



I'ven adding by hand the declaration, but the proccess needs to be automatic. The final result should be:




Anyone knows how to start??

Thanks a lot!!!
[ December 23, 2008: Message edited by: Alberto Dousdebes ]
9 years ago
Hi! i have a table with a composite Id. The mappging is:


The api documentation says:
load(Class theClass, Serializable id)
Return the persistent instance of the given entity class with the given identifier, assuming that the instance exists.

The question is how can i get and object using the load method.???����??? (keep in mind that my object has a composite identifier).

Thanks a lot!!
it's work replacing this line:



for this one:



Thanks!
9 years ago
JSF