Vikas

Ranch Hand
+ Follow
since Dec 16, 2004
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 Vikas

Hi All,

I am just curious to know if JSF backing beans are replacing Command + Factory pattern when its used with Spring/Seam framework with dependency injection?

Thank you
15 years ago
JSF
Thank you again!!
15 years ago
JSF
Thanks for update Ben!!
15 years ago
JSF
Hi,

I have some JSF starter questions. I am trying to upload files with JSF but when my inputFileUpload is empty it returns 0 bytes instead of showing some specific message like "No file location specified" thougthh I have set required="true" as below:

<t:inputFileUpload id="fileUpload"
accept="*.txt"
value="#{myBean.upFile}"
storage="file"
required="true"
size="50"/>
<h:commandButton value="Upload"
actionListener="#{myBean.upload}"/>

also, it shows the file name which was uploaded previousley with following tag:

<h:outputText
value="#{myBean.uploadedFilename} | #{myBean.fileSize}" rendered="#{myBean.haveUploadedFile}" />

Could you please assist me in this regardds?

Thanks in advance.

Vikanglo
15 years ago
JSF
Use

<logic:iterate id="myTestForm" name="listArray" scope="request" type="something.*.MyTest" indexId=�index�>

Whereby, you can track the indexId of each iteration and control the number of items to be displayed in list.

Hope this helps.
16 years ago
Hi All,

This is really a beginners' question and my question is if an abstract class has all of its methods "abstract" in it(i.e. no concrete methods) then what will be the difference between this abstarct class and an interface.

Thank you
16 years ago
Hi,

If I check your action mapping i.e.

<action name = "java" path = "/login" scope = "session" type = "sample.LoginAction">

the action tag is not closed it must be like

<action name = "java" path = "/login" scope = "session" type = "sample.LoginAction" /> instead.

What other error do you get?? Kindly specify.

Thank you
17 years ago
It works!! Thank you so much Merrill!!

But it is not findDataSource(String) method but it's findDataSourceConfig(String)method that worked findDataSource() is not found in my API.... may be its available in previous versions!!

Thank you once again!!
[ August 24, 2006: Message edited by: Vikas Sharda ]
17 years ago
Hello all,

I want to access the driverClassName,url,username and properties of <data-source> from the struts-config.xml. Currently, I am accessing these values from <context-param> from web.xml but defining the same values in two different files doesn't sound fine.... I have been trying to get a solution to see these <data-source> preperties from the Action class directly but no luck yet.... Does anyone have the solution to my problem??

Thank you
Vikas Sharda
17 years ago
Thank you Paul, any link/tutorial for XSL Transformation??
Hi all,

I am using JTidy to convert my existing HTML to an XML which works fine but now I have a set of rules that e.g. if a tag <h1> is found in the HTML that should be replaced with <h3>, if tag <blink> is found then ignore it etc. while converting to the XML. How would I do this?? Is there such API available in java/XML world??

Kindly help.

Thanks in advance!!

Vikas Sharda
Hi All,

Before deploying my project to Eclipse 3.1.1, we used to create the WAR manully using 'jar -cvf MyProject.war' but now, when we have added our project to Eclipse and started to work, everything goes fine except building the WAR.

I defined the WAR file creation path in the project properties(in Eclipse) and tried to create the WAR, it creates the WAR in defined location but when we try to extract this WAR(for test purposes) in other machine(or my own system) by keeping the newly creates WAR in the webapps directory of Tomcat 4.1 it extracts but only the work folder, nothing other than this i.e. all JSPs, WEB-INF direcory or anything are not found there, where as the size of the WAR is same as expected(as same as when we used to create it manully). Now even by creating the WAR manully, the same is happening.

I tried to build it with ANT but the same result, the WAR is getting generated with the expected size but no contents are extracting other than work folder my build.xml reads as follows:-

<project name="WebCare" default="WebCare">
<target name="WebCare">
<war destfile="WebCare.war" webxml="WEB-INF/web.xml">
<fileset dir=""/>
<lib dir="WEB-INF/lib"/>
<classes dir="WEB-INF/classes"/>
</war>
</target>
</project>

Please help me for the same.

Thanks in advance!!

Vikas


[changed < to &lt; so XML shows up]
[ May 01, 2006: Message edited by: Jeanne Boyarsky ]
Hi All,

I am trying to implement the struts with AJAX and for this, am trying to create a form using the javascript string as follows:-

function processStateChange() {
if (req.readyState == 4) { // Complete
if (req.status == 200) { // OK response


xml = req.responseXML;
alert(req.responseXML);
i = 0;
html = "<html:form action=\"DeleteModule\"><br>"+
+"</html:form>";

and the error I am getting with this string is as follows:-

org.apache.jasper.JasperException: /admin_ajax.jsp(57,53) quote symbol expected

Can anybody help me in resolving this issue.

Thanks and Regards
Vikas Sharda
18 years ago
To display an empty string displayed by default, all you need to do is to set the value in the reset method of your FormBean class as follows:-

public void reset(ActionMapping mapping, HttpServletRequest request) {

yourselectpropertyname = "";
}

Thank you
Vikas Sharda
18 years ago
Hi all,

Have any one of you implemeted the bread crumbs in a struts application. I need a complete example for implementing dynamic bread crumbs in struts.

Regards
Vikas Sharda
18 years ago