Win a copy of Spring Boot in Practice this week in the Spring forum!

Ro Dowd

Greenhorn
+ Follow
since Jul 10, 2006
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 Ro Dowd

Hi all,

does anyone know if the "Sun Certified Developer for Java Web Services Study Guide (Exam 310-220)" book is available yet?

Thanks, Ronan.
Using request.setAttribute ensures that the userList object is stored in request scope (i.e. will be visible in the JSP for example that the action forwards to). I would recommend using the source forge "display tag" to render the list on the jsp (http://displaytag.sourceforge.net/11/). this will automatically paginate your data, you can customise its look and feel also. it's very easy to use

you should never really be displaying excessive information on a jsp anyways, give the user a search facility to narrow it down or use display tag.

hope this helps - Ro.
14 years ago
hi, the best thing to use for paging in the SourceForge display tag. It's very easy to use and takes all the pain out of paging in the front-end part of your application. See http://displaytag.sourceforge.net/11/ and http://displaytag.sourceforge.net/11/tut_basic.html (usage tutorial)

Essentially, in your action store your Collection/list (called myList for example) in the request (or session). In your jsp, include the display tag library at the top of your jsp (like you would with other included libraries), then do something like in your JSP:

<display:table name="myList" />

the above is the most basic usage. you can customize it as you wish (see the above links).

hope this helps..
15 years ago
hi, i've got a JSP with 5 rows in it, each row represents a person object (so each row has name input textfield and age input field), there is a submit button at the bottom of the screen. the user can fill in any or all of the rows. when i click submit i want struts to validate ALL filled in fields..

Is there a way in struts i can do this (i.e have my form bean take in an array of the n objects). normally my jsp wud be only allow one record to be added at a time - the struts validator could easily be used in this scenario - but my requirement is to have 5 rows on the table.

Any suggestions would be great.thanks..
15 years ago
hi, im using axis2 (V1.0) and spring1.2.6 in Weblogic 8.1. I have an AAR file which i want "spring wired". In my services.xml i have the below :

<parameter name="SpringXmlURL" locked="false">
META-INF/spring-webservice-beans.xml
</parameter>

<parameter name="SpringBeanName" locked="false">
workTrackingWebService
</parameter>

Can I use the default "RawXML" message receivers or do i need *SPECIFIC* ones due to the fact that i'm using spring? Axis2 and spring integration is listed http://ws.apache.org/axis2/1_1/spring.html#26 - is that all i need to do?

any help much appreciated..thanks, Ronan
hi, im using axis2 (V1.0) and spring1.2.6 in Weblogic 8.1. I have an AAR file which i want "spring wired". In my services.xml i have the below :

<parameter name="SpringXmlURL" locked="false">
META-INF/spring-webservice-beans.xml
</parameter>

<parameter name="SpringBeanName" locked="false">
workTrackingWebService
</parameter>

Can I use the default "RawXML" message receivers or do i need *SPECIFIC* ones due to the fact that i'm using spring? Axis2 and spring integration is listed http://ws.apache.org/axis2/1_1/spring.html#26 - is that all i need to do?

any help much appreciated..thanks, Ronan
Hi, Thanks for your reply. BEA Weblogic 8.1 is jdk1.4 compliant (not just 1.3) though so I dont think thats the problem - any other suggestions?
thanks..
15 years ago
Hi, I'm using Axis2 (V1.0) deployed into Weblogic 8.1 and am having trouble deploying my axis2.war.

My application aar file (called work.aar) is in the "WEB-INF/services" dir inside the axis2.war file. When i drop the axis2.war file into the applications/ dir I get the below:

<ServletContext(id=19413030,name=axis2,context-path=/axis2): Failed while destroying servlet: AxisServlet.
java.lang.NullPointerException
at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
at javax.servlet.GenericServlet.log(GenericServlet.java:300)

Strange thing is i can see the "happy" page - http://localhost:7200/axis2/services/listServices - which indicates
my web service is alive.

I looked at the below resource which indicates that for WL8.1 weblogic.xml needs to be updated so that the WL classloader looks in WEB-INF/ first - http://ws.apache.org/axis/java/install.html#WebLogic8.1
(see section called "Weblogic 8.1 in the last URL). That didnt seem to work though..

Any help much appreciated. Thanks, Ronan.
15 years ago
i'm trying to create a dynamic hyperlink using struts (v1.2.8) and JSTL as below:

<html:link action="MyGenericLink">
<fmt:message key="cancel.button"/>
</html:link>


I want to ensure that MyGenericLinkis whatever the user passes in in the request (in a request parameter called link eg)

i'm trying to

<html:link action="<%= request.getParameter(�link�) %>">
<fmt:message key="cancel.button"/>
</html:link>

this doesnt seem to work, is there a handier way? maybe JSTL only? can someone provide me with a code sample if pos?
15 years ago
JSP
- hi, i' m writing an XSD that represents a student. In my OO hierarchy I have a base type called StudentType and 3 subtypes (goodstudent, badstudent, direStudent - subclasses in OO). can i define this is XSD using xsd:extension - i think i can

also if i'm using axis 2 to create my WS then i will use OMElement, OMElement lets me add children using the addAttribute or addChild methods - do these suports inheritance ? thanks..
15 years ago
hi, i'm using axis 2 to implement a WS.

the data i'm sending represents an object consisting of 3 strings, the object also has a parent class. does axis 2 (xsd2java) support inheritance ?. I've got an xsd file which i run xsd2java on it.

Presumably the client of the web service will call it like the below:

Customer cust = new Customer(<customer details here> ;
MyWebService service = new MyWebService();
service.addNewCustomer(cust);

presumable in the MyWebService class or a delegate i'll convert the cust object to XML - can this be an OMElement? i.e how do/should i convert my cust to customerRequest (if thats the schema description for a customer)?

any help appreciated..
15 years ago
hi, ive a struts validation file where i've lots of inputs on my form (types are double). I've got validation on each of these fields but the validation mask is the exact same, i.e. it's:

^[0-9]{1,3}(,?[0-9]{3})*\.?([0-9]{1,2})?$

the file validation for one of the fields is below:

<field property="salary" depends="minlength">
<arg0 key="daily.mappingCheck.record.field41"/>
<arg1 key="${var:minlength}" name="minlength" resource="false"/>
<var><var-name>minlength</var-name><var-value>0</var-value></var>
<var><var-name>mask</var-name>
<var-value>^[0-9]{1,3}(,?[0-9]{3})*\.?([0-9]{1,2})?$</var-value>
</var>
</field>

Is there a handy way in struts i can define this globally instead of having to repeat this string in numerous places?

thanks, Ronan
15 years ago
hi, i'm using the new IE7 on winXP prof sp2, i've just coded a page with a dropdown select, if there are 30+ items in the dropdown then IE7 gives me a scrollbar in the dropdown..all good.

is there a way of getting a scrollbar for an amount i wish, i.e for 10 items or more (a wierd requirement of my project) ? currently IE7 doesnt display any scrollbar for a dropdown of length 30 or less :-(

in the SELECT attribute i cant see anything i can set for this (so i see a scrollar when theres more than 10 in the dropdown)! any help would be great, thanks, Ronan.
hi, my project uses XSL,java,technologies on websphere, i'm on winXP sp2 and using FireFox 1.5.0.7 ...

i've an input textfield that (in IE and firefox) looks the same but on firefox the bottom part of certain letters, like "g" and "q" are cut off !!
anyone seen that before?, i dont want to put a hack in(if IE around the input box bit), i'm sure theres a better way..

<tr>
<td>
<input TYPE="text" NAME="value_1" class="myFixedHeightOption"
id="value_1" size="20" maxlength="35" readonly="readonly"
style="background:#CCCCCC;" value="{$myValue}"/>
</td>
</tr>

the .css bit for "myFixedHeightOption" is below:

.myFixedHeightOption{
font: 10px Verdana, Arial, Helvetica;
text-align:left;
height:17px;
}
Hi, I've installed the Clearcase Plugin (from http://plugins.intellij.net/) and from intellij 5.1 i can check-in/out etc - all good. but if i check out a file, change it and then want to compare that against whats in clearcase theres a problem...

In the Project View - If i right-click the file and do "Clearcase"->"Compare with previous version" it opens the clearcase diff tool!. I want it to open the IntelliJ diff tool instead (as it's visually easier to work with i think), is there something i'm doing wrong? some setting i'm forgetting?

any help appreciated, thanks, Ronan.