John Borys

Greenhorn
+ Follow
since Jul 21, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by John Borys

In a Gradle project, what is the difference between Build and Run using: Gradle and Build and Run using: IntelliJ ?
1 year ago
I am trying to create a simple data load from an Excel spreadsheet to an Oracle Database. The primary key for the table to be loaded is an Oracle Sequence. There is nothing in the Oracle Bulk Loader that addresses sequences.

How do I integrate the Add sequence under "Transform" to insert a new sequence number into a Table while loading data.
I have tried using it as a step that passes along the next value to the Excel spreadsheet but have not been able to get it to actually load the data. Is there documentation on this any where? Do you cover this topic in your book?
I am at a loss. I am trying to do a simple ajax post to an action bean using jquery. I have followed Freddie's book example using partial forms because I have to insert a select tag inside an existing form. I couldn't get that to work so I looked at several online examples. I had another developer look at my code who has Ajax experience and he said it looked fine. But it's not fine.

In my eclipse debugger, I can see in context.request.parameterMap that my data is there in the correct object:

contractTerms.executionMonth=[G2006]

But when I look at the object on the action bean I see this:

BdQBDxuw1FmzhjnwVnB14JwdSNs= this value changes every time I run it.

What is that? Obviously my query fails as there is no such value in my database. I suspect I am missing some simple fundamental element, but I can't see it. Doesn't stripes read the values from the parameterMap? If not, where does it read from? Is JQuery doing this to my object? How do I correct it?

my Ajax looks like this:

function findStrikePrices(field) {
var form = field.form;
var params = $(form).serialize() + '&_eventName=' + 'findStrikePrices';
$.post(form.action, params,
function(data) {
$('#priceList' ).html(data);
}
);
return false;
}


The select tag in my jsp looks like this:

<s:select name="contractTerms.executionMonth" id="executionMonth">
<s:option selected="true" value="">
<fmt:message key="monthList.selectAMonth"/>...
</s:option>
<c:forEach items="${actionBean.executionMonths}" var="month">
<s:option value="${month}">${month}</s:option>
</c:forEach>
</s:select>


The variable on my action bean is defined like this:

private ContractTerms contractTerms = new ContractTerms();

executionMonths is defined in ContractTerms:

private String executionMonth;

I have spent a lot of time debugging, rewriting, and running with both JQuery and Prototype and I just don't understand why this is failing. Any help would be greatly appreciated. I will be happy to send additional code if needed. I am not having fun at this point. I thought Stripes was going to make Java fun again? ;-)
As an Java developer using Ajax (Dojo) and The Stripes MVC framework for Rich Internet Applications, why should I take the time to explore JavaFX?
How will it make my life easier or my end product better?
15 years ago
Yes. Error messages will be displayed where ever you choose to display the Stripes errors tag <s:errors>.


"Hi,

Is it possible to manipulate validation messages (eg. changing position the messages are displayed) in Stripes. I understand we can change the color of the validation messages.

Any clue?

Thanks,
Mourougan "
For the last 8 years I have been making a living as a consultant writing Java applications. In that time, I have seen everything from no framework (just Servlets with embedded HTML and JavaScript), to home grown frameworks, Struts, and Spring.

As a consultant I have always wanted to deliver results to the client, not waste my time writing code or xml to make other code work. I thought that was what a Framework was supposed to do!

I had never heard of Stripes until a co-worker paired with me last January and introduced me to it. I had been reading Pro EJB 3.0 and was very interested in JPA even though I had no prior EJB experience. We created from scratch, in about an hour, a database web app using EJB 3.0 on JBoss with Stripes and Guice for dependency injection. If you asked me to write the Guice piece again, I could not. But that is because we wrote it once (an interceptor, some web.xml entries) and then forgot about it. I just know that when I wanted to inject a Model Bean into my Action Bean I would write @Inject and the Bean name.

Since then I have moved on to another LARGE client but to a very small team. I was asked to write a new app and pick my framework. I chose Stripes. I was able to complete that app relatively painlessly using just the framework, some JSPs, and EL. I used no Ajax or reusable layouts or Guice injection - none of the bells and whistles. The documentation on the web site seemed to be, like most docs on open source projects, written to the level of the developers building the project. I HATE THAT. If I understood as much as those guys, I�d be writing books too. They constantly make assumptions that you just �know� how to configure stuff. Sorry guys, but when I�m learning a new framework and some �obvious� details are left out and I can�t get it to work after a reasonable amount of time, I drop it.

Well my boss liked the Stripes app so much he started asking me about the bells and whistles. I told him what was possible and they asked me to plan on replacing their very complicated home grown framework with Stripes. Honestly, I knew what was possible but I didn�t know how I was going to learn it and deliver.

Then this book came out.

I ordered the PDF and the book and started working immediately with the PDF, building the sample app. Then the book came and things got even easier. (Just something about reading a book on the train that helps things sink in better, I guess.)

Long story short, today I started replacing all of the clients Dreamweaver templates, with the much more concise Stripes reusable layouts. I am eliminating a ton of redundant code and introducing Stripes to the app. Along the way I have been able to get questions answered quickly on the mailing list and by Freddy directly. When I�m done with those I will start on the Action Beans. Bottom line: if I can, with the help of this book, get Stripes up and running in minutes, integrate Ajax, Hibernate, and reusable layouts shortly after, then you can too.
Satnam,

Would you be able to define "Collective Intelligence" in context and tell me how a Senior Application Developer would benefit from reading your book?
16 years ago
I haven't seen anything recent on SQLJ, is it still a good option? My DBAs are pushing it because of their ability to monitor queries but is it a good thing for my Java application? Currently we are using JDBC though one other team is using Hibernate. Additionally, most of my queries are dynamic, is SQLJ now able to handle dynamic queries and dynamic database connections?
I am having the same problem. I have added the junit.jar to the ANT_HOME\lib directory, but it still doesn't work. I can run JUNIT and Ant separately but not JUnit from withing Ant.
20 years ago
Does Hibernate in Action cover integration with Spring and/or XDoclet? I have used hibernate with these tools very briefly and have not been able to find answers to certain questions. (i.e. Why do I get errors when I try to use getHibernateTemplate even though I am extending the correct interface?).
Where can I find practical examples, in other words code that compiles and runs, of the Core J2EE Patterns? I am yet to find working examples of the more complex patterns in any of the books that I have purchased. For me, as a greenhorn, the easiest way to learn something has been to view code, compile and run it, then modify as needed. Of course, I make mistakes and then have to debug it which helps me to really understand. In order to do this, I need something that works to start from. This may not be the best way but for those of us that are at the bottom of the I.Q. food chain, it works...
[ July 21, 2004: Message edited by: John Borys ]