Sahil Dave

Greenhorn
+ Follow
since Nov 10, 2010
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 Sahil Dave

Hey Everyone,

I am creating an app in struts 1.3. I am trying to validate a single form on multiple actions.
Is there a way I can validate a particular field on the form only when I am sending it to some specific action?

Thanks
12 years ago
Hi

I am trying to create a simple struts app with tiles.
Could anyone tell me what this error is about?



tiles-defs.xml


struts-config.xml

12 years ago
Hi

I am trying to create a simple struts app with tiles.
Going to the context-root gives me "java.lang.ClassNotFoundException: org.apache.struts.actions.ForwardAction"
The app's welcome file is 'index.jsp' which forwards to 'home.do'

index.jsp


web.xml snippet


struts-config.xml snippet


tiles-defs.xml


I searched for similar issues, but couldn't find a satisfactory response.
Am I missing something over here?

Thanks
12 years ago
I created a new index.html and set it as the welcome file in web.xml

index.html


I pushed the index.jsp into a 'jsp' dir inside WebContent.

struts.xml


Now pointing to the context root takes me to index.html and consequently to index.action
But I am still getting a 404 instead of the jsp/index.jsp
12 years ago
I am facing a similar problem with the routing to index.action failing with a 404. However if i go to the context root of the app, it goes to index.jsp as expected.

web.xml


struts.xml


I am using Weblogic 9.2 as the application server and deploying the app as a war.
Please help.

Thanks
12 years ago
Why don't you try out EJB3's very own Object Relational Mapping API - JPA(Java Persistence API), instead of Hibernate.
For you 1st query, you could create a Final class containing all the static final constants you want to use across classes/methods and import the class to use them.

For you second query, it depends on the type of enterprise bean you want. E.g for a Message Driven Bean, the method call would come inside a onMessage() method.
Hello

I am using JAXB to marshall an object into XML. It looks like JAXB generates the XML with elements in alphabetical order.
Is there a way in which I can restrict the generated XML to have elements in the same order as the XSD?

Thanks
Hi

I am trying to create a XSD for using in a JAXB application.
I am getting the following error:

"Error resolving component 'name'. It was detected that 'name' has no namespace."
on





Any ideas?
13 years ago
Hi

I know this question has been raised and discussed many times in this forum, but none of the threads were able to solve the issue. I am facing the same dreaded exception:


I have the following code in my login.jsp


I simply fail to understand, where is such an id coming from, when I have explicitly given ids to all the components in the page!
Is this an issue with JSF or the application server (in my case weblogic 9.2)?

Any suggestions/pointers?
13 years ago
JSF
Hi..

I am creating a web app in Struts 1.3. One of the JSPs has a requirement wherein a multiselect box and a textbox need to get filled, based on the selection in a dropdown.
I am not sure if there is any standard/well known way of doing this in Struts.
Any suggestions/pointers would be really great.

Thanks
13 years ago